Mercurial > libavformat.hg
changeset 5758:fcf809c679f2 libavformat
GXF time base is always based on "fields" per second even for
non-interlaced video.
Should fix issue 1766.
author | reimar |
---|---|
date | Sat, 06 Mar 2010 22:20:33 +0000 |
parents | b1a108ca71c5 |
children | 9c83f9226020 |
files | gxf.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/gxf.c Fri Mar 05 22:38:48 2010 +0000 +++ b/gxf.c Sat Mar 06 22:20:33 2010 +0000 @@ -313,7 +313,7 @@ st = s->streams[idx]; if (!main_timebase.num || !main_timebase.den) { main_timebase.num = si.frames_per_second.den; - main_timebase.den = si.frames_per_second.num * si.fields_per_frame; + main_timebase.den = si.frames_per_second.num * 2; } st->start_time = si.first_field; if (si.first_field != AV_NOPTS_VALUE && si.last_field != AV_NOPTS_VALUE) @@ -344,7 +344,7 @@ if (!main_timebase.num || !main_timebase.den) { // this may not always be correct, but simply the best we can get main_timebase.num = fps.den; - main_timebase.den = fps.num; + main_timebase.den = fps.num * 2; } } else av_log(s, AV_LOG_INFO, "UMF packet too short\n");