summaryrefslogtreecommitdiff
path: root/libavformat/gxf.c
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2007-02-07 22:51:42 +0000
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2007-02-07 22:51:42 +0000
commit2a1c3b8b907afdf44f0f30ae919fd7b46b7b70e0 (patch)
tree0a2194cad6fe94f682c682b131b8cc400188ea6d /libavformat/gxf.c
parent9bc932294f51bfcdc89225be11453b64d05dcce9 (diff)
10l, forgot to skip payload description in UMF packet parsing
Originally committed as revision 7878 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/gxf.c')
-rw-r--r--libavformat/gxf.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libavformat/gxf.c b/libavformat/gxf.c
index 897cdade0f..189f56a417 100644
--- a/libavformat/gxf.c
+++ b/libavformat/gxf.c
@@ -360,10 +360,11 @@ static int gxf_header(AVFormatContext *s, AVFormatParameters *ap) {
}
}
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