aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-05-30 03:30:01 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-05-30 03:30:01 +0200
commit455ae871a8c9a007a52c8a69e68fb9d7fa5d4ab9 (patch)
treed375fe89fbddfebf37365992cba3827f52c8aba9
parentfa30f4c24d1081b4e0339bf534ed1df37b7b2c1a (diff)
downloadffmpeg-455ae871a8c9a007a52c8a69e68fb9d7fa5d4ab9.tar.gz
libavcodec/smvjpegdec: pass flags / idct algo into jpeg avctx
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/smvjpegdec.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/smvjpegdec.c b/libavcodec/smvjpegdec.c
index 9542ccc899..57116c2900 100644
--- a/libavcodec/smvjpegdec.c
+++ b/libavcodec/smvjpegdec.c
@@ -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;