[FFmpeg-cvslog] avcodec/ac3enc: add FF_CODEC_CAP_INIT_CLEANUP
Limin Wang
git at videolan.org
Sat Jun 13 02:04:25 EEST 2020
ffmpeg | branch: master | Limin Wang <lance.lmwang at gmail.com> | Mon Jun 1 22:06:46 2020 +0800| [ee726e777b851cdd4e28cdab36b38f0c39e35ea9] | committer: Limin Wang
avcodec/ac3enc: add FF_CODEC_CAP_INIT_CLEANUP
Signed-off-by: Limin Wang <lance.lmwang at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ee726e777b851cdd4e28cdab36b38f0c39e35ea9
---
libavcodec/ac3enc.c | 1 -
libavcodec/ac3enc_fixed.c | 1 +
2 files changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/ac3enc.c b/libavcodec/ac3enc.c
index ddbc7b247c..4fb2dd9b86 100644
--- a/libavcodec/ac3enc.c
+++ b/libavcodec/ac3enc.c
@@ -2490,6 +2490,5 @@ av_cold int ff_ac3_encode_init(AVCodecContext *avctx)
return 0;
init_fail:
- ff_ac3_encode_close(avctx);
return ret;
}
diff --git a/libavcodec/ac3enc_fixed.c b/libavcodec/ac3enc_fixed.c
index e57d035294..428bbfb3c5 100644
--- a/libavcodec/ac3enc_fixed.c
+++ b/libavcodec/ac3enc_fixed.c
@@ -155,6 +155,7 @@ AVCodec ff_ac3_fixed_encoder = {
.sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_S16P,
AV_SAMPLE_FMT_NONE },
.priv_class = &ac3enc_class,
+ .caps_internal = FF_CODEC_CAP_INIT_CLEANUP,
.supported_samplerates = ff_ac3_sample_rate_tab,
.channel_layouts = ff_ac3_channel_layouts,
.defaults = ac3_defaults,
More information about the ffmpeg-cvslog
mailing list