diff options
author | John Stebbins <[email protected]> | 2017-02-21 10:31:37 -0700 |
---|---|---|
committer | John Stebbins <[email protected]> | 2017-02-21 10:53:57 -0700 |
commit | 9e7986b4735458ffa68f2ed7141eaf105c585618 (patch) | |
tree | 45dad7cb784e03de03ca45c1cb45dac402feda14 /libhb | |
parent | 514fc4f4ac4312d25680c1fd6c4eab25c5b2551a (diff) |
encavcodecaudio: fix dropping of final input packet
When exactly input_samples were left in the input buffer, we were
dropping them when they could be encoded.
Diffstat (limited to 'libhb')
-rw-r--r-- | libhb/encavcodecaudio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libhb/encavcodecaudio.c b/libhb/encavcodecaudio.c index 9f07f4a79..227ef289e 100644 --- a/libhb/encavcodecaudio.c +++ b/libhb/encavcodecaudio.c @@ -383,7 +383,7 @@ static void Encode(hb_work_object_t *w, hb_buffer_list_t *list) hb_audio_t * audio = w->audio; uint64_t pts, pos; - while (hb_list_bytes(pv->list) > pv->input_samples * sizeof(float)) + while (hb_list_bytes(pv->list) >= pv->input_samples * sizeof(float)) { int ret; |