[FFmpeg-devel] [PATCH 12/12] bitstream_filter: Add missing error check

James Almer jamrial at gmail.com
Thu Jul 6 23:35:22 EEST 2017


On 7/6/2017 3:28 PM, Derek Buitenhuis wrote:
> Signed-off-by: Derek Buitenhuis <derek.buitenhuis at gmail.com>
> ---
>  libavcodec/bitstream_filter.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/libavcodec/bitstream_filter.c b/libavcodec/bitstream_filter.c
> index e9291aba19..8599b90d4a 100644
> --- a/libavcodec/bitstream_filter.c
> +++ b/libavcodec/bitstream_filter.c
> @@ -122,6 +122,8 @@ int av_bitstream_filter_filter(AVBitStreamFilterContext *bsfc,
>                  shorthand[0] = opt->name;
>  
>              ret = av_opt_set_from_string(priv->ctx->priv_data, bsfc->args, shorthand, "=", ":");
> +            if (ret < 0)
> +                return ret;
>          }
>  
>          ret = av_bsf_init(priv->ctx);
> 

LGTM (Nobody should be using the old bsf API, though).


More information about the ffmpeg-devel mailing list