[x265] [PATCH] analysis: avoid creating analysis file when useanalysisFile option is disabled

Ashok Kumar Mishra ashok at multicorewareinc.com
Mon Dec 18 10:49:42 CET 2017


On Mon, Dec 18, 2017 at 10:22 AM, Divya Manivannan <
divya at multicorewareinc.com> wrote:

> # HG changeset patch
> # User Divya Manivannan <divya at multicorewareinc.com>
> # Date 1513247221 -19800
> #      Thu Dec 14 15:57:01 2017 +0530
> # Node ID 8cf56d46e0f916183082f8814d49e9decb864cb3
> # Parent  f09f3b4a21151de001fee2bb9e0e600c7b57fa39
> analysis: avoid creating analysis file when useanalysisFile option is
> disabled
>
> diff -r f09f3b4a2115 -r 8cf56d46e0f9 source/encoder/encoder.cpp
> --- a/source/encoder/encoder.cpp        Tue Dec 12 18:04:04 2017 +0530
> +++ b/source/encoder/encoder.cpp        Thu Dec 14 15:57:01 2017 +0530
> @@ -345,7 +345,7 @@
>
>      initRefIdx();
>
> -    if (m_param->analysisReuseMode)
> +    if (m_param->analysisReuseMode && m_param->bUseAnalysisFile)
>      {
>          const char* name = m_param->analysisReuseFileName;
>          if (!name)
> @@ -3248,7 +3248,8 @@
>      static uint64_t consumedBytes = 0;
>      static uint64_t totalConsumedBytes = 0;
>      uint32_t depthBytes = 0;
> -    fseeko(m_analysisFile, totalConsumedBytes, SEEK_SET);
> +    if (m_param->bUseAnalysisFile)
> +        fseeko(m_analysisFile, totalConsumedBytes, SEEK_SET);
>
>      const x265_analysis_data *picData = &(picIn->analysisData);
>      analysis_intra_data *intraPic = (analysis_intra_data
> *)picData->intraData;
> Pushed.
> _______________________________________________
> x265-devel mailing list
> x265-devel at videolan.org
> https://mailman.videolan.org/listinfo/x265-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20171218/b8e9450e/attachment.html>


More information about the x265-devel mailing list