From 9fee1e234e5f50ee2abd3654cb40fabc3a952ce0 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Wed, 16 Oct 2002 22:18:41 +0000 Subject: [PATCH] init flags before using it (found by arpi) Originally committed as revision 1047 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/mpegvideo.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c index 095bf08a98..440e398a2c 100644 --- a/libavcodec/mpegvideo.c +++ b/libavcodec/mpegvideo.c @@ -229,6 +229,8 @@ int MPV_common_init(MpegEncContext *s) UINT8 *pict; DCT_common_init(s); + + s->flags= s->avctx->flags; s->mb_width = (s->width + 15) / 16; s->mb_height = (s->height + 15) / 16;