Commit ca576833 authored by Paul B Mahol's avatar Paul B Mahol

avcodec/cngdec: set .caps_internal

parent 2bd21b96
...@@ -69,7 +69,6 @@ static av_cold int cng_decode_init(AVCodecContext *avctx) ...@@ -69,7 +69,6 @@ static av_cold int cng_decode_init(AVCodecContext *avctx)
p->excitation = av_mallocz_array(avctx->frame_size, sizeof(*p->excitation)); p->excitation = av_mallocz_array(avctx->frame_size, sizeof(*p->excitation));
if (!p->refl_coef || !p->target_refl_coef || !p->lpc_coef || if (!p->refl_coef || !p->target_refl_coef || !p->lpc_coef ||
!p->filter_out || !p->excitation) { !p->filter_out || !p->excitation) {
cng_decode_close(avctx);
return AVERROR(ENOMEM); return AVERROR(ENOMEM);
} }
...@@ -175,4 +174,6 @@ AVCodec ff_comfortnoise_decoder = { ...@@ -175,4 +174,6 @@ AVCodec ff_comfortnoise_decoder = {
.sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_S16, .sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_S16,
AV_SAMPLE_FMT_NONE }, AV_SAMPLE_FMT_NONE },
.capabilities = AV_CODEC_CAP_DELAY | AV_CODEC_CAP_DR1, .capabilities = AV_CODEC_CAP_DELAY | AV_CODEC_CAP_DR1,
.caps_internal = FF_CODEC_CAP_INIT_THREADSAFE |
FF_CODEC_CAP_INIT_CLEANUP,
}; };
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment