[x265] [PATCH] slicetype: fix non-determinism issue in slice type decisions

Steve Borho steve at borho.org
Wed Feb 25 16:07:56 CET 2015


On 02/25, aarthi at multicorewareinc.com wrote:
> # HG changeset patch
> # User Aarthi Thirumalai
> # Date 1424869604 -19800
> #      Wed Feb 25 18:36:44 2015 +0530
> # Node ID 7c197b37459b6aebf929f4a1381b74f71ebc82f7
> # Parent  87173d41df87043297698770c8e99ac8c419d19e
> slicetype: fix non-determinism issue in slice type decisions

queued, with w/s fixups

> diff -r 87173d41df87 -r 7c197b37459b source/encoder/slicetype.cpp
> --- a/source/encoder/slicetype.cpp	Tue Feb 24 13:27:15 2015 -0600
> +++ b/source/encoder/slicetype.cpp	Wed Feb 25 18:36:44 2015 +0530
> @@ -1049,7 +1049,6 @@
>              m_outputQueue.pushBack(*list[i]);
>          }
>      }
> -    m_outputLock.release();
>  
>      bool isKeyFrameAnalyse = (m_param->rc.cuTree || (m_param->rc.vbvBufferSize && m_param->lookaheadDepth)) && !m_param->rc.bStatRead;
>      if (isKeyFrameAnalyse && IS_X265_TYPE_I(m_lastNonB->sliceType))
> @@ -1068,6 +1067,7 @@
>          frames[j + 1] = NULL;
>          slicetypeAnalyse(frames, true);
>      }
> +        m_outputLock.release();
>  }
>  
>  void Lookahead::vbvLookahead(Lowres **frames, int numFrames, int keyframe)
> _______________________________________________
> 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