projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9bc9322
)
10l, forgot to skip payload description in UMF packet parsing
author
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Wed, 7 Feb 2007 22:51:42 +0000
(22:51 +0000)
committer
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Wed, 7 Feb 2007 22:51:42 +0000
(22:51 +0000)
Originally committed as revision 7878 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/gxf.c
patch
|
blob
|
history
diff --git
a/libavformat/gxf.c
b/libavformat/gxf.c
index
897cdad
..
189f56a
100644
(file)
--- 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 >=
0x3
9) {
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