changeset 12676:b7f6aae1d5cb

Fix cost estimation error for hist-based scenecut
author Pooja Venkatesan <pooja@multicorewareinc.com>
date Mon, 27 Jul 2020 13:40:10 +0530
parents 845eaba12d20
children bbf011c4e8b4
files source/encoder/slicetype.cpp
diffstat 1 files changed, 1 insertions(+-), 1 deletions(-) [+]
line wrap: on
line diff
--- a/source/encoder/slicetype.cpp	Tue Jul 07 04:41:45 2020 +0530
+++ b/source/encoder/slicetype.cpp	Mon Jul 27 13:40:10 2020 +0530
@@ -2244,7 +2244,7 @@ bool Lookahead::scenecut(Lowres **frames
          * and not considered a scenecut. */
         for (int cp1 = p1; cp1 <= maxp1; cp1++)
         {
-            if (!m_param->bHistBasedSceneCut && !scenecutInternal(frames, p0, cp1, false))
+            if (!scenecutInternal(frames, p0, cp1, false) && !m_param->bHistBasedSceneCut)
             {
                 /* Any frame in between p0 and cur_p1 cannot be a real scenecut. */
                 for (int i = cp1; i > p0; i--)