From 88ddcfa37f0067aae7457b44f433982f4c6d72ee Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 13 Mar 2015 23:18:12 +0100 Subject: avcodec/tdsc: use ff_codec_open2_recursive() Fixes assertion failure and race conditions Signed-off-by: Michael Niedermayer --- libavcodec/tdsc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec') diff --git a/libavcodec/tdsc.c b/libavcodec/tdsc.c index 77af117cf6..5b4e03f64c 100644 --- a/libavcodec/tdsc.c +++ b/libavcodec/tdsc.c @@ -125,7 +125,7 @@ static av_cold int tdsc_init(AVCodecContext *avctx) ctx->jpeg_avctx->flags2 = avctx->flags2; ctx->jpeg_avctx->dct_algo = avctx->dct_algo; ctx->jpeg_avctx->idct_algo = avctx->idct_algo;; - ret = avcodec_open2(ctx->jpeg_avctx, codec, NULL); + ret = ff_codec_open2_recursive(ctx->jpeg_avctx, codec, NULL); if (ret < 0) return ret; -- cgit v1.2.3