Browse Source

avcodec/tdsc: use ff_codec_open2_recursive()

Fixes assertion failure and race conditions

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.7
Michael Niedermayer 11 years ago
parent
commit
88ddcfa37f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/tdsc.c

+ 1
- 1
libavcodec/tdsc.c View File

@@ -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;



Loading…
Cancel
Save