mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-22 23:33:11 +00:00
* prevent crash in decoder
Originally committed as revision 179 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
9736722ad7
commit
525782f33f
@ -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…
Reference in New Issue
Block a user