Browse Source

* prevent crash in decoder

Originally committed as revision 179 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Zdenek Kabelac 23 years ago
parent
commit
525782f33f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/msmpeg4.c

+ 1
- 1
libavcodec/msmpeg4.c View File

@@ -664,7 +664,7 @@ int msmpeg4_decode_mb(MpegEncContext *s,

/* special slice handling */
if (s->mb_x == 0) {
if ((s->mb_y % s->slice_height) == 0) {
if (s->slice_height && (s->mb_y % s->slice_height) == 0) {
int wrap;
/* reset DC pred (set previous line to 1024) */
wrap = 2 * s->mb_width + 2;


Loading…
Cancel
Save