diff --git a/libavcodec/msmpeg4.c b/libavcodec/msmpeg4.c index 7d829cded5..cd74850f95 100644 --- a/libavcodec/msmpeg4.c +++ b/libavcodec/msmpeg4.c @@ -1170,6 +1170,8 @@ int ff_msmpeg4_decode_init(MpegEncContext *s) break; } + s->slice_height= s->mb_height; //to avoid 1/0 if the first frame isnt a keyframe + return 0; }