2019-03-08 11:36 GMT+01:00, Jing SUN <jing.a....@intel.com>: > +static void free_buffer(SvtContext *svt_enc) > +{ > + EB_H265_ENC_INPUT *in_data = > (EB_H265_ENC_INPUT *)svt_enc->in_buf.pBuffer;
Is the cast necessary? Or actually: Can't in_data be whatever doesn't produce a warning? > + > + if (in_data) > + av_freep(&in_data); The condition is unnecessary. Carl Eugen _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel