[FFmpeg-devel] [PATCH 05/15] lavfi/anullsrc: raise filter_frame() error.
Clément Bœsch
ubitux at gmail.com
Wed Mar 13 10:10:58 CET 2013
---
libavfilter/asrc_anullsrc.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/libavfilter/asrc_anullsrc.c b/libavfilter/asrc_anullsrc.c
index e606ad9..f8e6ac5 100644
--- a/libavfilter/asrc_anullsrc.c
+++ b/libavfilter/asrc_anullsrc.c
@@ -101,6 +101,7 @@ static int config_props(AVFilterLink *outlink)
static int request_frame(AVFilterLink *outlink)
{
+ int ret;
ANullContext *null = outlink->src->priv;
AVFrame *samplesref;
@@ -109,11 +110,11 @@ static int request_frame(AVFilterLink *outlink)
samplesref->channel_layout = null->channel_layout;
samplesref->sample_rate = outlink->sample_rate;
- ff_filter_frame(outlink, av_frame_clone(samplesref));
+ ret = ff_filter_frame(outlink, av_frame_clone(samplesref));
av_frame_free(&samplesref);
null->pts += null->nb_samples;
- return 0;
+ return ret;
}
static const AVFilterPad avfilter_asrc_anullsrc_outputs[] = {
--
1.8.1.5
More information about the ffmpeg-devel
mailing list