[Ffmpeg-cvslog] CVS: ffmpeg/libavcodec h264.c,1.139,1.140

Michael Niedermayer CVS michael
Tue Jun 28 01:13:13 CEST 2005


Update of /cvsroot/ffmpeg/ffmpeg/libavcodec
In directory mail:/var2/tmp/cvs-serv2251

Modified Files:
	h264.c 
Log Message:
check mb_y


Index: h264.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavcodec/h264.c,v
retrieving revision 1.139
retrieving revision 1.140
diff -u -d -r1.139 -r1.140
--- h264.c	27 Jun 2005 09:37:16 -0000	1.139
+++ h264.c	27 Jun 2005 23:13:10 -0000	1.140
@@ -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;





More information about the ffmpeg-cvslog mailing list