[FFmpeg-devel] [PATCH 3/3] avcodec/hevcdec: Return immediately upon hevc_init_context() failure

Anton Khirnov anton at khirnov.net
Thu Jun 30 12:02:00 EEST 2022


Quoting Andreas Rheinhardt (2022-06-30 10:51:56)
> This function is only called from the decoder's init function
> and given that this decoder has FF_CODEC_CAP_INIT_CLEANUP set,
> hevc_decode_free() is called automatically (currently it would
> be called twice with the second call being redundant).
> 
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> ---
>  libavcodec/hevcdec.c | 16 ++++++----------
>  1 file changed, 6 insertions(+), 10 deletions(-)

looks ok

-- 
Anton Khirnov


More information about the ffmpeg-devel mailing list