changeset 1763:e77907af9057 libavformat

10l, forgot to skip payload description in UMF packet parsing
author reimar
date Wed, 07 Feb 2007 22:51:42 +0000
parents cb8b538021cd
children 913e0d9b82d3
files gxf.c
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/gxf.c	Wed Feb 07 22:26:48 2007 +0000
+++ b/gxf.c	Wed Feb 07 22:51:42 2007 +0000
@@ -360,10 +360,11 @@
         }
     }
     if (pkt_type == PKT_UMF) {
-        if (len >= 9) {
+        if (len >= 0x39) {
             AVRational fps;
-            len -= 9;
-            url_fskip(pb, 5);
+            len -= 0x39;
+            url_fskip(pb, 5); // preamble
+            url_fskip(pb, 0x30); // payload description
             fps = fps_umf2avr(get_le32(pb));
             if (!main_timebase.num || !main_timebase.den) {
                 // this may not always be correct, but simply the best we can get