diff options
author | Andrey Utkin <andrey.krieger.utkin@gmail.com> | 2012-08-08 01:55:03 +0300 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2012-08-14 13:19:52 +0200 |
commit | a32fa21d1720a4c5a22d9b27fc8b63dafac31b4e (patch) | |
tree | f838ff9e2ce1807beae94e3232c738ba05547dd8 | |
parent | 082b745d3316bcfb629e2664574ef7e08711536a (diff) | |
download | ffmpeg-a32fa21d1720a4c5a22d9b27fc8b63dafac31b4e.tar.gz |
lavfi/asetnsamples: push as many frames as ready
Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
-rw-r--r-- | libavfilter/af_asetnsamples.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/af_asetnsamples.c b/libavfilter/af_asetnsamples.c index 23bda8ca01..d0f92d9361 100644 --- a/libavfilter/af_asetnsamples.c +++ b/libavfilter/af_asetnsamples.c @@ -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; } |