Commit 7464ea04 authored by michael's avatar michael

check mb_y


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@4401 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent a61a0188
...@@ -4241,6 +4241,9 @@ static int decode_slice_header(H264Context *h){ ...@@ -4241,6 +4241,9 @@ static int decode_slice_header(H264Context *h){
s->resync_mb_x = s->mb_x = first_mb_in_slice % s->mb_width; s->resync_mb_x = s->mb_x = first_mb_in_slice % s->mb_width;
s->resync_mb_y = s->mb_y = first_mb_in_slice / s->mb_width; s->resync_mb_y = s->mb_y = first_mb_in_slice / s->mb_width;
if(s->mb_y >= s->mb_height){
return -1;
}
if(s->picture_structure==PICT_FRAME){ if(s->picture_structure==PICT_FRAME){
h->curr_pic_num= h->frame_num; h->curr_pic_num= h->frame_num;
......
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