[FFmpeg-cvslog] lavfi/asetnsamples: push as many frames as ready
Andrey Utkin
git at videolan.org
Tue Aug 14 13:23:18 CEST 2012
ffmpeg | branch: master | Andrey Utkin <andrey.krieger.utkin at gmail.com> | Wed Aug 8 01:55:03 2012 +0300| [a32fa21d1720a4c5a22d9b27fc8b63dafac31b4e] | committer: Stefano Sabatini
lavfi/asetnsamples: push as many frames as ready
Signed-off-by: Stefano Sabatini <stefasab at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a32fa21d1720a4c5a22d9b27fc8b63dafac31b4e
---
libavfilter/af_asetnsamples.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavfilter/af_asetnsamples.c b/libavfilter/af_asetnsamples.c
index 23bda8c..d0f92d9 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;
}
More information about the ffmpeg-cvslog
mailing list