[x265] [PATCH] cli: fix incorrect timebase source

Xinyue Lu maillist at 7086.in
Fri Apr 17 23:08:11 CEST 2015


# This patch should not affect official build since timebase is not used anywhere for now.

# HG changeset patch
# User Xinyue Lu <i at 7086.in>
# Date 1429304546 25200
#      Fri Apr 17 14:02:26 2015 -0700
# Branch Yuuki
# Node ID d25e590d7ec777f203003672e16481d725b233e6
# Parent  45610a24b39961ec89a5cd0b6f7549c207007635
cli: fix incorrect timebase source

Timebase should follow user-specified fps under cfr mode because we will overwrite pts to poc.

diff -r 45610a24b399 -r d25e590d7ec7 source/x265.cpp
--- a/source/x265.cpp	Fri Apr 17 09:40:06 2015 -0700
+++ b/source/x265.cpp	Fri Apr 17 14:02:26 2015 -0700
@@ -348,8 +348,8 @@
     param->totalFrames = this->framesToBeEncoded;

     /* Force CFR until we have support for VFR */
-    info.timebaseNum = info.fpsDenom;
-    info.timebaseDenom = info.fpsNum;
+    info.timebaseNum = param->fpsDenom;
+    info.timebaseDenom = param->fpsNum;

     if (x265_param_apply_profile(param, profile))
         return true;


More information about the x265-devel mailing list