mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-28 05:50:43 +00:00
b frames + slices bugfix
Originally committed as revision 1745 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
0aae3f43e4
commit
84876d3677
@ -2499,6 +2499,11 @@ static int mpeg4_decode_video_packet_header(MpegEncContext *s)
|
||||
fprintf(stderr, "illegal mb_num in video packet (%d %d) \n", mb_num, s->mb_num);
|
||||
return -1;
|
||||
}
|
||||
if(s->pict_type == B_TYPE){
|
||||
while(s->next_picture.mbskip_table[ mb_num ]) mb_num++;
|
||||
if(mb_num >= s->mb_num) return -1; // slice contains just skiped MBs which where allready decoded
|
||||
}
|
||||
|
||||
s->mb_x= mb_num % s->mb_width;
|
||||
s->mb_y= mb_num / s->mb_width;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user