OSDN Git Service

lavfi/anullsrc: raise filter_frame() error.
authorClément Bœsch <ubitux@gmail.com>
Wed, 13 Mar 2013 08:56:09 +0000 (09:56 +0100)
committerClément Bœsch <ubitux@gmail.com>
Wed, 13 Mar 2013 18:00:09 +0000 (19:00 +0100)
libavfilter/asrc_anullsrc.c

index e606ad9..f8e6ac5 100644 (file)
@@ -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[] = {