[FFmpeg-devel] [PATCH 32/40] avcodec/dsicinvideo: Remove redundant code for freeing

Paul B Mahol onemda at gmail.com
Mon Sep 14 19:34:22 EEST 2020


On Mon, Sep 14, 2020 at 07:27:39AM +0200, Andreas Rheinhardt wrote:
> The dsicinvideo decoder already has the FF_CODEC_CAP_INIT_CLEANUP flag
> set, so it is unnecessary to directly clean up some already allocated
> buffers in case another one could not be allocated in the init function,
> as all buffers will be freed anyway later in the decoder's close
> function.
> 
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>
> ---
>  libavcodec/dsicinvideo.c | 1 -
>  1 file changed, 1 deletion(-)
> 

probably ok


More information about the ffmpeg-devel mailing list