[Ffmpeg-cvslog] CVS: ffmpeg/libavformat movenc.c,1.76,1.77

Baptiste Coudurier CVS bcoudurier
Mon May 15 19:11:52 CEST 2006


Update of /cvsroot/ffmpeg/ffmpeg/libavformat
In directory mail:/var2/tmp/cvs-serv27463/libavformat

Modified Files:
	movenc.c 
Log Message:
fix avc nal parsing

Index: movenc.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavformat/movenc.c,v
retrieving revision 1.76
retrieving revision 1.77
diff -u -d -r1.76 -r1.77
--- movenc.c	13 May 2006 23:47:29 -0000	1.76
+++ movenc.c	15 May 2006 17:11:50 -0000	1.77
@@ -452,15 +452,15 @@
         if( (x - 0x01010101) & (~x) & 0x80808080 ) { // generic
             if( p[1] == 0 ) {
                 if( p[0] == 0 && p[2] == 1 )
-                    return p;
+                    return p-1;
                 if( p[2] == 0 && p[3] == 1 )
-                    return p+1;
+                    return p;
             }
             if( p[3] == 0 ) {
                 if( p[2] == 0 && p[4] == 1 )
-                    return p+2;
+                    return p+1;
                 if( p[4] == 0 && p[5] == 1 )
-                    return p+3;
+                    return p+2;
             }
         }
     }





More information about the ffmpeg-cvslog mailing list