2019-03-08 11:36 GMT+01:00, Jing SUN <[email protected]>: > +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 [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
