]> granicus.if.org Git - handbrake/commitdiff
encavcodecaudio: fix dropping of final input packet
authorJohn Stebbins <jstebbins.hb@gmail.com>
Tue, 21 Feb 2017 17:31:37 +0000 (10:31 -0700)
committerJohn Stebbins <jstebbins.hb@gmail.com>
Tue, 21 Feb 2017 17:53:57 +0000 (10:53 -0700)
When exactly input_samples were left in the input buffer, we were
dropping them when they could be encoded.

libhb/encavcodecaudio.c

index 9f07f4a795c86c7effcc091ca94b746d899767ad..227ef289ef79d23f69b53d92c047222a26406336 100644 (file)
@@ -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;