mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-24 03:39:45 +00:00
fixing slices which start at mb_x>0
Originally committed as revision 840 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
5507833249
commit
0a6baf39cb
@ -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)){
|
||||
|
Loading…
Reference in New Issue
Block a user