diff --git a/libavcodec/alsdec.c b/libavcodec/alsdec.c index 9953322fce..e02c9e3874 100644 --- a/libavcodec/alsdec.c +++ b/libavcodec/alsdec.c @@ -2132,7 +2132,6 @@ static av_cold int decode_init(AVCodecContext *avctx) return 0; fail: - decode_end(avctx); return ret; } @@ -2158,4 +2157,5 @@ AVCodec ff_als_decoder = { .decode = decode_frame, .flush = flush, .capabilities = AV_CODEC_CAP_SUBFRAMES | AV_CODEC_CAP_DR1, + .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, };