changeset 2772:4d8010054ba9 libavcodec

check mb_y
author michael
date Mon, 27 Jun 2005 23:13:10 +0000
parents 7da100c7403c
children 1d1b328d07ce
files h264.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/h264.c	Mon Jun 27 09:37:16 2005 +0000
+++ b/h264.c	Mon Jun 27 23:13:10 2005 +0000
@@ -4241,6 +4241,9 @@
 
     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;
+    if(s->mb_y >= s->mb_height){
+        return -1;
+    }
     
     if(s->picture_structure==PICT_FRAME){
         h->curr_pic_num=   h->frame_num;