Browse code

10l, forgot to skip payload description in UMF packet parsing

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

Reimar Döffinger authored on 2007/02/08 07:51:42
Showing 1 changed files
... ...
@@ -360,10 +360,11 @@ static int gxf_header(AVFormatContext *s, AVFormatParameters *ap) {
360 360
         }
361 361
     }
362 362
     if (pkt_type == PKT_UMF) {
363
-        if (len >= 9) {
363
+        if (len >= 0x39) {
364 364
             AVRational fps;
365
-            len -= 9;
366
-            url_fskip(pb, 5);
365
+            len -= 0x39;
366
+            url_fskip(pb, 5); // preamble
367
+            url_fskip(pb, 0x30); // payload description
367 368
             fps = fps_umf2avr(get_le32(pb));
368 369
             if (!main_timebase.num || !main_timebase.den) {
369 370
                 // this may not always be correct, but simply the best we can get