[FFmpeg-devel] [PATCH 3/3] lavf/qsv_vpp: fix compiling warning

Li, Zhong zhong.li at intel.com
Thu Nov 16 04:28:25 EET 2017


> From: ffmpeg-devel [mailto:ffmpeg-devel-bounces at ffmpeg.org] On Behalf
> Of Carl Eugen Hoyos
> Subject: Re: [FFmpeg-devel] [PATCH 3/3] lavf/qsv_vpp: fix compiling warning
> 
> 2017-11-15 10:04 GMT+01:00 Zhong Li <zhong.li at intel.com>:
> > fix the compiling warning of "ignoring return value"
> 
> > -    ff_formats_ref(in_fmts, &ctx->inputs[0]->out_formats);
> > -    ff_formats_ref(out_fmts, &ctx->outputs[0]->in_formats);
> > +    if ((ret = ff_formats_ref(in_fmts, &ctx->inputs[0]->out_formats)) < 0)
> > +        return ret;
> > +    if ((ret = ff_formats_ref(out_fmts, &ctx->outputs[0]->in_formats)) <
> 0)
> 
> Two additional lines are cheap.

Just don't like any compiling warnings which may have potential issues just like this one.
Personally speaking, I prefer to clear most of FFmpeg compiling warnings.

> 
> Carl Eugen
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel


More information about the ffmpeg-devel mailing list