]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
Do not fail if 'uuid' atom is encountered before 'moov'.
authorbcoudurier <bcoudurier@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Mon, 6 Jul 2009 05:36:14 +0000 (05:36 +0000)
committerbcoudurier <bcoudurier@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Mon, 6 Jul 2009 05:36:14 +0000 (05:36 +0000)
Patch by Frank Barchard, fbarchard at google dot com.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@19354 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

tools/qt-faststart.c

index a256eb18563d44824bf18d1af6a3cf05a40ebdaa..ff86e56e20463d0bb8b28c5dc3ba2ec0ac7f0e82 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * qt-faststart.c, v0.1
+ * qt-faststart.c, v0.2
  * by Mike Melanson (melanson@pcisys.net)
  * This file is placed in the public domain. Use the program however you
  * see fit.
@@ -64,6 +64,7 @@
 #define WIDE_ATOM QT_ATOM('w', 'i', 'd', 'e')
 #define PICT_ATOM QT_ATOM('P', 'I', 'C', 'T')
 #define FTYP_ATOM QT_ATOM('f', 't', 'y', 'p')
+#define UUID_ATOM QT_ATOM('u', 'u', 'i', 'd')
 
 #define CMOV_ATOM QT_ATOM('c', 'm', 'o', 'v')
 #define STCO_ATOM QT_ATOM('s', 't', 'c', 'o')
@@ -119,6 +120,7 @@ int main(int argc, char *argv[])
             (atom_type != SKIP_ATOM) &&
             (atom_type != WIDE_ATOM) &&
             (atom_type != PICT_ATOM) &&
+            (atom_type != UUID_ATOM) &&
             (atom_type != FTYP_ATOM)) {
             printf ("encountered non-QT top-level atom (is this a Quicktime file?)\n");
             break;