Browse code

Do not fail if 'uuid' atom is encountered before 'moov'. Patch by Frank Barchard, fbarchard at google dot com.

Originally committed as revision 19354 to svn://svn.ffmpeg.org/ffmpeg/trunk

Frank Barchard authored on 2009/07/06 14:36:14
Showing 1 changed files
... ...
@@ -1,5 +1,5 @@
1 1
 /*
2
- * qt-faststart.c, v0.1
2
+ * qt-faststart.c, v0.2
3 3
  * by Mike Melanson (melanson@pcisys.net)
4 4
  * This file is placed in the public domain. Use the program however you
5 5
  * see fit.
... ...
@@ -64,6 +64,7 @@
64 64
 #define WIDE_ATOM QT_ATOM('w', 'i', 'd', 'e')
65 65
 #define PICT_ATOM QT_ATOM('P', 'I', 'C', 'T')
66 66
 #define FTYP_ATOM QT_ATOM('f', 't', 'y', 'p')
67
+#define UUID_ATOM QT_ATOM('u', 'u', 'i', 'd')
67 68
 
68 69
 #define CMOV_ATOM QT_ATOM('c', 'm', 'o', 'v')
69 70
 #define STCO_ATOM QT_ATOM('s', 't', 'c', 'o')
... ...
@@ -119,6 +120,7 @@ int main(int argc, char *argv[])
119 119
             (atom_type != SKIP_ATOM) &&
120 120
             (atom_type != WIDE_ATOM) &&
121 121
             (atom_type != PICT_ATOM) &&
122
+            (atom_type != UUID_ATOM) &&
122 123
             (atom_type != FTYP_ATOM)) {
123 124
             printf ("encountered non-QT top-level atom (is this a Quicktime file?)\n");
124 125
             break;