changeset 6230:fceb0e489495 libavformat

mov: Read Flash's chpl variant This is based off of F4V specs rather than any actual files
author conrad
date Sun, 04 Jul 2010 04:59:12 +0000
parents 3b049f067bdd
children 5b6a9502e11a
files mov.c
diffstat 1 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mov.c	Sat Jul 03 10:25:32 2010 +0000
+++ b/mov.c	Sun Jul 04 04:59:12 2010 +0000
@@ -222,14 +222,16 @@
 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++) {