summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy B. Terriberry <tterribe@xiph.org>2010-08-27 15:21:22 -0700
committerTimothy B. Terriberry <tterribe@xiph.org>2010-08-27 15:21:22 -0700
commite105e245ef02e7ce3c78950af01cfc78ce2a7459 (patch)
tree658ca16fae8966fb6be5255f6dddf5acf26ae446
parent00358cb9742d454debc8b788690119a1e6e83c4a (diff)
downloadlibvpx-e105e245ef02e7ce3c78950af01cfc78ce2a7459.tar
libvpx-e105e245ef02e7ce3c78950af01cfc78ce2a7459.tar.gz
libvpx-e105e245ef02e7ce3c78950af01cfc78ce2a7459.tar.bz2
libvpx-e105e245ef02e7ce3c78950af01cfc78ce2a7459.zip
Fix two-pass framrate for Y4M input.
The timebase was being set to the value in the Y4M file on each pass, but only doubled to account for the altref placement on the first past. This avoids reseting it on the second pass. Change-Id: Ie342639bad1ffe9c2214fbbaaded72cfed835b42
-rw-r--r--ivfenc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ivfenc.c b/ivfenc.c
index 3487b3594..9afcf7c69 100644
--- a/ivfenc.c
+++ b/ivfenc.c
@@ -890,6 +890,8 @@ int main(int argc, const char **argv_)
{
cfg.g_timebase.num = y4m.fps_d;
cfg.g_timebase.den = y4m.fps_n;
+ /* And don't reset it in the second pass.*/
+ arg_have_timebase = 1;
}
arg_use_i420 = 0;
}