Commit 88ddcfa3 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/tdsc: use ff_codec_open2_recursive()

Fixes assertion failure and race conditions
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent e1f37c48
......@@ -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;
......
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