[FFmpeg-devel] [PATCH 05/15] lavfi/anullsrc: raise filter_frame() error.

Stefano Sabatini stefasab at gmail.com
Thu Mar 14 21:43:49 CET 2013


On date Wednesday 2013-03-13 10:10:58 +0100, Clément Bœsch encoded:
> ---
>  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;
>  }

Should be fine, thanks.
-- 
FFmpeg = Free and Fascinating MultiPurpose Ecumenical Guide


More information about the ffmpeg-devel mailing list