mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-04-14 00:58:38 +02:00
10l, forgot to skip payload description in UMF packet parsing
Originally committed as revision 7878 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
9bc932294f
commit
2a1c3b8b90
@ -360,10 +360,11 @@ static int gxf_header(AVFormatContext *s, AVFormatParameters *ap) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (pkt_type == PKT_UMF) {
|
if (pkt_type == PKT_UMF) {
|
||||||
if (len >= 9) {
|
if (len >= 0x39) {
|
||||||
AVRational fps;
|
AVRational fps;
|
||||||
len -= 9;
|
len -= 0x39;
|
||||||
url_fskip(pb, 5);
|
url_fskip(pb, 5); // preamble
|
||||||
|
url_fskip(pb, 0x30); // payload description
|
||||||
fps = fps_umf2avr(get_le32(pb));
|
fps = fps_umf2avr(get_le32(pb));
|
||||||
if (!main_timebase.num || !main_timebase.den) {
|
if (!main_timebase.num || !main_timebase.den) {
|
||||||
// this may not always be correct, but simply the best we can get
|
// this may not always be correct, but simply the best we can get
|
||||||
|
Loading…
x
Reference in New Issue
Block a user