Browse Source

fixing decoding of streams with no keyframe at the start

Originally committed as revision 1072 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Michael Niedermayer 22 years ago
parent
commit
917f58279d
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavcodec/msmpeg4.c

+ 2
- 0
libavcodec/msmpeg4.c View File

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



Loading…
Cancel
Save