diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2002-06-09 13:43:53 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2002-06-09 13:43:53 +0000 |
commit | 0398717356a331b137dd415400c35c2591bdc2bf (patch) | |
tree | 67d82528c1a688648225bd976e074ef88f056557 | |
parent | b50eef3ae0528bbfa36421a2dd471d80986322d5 (diff) | |
download | ffmpeg-0398717356a331b137dd415400c35c2591bdc2bf.tar.gz |
passing avctx->flags so that grayscale only decoding works with mpeg1/2 too
Originally committed as revision 678 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/mpeg12.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/mpeg12.c b/libavcodec/mpeg12.c index 3595475c04..37e9b70ac5 100644 --- a/libavcodec/mpeg12.c +++ b/libavcodec/mpeg12.c @@ -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 @@ static int mpeg_decode_init(AVCodecContext *avctx) 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; } |