# HG changeset patch # User michaelni # Date 1023630233 0 # Node ID fde314e1aaa1d8d425742ca2f9d161ff6ea8243c # Parent 20108840b0e5cb2c75d46c4d013b808a2e6cb7e7 passing avctx->flags so that grayscale only decoding works with mpeg1/2 too diff -r 20108840b0e5 -r fde314e1aaa1 mpeg12.c --- a/mpeg12.c Sun Jun 09 13:35:56 2002 +0000 +++ b/mpeg12.c Sun Jun 09 13:43:53 2002 +0000 @@ -33,8 +33,6 @@ #define EXT_START_CODE 0x000001b5 #define USER_START_CODE 0x000001b2 -//#define ABS(a) ((a)<0 ? -(a) : (a)) - static void mpeg1_encode_block(MpegEncContext *s, DCTELEM *block, int component); @@ -1194,6 +1192,7 @@ s->repeat_field = 0; s->mpeg_enc_ctx.codec_id= avctx->codec->id; avctx->mbskip_table= s->mpeg_enc_ctx.mbskip_table; + s->mpeg_enc_ctx.flags= avctx->flags; return 0; }