summaryrefslogtreecommitdiff
path: root/libavcodec/msmpeg4.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2002-10-25 16:06:32 +0000
committerMichael Niedermayer <michaelni@gmx.at>2002-10-25 16:06:32 +0000
commit917f58279da045fe512e76dbf90eecdcdbb5ccf9 (patch)
tree25e06586ab21005cdda36f1204b2795ad1220626 /libavcodec/msmpeg4.c
parent50eb9cbc44bb79f67188e77a734ce2d66644eb54 (diff)
fixing decoding of streams with no keyframe at the start
Originally committed as revision 1072 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/msmpeg4.c')
-rw-r--r--libavcodec/msmpeg4.c2
1 files changed, 2 insertions, 0 deletions
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;
}