[FFmpeg-devel] [PATCH] af_asetnsamples: push as many frames as ready
Andrey Utkin
andrey.krieger.utkin at gmail.com
Wed Aug 8 00:55:03 CEST 2012
---
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 e00980e..9cbbf9c 100644
--- a/libavfilter/af_asetnsamples.c
+++ b/libavfilter/af_asetnsamples.c
@@ -153,7 +153,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;
}
--
1.7.8.6
More information about the ffmpeg-devel
mailing list