Commit 1816addc authored by Reimar Döffinger's avatar Reimar Döffinger

Warn when falling back to unreliable UMF fps tag.

Signed-off-by: 's avatarReimar Döffinger <Reimar.Doeffinger@gmx.de>
parent 46eaaad8
...@@ -346,6 +346,8 @@ static int gxf_header(AVFormatContext *s, AVFormatParameters *ap) { ...@@ -346,6 +346,8 @@ static int gxf_header(AVFormatContext *s, AVFormatParameters *ap) {
avio_skip(pb, 0x30); // payload description avio_skip(pb, 0x30); // payload description
fps = fps_umf2avr(avio_rl32(pb)); fps = fps_umf2avr(avio_rl32(pb));
if (!main_timebase.num || !main_timebase.den) { if (!main_timebase.num || !main_timebase.den) {
av_log(s, AV_LOG_WARNING, "No FPS track tag, using UMF fps tag."
" This might give wrong results.\n");
// 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
main_timebase.num = fps.den; main_timebase.num = fps.den;
main_timebase.den = fps.num * 2; main_timebase.den = fps.num * 2;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment