summaryrefslogtreecommitdiffstats
path: root/libhb
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2017-02-21 10:31:37 -0700
committerJohn Stebbins <[email protected]>2017-02-21 10:53:57 -0700
commit9e7986b4735458ffa68f2ed7141eaf105c585618 (patch)
tree45dad7cb784e03de03ca45c1cb45dac402feda14 /libhb
parent514fc4f4ac4312d25680c1fd6c4eab25c5b2551a (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.c2
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;