diff options
author | Limin Wang <lance.lmwang@gmail.com> | 2020-05-29 21:08:58 +0800 |
---|---|---|
committer | Limin Wang <lance.lmwang@gmail.com> | 2020-06-13 06:59:18 +0800 |
commit | 42a38503600531ee34efbe07c6dffb41a11a5a1d (patch) | |
tree | 0c3c688137ef1d01b46c3ea70fe24fc24bd71b10 /libavcodec/alac.c | |
parent | 17e88bf0df21906633a7d36d9f2aeeeb5b6d3267 (diff) | |
download | ffmpeg-42a38503600531ee34efbe07c6dffb41a11a5a1d.tar.gz |
avcodec/alac: Add FF_CODEC_CAP_INIT_CLEANUP
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
Diffstat (limited to 'libavcodec/alac.c')
-rw-r--r-- | libavcodec/alac.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/alac.c b/libavcodec/alac.c index 82689da02a..3b41373f47 100644 --- a/libavcodec/alac.c +++ b/libavcodec/alac.c @@ -511,7 +511,6 @@ static int allocate_buffers(ALACContext *alac) } return 0; buf_alloc_fail: - alac_decode_close(alac->avctx); return AVERROR(ENOMEM); } @@ -625,5 +624,6 @@ AVCodec ff_alac_decoder = { .close = alac_decode_close, .decode = alac_decode_frame, .capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_FRAME_THREADS, + .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, .priv_class = &alac_class }; |