aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/asrc_anullsrc.c
diff options
context:
space:
mode:
authorClément Bœsch <ubitux@gmail.com>2013-03-13 09:56:09 +0100
committerClément Bœsch <ubitux@gmail.com>2013-03-13 19:00:09 +0100
commit00a13a9cdbfa5e8302dc0b3175f4380e987c2a07 (patch)
treeb37f6abe570831c211d5d0569b262935e17fe5bb /libavfilter/asrc_anullsrc.c
parent44f3d217997fd39f7fbdd3f3d0ca487903eb47c6 (diff)
downloadffmpeg-00a13a9cdbfa5e8302dc0b3175f4380e987c2a07.tar.gz
lavfi/anullsrc: raise filter_frame() error.
Diffstat (limited to 'libavfilter/asrc_anullsrc.c')
-rw-r--r--libavfilter/asrc_anullsrc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libavfilter/asrc_anullsrc.c b/libavfilter/asrc_anullsrc.c
index e606ad9e0a..f8e6ac5ce9 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[] = {