Commit 46d16d70 authored by michaelni's avatar michaelni

passing avctx->flags so that grayscale only decoding works with mpeg1/2 too


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@678 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent bdbe7ecf
...@@ -33,8 +33,6 @@ ...@@ -33,8 +33,6 @@
#define EXT_START_CODE 0x000001b5 #define EXT_START_CODE 0x000001b5
#define USER_START_CODE 0x000001b2 #define USER_START_CODE 0x000001b2
//#define ABS(a) ((a)<0 ? -(a) : (a))
static void mpeg1_encode_block(MpegEncContext *s, static void mpeg1_encode_block(MpegEncContext *s,
DCTELEM *block, DCTELEM *block,
int component); int component);
...@@ -1194,6 +1192,7 @@ static int mpeg_decode_init(AVCodecContext *avctx) ...@@ -1194,6 +1192,7 @@ static int mpeg_decode_init(AVCodecContext *avctx)
s->repeat_field = 0; s->repeat_field = 0;
s->mpeg_enc_ctx.codec_id= avctx->codec->id; s->mpeg_enc_ctx.codec_id= avctx->codec->id;
avctx->mbskip_table= s->mpeg_enc_ctx.mbskip_table; avctx->mbskip_table= s->mpeg_enc_ctx.mbskip_table;
s->mpeg_enc_ctx.flags= avctx->flags;
return 0; return 0;
} }
......
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