diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-06-25 10:19:55 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-06-30 11:59:54 +0200 |
commit | b146a61c226321a3c6d70d240a36c800e7795400 (patch) | |
tree | 94bbcff28a0bc7403212f2f2396f31bb67780518 /libavcodec | |
parent | b6f505ce0ae7bcb05a4ad118753407fd7d022829 (diff) | |
download | ffmpeg-b146a61c226321a3c6d70d240a36c800e7795400.tar.gz |
avcodec/smacker: Add FF_CODEC_CAP_INIT_CLEANUP
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/smacker.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/smacker.c b/libavcodec/smacker.c index b4c463b4b9..9f054f071d 100644 --- a/libavcodec/smacker.c +++ b/libavcodec/smacker.c @@ -600,13 +600,11 @@ static av_cold int decode_init(AVCodecContext *avctx) /* decode huffman trees from extradata */ if(avctx->extradata_size < 16){ av_log(avctx, AV_LOG_ERROR, "Extradata missing!\n"); - decode_end(avctx); return AVERROR(EINVAL); } ret = decode_header_trees(c); if (ret < 0) { - decode_end(avctx); return ret; } @@ -840,6 +838,7 @@ AVCodec ff_smacker_decoder = { .close = decode_end, .decode = decode_frame, .capabilities = AV_CODEC_CAP_DR1, + .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, }; AVCodec ff_smackaud_decoder = { |