]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/cngdec.c
avfilter/formats: Remove avfilter_make_format64_list()
[ffmpeg] / libavcodec / cngdec.c
index 28432ac7194b61880699e04639a6f8f650aed487..ceee087c576a70405c9c090426af285881b99d30 100644 (file)
@@ -69,7 +69,6 @@ static av_cold int cng_decode_init(AVCodecContext *avctx)
     p->excitation       = av_mallocz_array(avctx->frame_size, sizeof(*p->excitation));
     if (!p->refl_coef || !p->target_refl_coef || !p->lpc_coef ||
         !p->filter_out || !p->excitation) {
-        cng_decode_close(avctx);
         return AVERROR(ENOMEM);
     }
 
@@ -174,5 +173,7 @@ AVCodec ff_comfortnoise_decoder = {
     .close          = cng_decode_close,
     .sample_fmts    = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_S16,
                                                      AV_SAMPLE_FMT_NONE },
-    .capabilities   = AV_CODEC_CAP_DELAY | AV_CODEC_CAP_DR1,
+    .capabilities   = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_CHANNEL_CONF,
+    .caps_internal  = FF_CODEC_CAP_INIT_THREADSAFE |
+                      FF_CODEC_CAP_INIT_CLEANUP,
 };