[FFmpeg-cvslog] r24035 - trunk/libavformat/mov.c

conrad subversion
Sun Jul 4 06:59:12 CEST 2010


Author: conrad
Date: Sun Jul  4 06:59:12 2010
New Revision: 24035

Log:
mov: Read Flash's chpl variant

This is based off of F4V specs rather than any actual files

Modified:
   trunk/libavformat/mov.c

Modified: trunk/libavformat/mov.c
==============================================================================
--- trunk/libavformat/mov.c	Sun Jul  4 01:24:37 2010	(r24034)
+++ trunk/libavformat/mov.c	Sun Jul  4 06:59:12 2010	(r24035)
@@ -222,14 +222,16 @@ static int mov_read_udta_string(MOVConte
 static int mov_read_chpl(MOVContext *c, ByteIOContext *pb, MOVAtom atom)
 {
     int64_t start;
-    int i, nb_chapters, str_len;
+    int i, nb_chapters, str_len, version;
     char str[256+1];
 
     if ((atom.size -= 5) < 0)
         return 0;
 
-    get_be32(pb); // version + flags
-    get_be32(pb); // ???
+    version = get_byte(pb);
+    get_be24(pb);
+    if (version)
+        get_be32(pb); // ???
     nb_chapters = get_byte(pb);
 
     for (i = 0; i < nb_chapters; i++) {



More information about the ffmpeg-cvslog mailing list