[FFmpeg-cvslog] avcodec/cngdec: set .caps_internal
Paul B Mahol
git at videolan.org
Sun Jul 7 12:36:18 EEST 2019
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sun Jul 7 11:33:19 2019 +0200| [ca576833e46ca5657b41a29849ac2cbc775ccfda] | committer: Paul B Mahol
avcodec/cngdec: set .caps_internal
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ca576833e46ca5657b41a29849ac2cbc775ccfda
---
libavcodec/cngdec.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libavcodec/cngdec.c b/libavcodec/cngdec.c
index 28432ac719..43b96fea1b 100644
--- a/libavcodec/cngdec.c
+++ b/libavcodec/cngdec.c
@@ -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);
}
@@ -175,4 +174,6 @@ AVCodec ff_comfortnoise_decoder = {
.sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_S16,
AV_SAMPLE_FMT_NONE },
.capabilities = AV_CODEC_CAP_DELAY | AV_CODEC_CAP_DR1,
+ .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE |
+ FF_CODEC_CAP_INIT_CLEANUP,
};
More information about the ffmpeg-cvslog
mailing list