lavfi/asetnsamples: push as many frames as ready
authorAndrey Utkin <andrey.krieger.utkin@gmail.com>
Tue, 7 Aug 2012 22:55:03 +0000 (01:55 +0300)
committerStefano Sabatini <stefasab@gmail.com>
Tue, 14 Aug 2012 11:19:52 +0000 (13:19 +0200)
Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
libavfilter/af_asetnsamples.c

index 23bda8c..d0f92d9 100644 (file)
@@ -151,7 +151,7 @@ static int filter_samples(AVFilterLink *inlink, AVFilterBufferRef *insamples)
         asns->next_out_pts = insamples->pts;
     avfilter_unref_buffer(insamples);
 
-    if (av_audio_fifo_size(asns->fifo) >= asns->nb_out_samples)
+    while (av_audio_fifo_size(asns->fifo) >= asns->nb_out_samples)
         push_samples(outlink);
     return 0;
 }