diff options
author | Limin Wang <lance.lmwang@gmail.com> | 2020-05-28 23:53:46 +0800 |
---|---|---|
committer | Limin Wang <lance.lmwang@gmail.com> | 2020-06-13 06:59:18 +0800 |
commit | 61454bb6fff8f77ad51091b76835c41c6c8ec9d8 (patch) | |
tree | 7b269767249497e8ff0eb5e268c8bcf2be06693b | |
parent | 3240121509662ba1dfd5f918d8e94e89918e8082 (diff) | |
download | ffmpeg-61454bb6fff8f77ad51091b76835c41c6c8ec9d8.tar.gz |
avcodec/apedec: add FF_CODEC_CAP_INIT_CLEANUP
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
-rw-r--r-- | libavcodec/apedec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/apedec.c b/libavcodec/apedec.c index 65c07d0f7f..0bee9d83f1 100644 --- a/libavcodec/apedec.c +++ b/libavcodec/apedec.c @@ -301,7 +301,6 @@ static av_cold int ape_decode_init(AVCodecContext *avctx) return 0; filter_alloc_fail: - ape_decode_close(avctx); return AVERROR(ENOMEM); } @@ -1638,6 +1637,7 @@ AVCodec ff_ape_decoder = { .decode = ape_decode_frame, .capabilities = AV_CODEC_CAP_SUBFRAMES | AV_CODEC_CAP_DELAY | AV_CODEC_CAP_DR1, + .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, .flush = ape_flush, .sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_U8P, AV_SAMPLE_FMT_S16P, |