Commit 90d1c8f4 authored by michaelni's avatar michaelni

b frames + slices bugfix


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@1745 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 66acaee0
...@@ -2499,6 +2499,11 @@ static int mpeg4_decode_video_packet_header(MpegEncContext *s) ...@@ -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); fprintf(stderr, "illegal mb_num in video packet (%d %d) \n", mb_num, s->mb_num);
return -1; 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_x= mb_num % s->mb_width;
s->mb_y= mb_num / s->mb_width; s->mb_y= mb_num / s->mb_width;
......
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