Browse Source

libavcodec/smvjpegdec: pass flags / idct algo into jpeg avctx

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.0
Michael Niedermayer 12 years ago
parent
commit
455ae871a8
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavcodec/smvjpegdec.c

+ 2
- 0
libavcodec/smvjpegdec.c View File

@@ -109,6 +109,8 @@ static av_cold int smvjpeg_decode_init(AVCodecContext *avctx)
s->avctx = avcodec_alloc_context3(codec);

av_dict_set(&thread_opt, "threads", "1", 0);
s->avctx->flags = avctx->flags;
s->avctx->idct_algo = avctx->idct_algo;
if (ff_codec_open2_recursive(s->avctx, codec, &thread_opt) < 0) {
av_log(avctx, AV_LOG_ERROR, "MJPEG codec failed to open\n");
ret = -1;


Loading…
Cancel
Save