mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avcodec/ac3enc: add FF_CODEC_CAP_INIT_CLEANUP
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
This commit is contained in:
parent
61454bb6ff
commit
ee726e777b
@ -2490,6 +2490,5 @@ av_cold int ff_ac3_encode_init(AVCodecContext *avctx)
|
|||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
init_fail:
|
init_fail:
|
||||||
ff_ac3_encode_close(avctx);
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
@ -155,6 +155,7 @@ AVCodec ff_ac3_fixed_encoder = {
|
|||||||
.sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_S16P,
|
.sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_S16P,
|
||||||
AV_SAMPLE_FMT_NONE },
|
AV_SAMPLE_FMT_NONE },
|
||||||
.priv_class = &ac3enc_class,
|
.priv_class = &ac3enc_class,
|
||||||
|
.caps_internal = FF_CODEC_CAP_INIT_CLEANUP,
|
||||||
.supported_samplerates = ff_ac3_sample_rate_tab,
|
.supported_samplerates = ff_ac3_sample_rate_tab,
|
||||||
.channel_layouts = ff_ac3_channel_layouts,
|
.channel_layouts = ff_ac3_channel_layouts,
|
||||||
.defaults = ac3_defaults,
|
.defaults = ac3_defaults,
|
||||||
|
Loading…
Reference in New Issue
Block a user