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

Steve Borho steve at borho.org
Fri Apr 17 23:45:34 CEST 2015


On 04/17, Xinyue Lu wrote:
> # 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.

sure, ok

> 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;
> _______________________________________________
> x265-devel mailing list
> x265-devel at videolan.org
> https://mailman.videolan.org/listinfo/x265-devel

-- 
Steve Borho


More information about the x265-devel mailing list