[FFmpeg-devel] [PATCH v7 1/2] lavc/svt_hevc: add libsvt hevc encoder wrapper.

Carl Eugen Hoyos ceffmpeg at gmail.com
Fri Mar 8 23:06:46 EET 2019


2019-03-08 11:36 GMT+01:00, Jing SUN <jing.a.sun at 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


More information about the ffmpeg-devel mailing list