diff mbox series

[FFmpeg-devel,05/14] avcodec/huffyuvenc: Remove redundant call

Message ID GV1P250MB07379766F9BFD5570BD0DB428F589@GV1P250MB0737.EURP250.PROD.OUTLOOK.COM
State Accepted
Commit 75842c35e7698eba2114a84b2854c3c130b2f2d4
Headers show
Series [FFmpeg-devel,01/14] avcodec/ylc: Remove inclusion of huffyuvdsp.h | expand


Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Andreas Rheinhardt Oct. 2, 2022, 12:06 a.m. UTC
All codecs here have the FF_CODEC_CAP_INIT_CLEANUP set,
so ff_huffyuv_common_end() will be called automatically
in encode_end() on error.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
 libavcodec/huffyuvenc.c | 1 -
 1 file changed, 1 deletion(-)
diff mbox series


diff --git a/libavcodec/huffyuvenc.c b/libavcodec/huffyuvenc.c
index 80dcdbaa93..8867de0d44 100644
--- a/libavcodec/huffyuvenc.c
+++ b/libavcodec/huffyuvenc.c
@@ -392,7 +392,6 @@  static av_cold int encode_init(AVCodecContext *avctx)
     if (ff_huffyuv_alloc_temp(s)) {
-        ff_huffyuv_common_end(s);
         return AVERROR(ENOMEM);