2018-07-03 10:29 GMT+02:00, Zhong Li <zhong...@intel.com>: > Suppress the complain "variables 'handle' is used but maybe > uninitialized". > > Signed-off-by: Zhong Li <zhong...@intel.com> > --- > libavfilter/qsvvpp.c | 5 +++++ > libavfilter/vf_deinterlace_qsv.c | 5 +++++ > libavfilter/vf_scale_qsv.c | 5 +++++ > 3 files changed, 15 insertions(+) > > diff --git a/libavfilter/qsvvpp.c b/libavfilter/qsvvpp.c > index 2c01295..7ee1e56 100644 > --- a/libavfilter/qsvvpp.c > +++ b/libavfilter/qsvvpp.c > @@ -503,6 +503,11 @@ static int init_vpp_session(AVFilterContext *avctx, > QSVVPPContext *s) > } > } > > + if (ret != MFX_ERR_NONE) { > + av_log(avctx, AV_LOG_ERROR, "Error getting the session handle\n"); > + return AVERROR_UNKNOWN;
What kind of errors can MFXVideoCORE_GetHandle() return? Are they unknown? Carl Eugen _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel