changeset 12670:f59fe18156b0 draft

Fix cost estimation error for hist-based scenecut
author Pooja Venkatesan <pooja@multicorewareinc.com>
date Thu, 09 Jul 2020 18:04:29 +0530
parents 27fa47eeed76
children 9b6189f94793
files source/encoder/slicetype.cpp
diffstat 1 files changed, 1 insertions(+-), 1 deletions(-) [+]
line wrap: on
line diff
--- a/source/encoder/slicetype.cpp	Mon Jul 06 19:16:18 2020 +0530
+++ b/source/encoder/slicetype.cpp	Thu Jul 09 18:04:29 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--)