Re: [FFmpeg-devel] [PATCH] avcodec/pngdec: Cleanup generically on init failure

2022-02-10 Thread Andreas Rheinhardt
Andreas Rheinhardt: > Signed-off-by: Andreas Rheinhardt > --- > I did not add these codecs the last time I searched for codecs > to add the FF_CODEC_CAP_INIT_CLEANUP because I was unsure whether > calling ff_thread_release_buffer() on a NULL frame was safe > (it is). > > libavcodec/pngdec.c | 9

[FFmpeg-devel] [PATCH] avcodec/pngdec: Cleanup generically on init failure

2022-02-08 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- I did not add these codecs the last time I searched for codecs to add the FF_CODEC_CAP_INIT_CLEANUP because I was unsure whether calling ff_thread_release_buffer() on a NULL frame was safe (it is). libavcodec/pngdec.c | 9 +++-- 1 file changed, 3