summaryrefslogtreecommitdiff
path: root/libavformat/gxf.c
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2011-08-03 20:05:59 +0200
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2011-08-03 20:06:38 +0200
commit1816addc4ebedd8d08633fbff0daf52bf4e4b77f (patch)
tree7e58cb998c9dbcd9a0cc9ec1748a669eb7c29409 /libavformat/gxf.c
parent46eaaad8dd12eb6c962bc0f1d528afff933dc872 (diff)
downloadffmpeg-1816addc4ebedd8d08633fbff0daf52bf4e4b77f.tar.gz
Warn when falling back to unreliable UMF fps tag.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Diffstat (limited to 'libavformat/gxf.c')
-rw-r--r--libavformat/gxf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/gxf.c b/libavformat/gxf.c
index 15893a44af..898dce7eb5 100644
--- a/libavformat/gxf.c
+++ b/libavformat/gxf.c
@@ -346,6 +346,8 @@ static int gxf_header(AVFormatContext *s, AVFormatParameters *ap) {
avio_skip(pb, 0x30); // payload description
fps = fps_umf2avr(avio_rl32(pb));
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
main_timebase.num = fps.den;
main_timebase.den = fps.num * 2;