[Ffmpeg-cvslog] CVS: ffmpeg/libavcodec mpegvideo.c,1.509,1.510

Michael Niedermayer CVS michael
Mon Feb 6 12:21:29 CET 2006


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

Modified Files:
	mpegvideo.c 
Log Message:
1 goto 1 fix


Index: mpegvideo.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavcodec/mpegvideo.c,v
retrieving revision 1.509
retrieving revision 1.510
diff -u -d -r1.509 -r1.510
--- mpegvideo.c	5 Feb 2006 13:35:16 -0000	1.509
+++ mpegvideo.c	6 Feb 2006 11:21:26 -0000	1.510
@@ -231,6 +231,10 @@
 const uint8_t *ff_find_start_code(const uint8_t * restrict p, const uint8_t *end, uint32_t * restrict state){
     int i;
 
+    assert(p<=end);
+    if(p>=end)
+        return end;
+
     for(i=0; i<3; i++){
         uint32_t tmp= *state << 8;
         *state= tmp + *(p++);





More information about the ffmpeg-cvslog mailing list