[FFmpeg-devel] [PATCH 03/23] avcodec/zmbv: Don't free uninitialized z_stream
Tomas Härdin
tjoppen at acc.umu.se
Fri May 7 10:06:43 EEST 2021
tor 2021-05-06 klockan 07:11 +0200 skrev Andreas Rheinhardt:
> It is not documented to be safe to call inflateEnd() on a z_stream
> that has not been successfully initialized via inflateInit(); so
> record whether it has been successfully initialized.
>
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
Seems correct and makes the code cleaner. That memset() really is an
ugly hack. Encoder patch also looks good.
/Tomas
More information about the ffmpeg-devel
mailing list