summaryrefslogtreecommitdiff
path: root/libavcodec/mpegvideo.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2002-10-16 22:18:41 +0000
committerMichael Niedermayer <michaelni@gmx.at>2002-10-16 22:18:41 +0000
commit9fee1e234e5f50ee2abd3654cb40fabc3a952ce0 (patch)
tree02ac867b9eabf154f3786feacd8c9d9d8f1e666c /libavcodec/mpegvideo.c
parent073b013d0000eabe642a8fb09c1046e8b1224760 (diff)
init flags before using it (found by arpi)
Originally committed as revision 1047 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpegvideo.c')
-rw-r--r--libavcodec/mpegvideo.c2
1 files changed, 2 insertions, 0 deletions
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;