avcodec/huffyuvenc: Remove redundant call

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>
This commit is contained in:
Andreas Rheinhardt 2022-10-01 21:21:12 +02:00
parent e766378619
commit 75842c35e7

View File

@ -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);
}