1
mirror of https://git.videolan.org/git/ffmpeg.git synced 2024-09-10 17:41:09 +02:00

init flags before using it (found by arpi)

Originally committed as revision 1047 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer 2002-10-16 22:18:41 +00:00
parent 073b013d00
commit 9fee1e234e

View File

@ -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;