Commit 5300ca22 authored by michaelni's avatar michaelni

fixing slices which start at mb_x>0


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@840 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent cf0c186c
......@@ -672,6 +672,12 @@ static int mpeg_decode_mb(MpegEncContext *s,
}
}
}
if(s->mb_x==-1 /* first MB in a slice */ && s->mb_incr>1){
s->mb_x+= (s->mb_incr - 1) % s->mb_width;
s->mb_y+= (s->mb_incr - 1) / s->mb_width;
s->mb_incr= 1;
}
if (++s->mb_x >= s->mb_width) {
s->mb_x = 0;
if (s->mb_y >= (s->mb_height - 1)){
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment