diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-03-13 23:18:12 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-03-13 23:23:16 +0100 |
commit | 88ddcfa37f0067aae7457b44f433982f4c6d72ee (patch) | |
tree | 74d8cc364e5d9bd91fae1ac1eb418674b62080b6 /libavcodec/tdsc.c | |
parent | e1f37c48e54f98d34f8a032e1d96f7a135a8545d (diff) | |
download | ffmpeg-88ddcfa37f0067aae7457b44f433982f4c6d72ee.tar.gz |
avcodec/tdsc: use ff_codec_open2_recursive()
Fixes assertion failure and race conditions
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/tdsc.c')
-rw-r--r-- | libavcodec/tdsc.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |