[Ffmpeg-cvslog] CVS: ffmpeg/libavcodec h264.c,1.153,1.154

Michael Niedermayer CVS michael
Sat Sep 10 03:13:13 CEST 2005


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

Modified Files:
	h264.c 
Log Message:
dont be so picky with .mp4 ... fixes Mr&MrsSmith.mp4


Index: h264.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavcodec/h264.c,v
retrieving revision 1.153
retrieving revision 1.154
diff -u -d -r1.153 -r1.154
--- h264.c	5 Sep 2005 17:07:52 -0000	1.153
+++ h264.c	10 Sep 2005 01:13:10 -0000	1.154
@@ -7279,8 +7279,8 @@
     int buf_index=0;
 #if 0
     int i;
-    for(i=0; i<32; i++){
-        printf("%X ", buf[i]);
+    for(i=0; i<50; i++){
+        av_log(NULL, AV_LOG_ERROR,"%02X ", buf[i]);
     }
 #endif
     h->slice_num = 0;
@@ -7484,7 +7484,7 @@
         p += 6;
         for (i = 0; i < cnt; i++) {
             nalsize = BE_16(p) + 2;
-            if(decode_nal_units(h, p, nalsize) != nalsize) {
+            if(decode_nal_units(h, p, nalsize) < 0) {
                 av_log(avctx, AV_LOG_ERROR, "Decoding sps %d from avcC failed\n", i);
                 return -1;
             }





More information about the ffmpeg-cvslog mailing list