changeset 4568:92d13feba8fe

Lookahead: wavefront bugfix. conditionally assign estimated cost to avoid overwriting intra cost.
author Deepthi Devaki <deepthidevaki@multicorewareinc.com>
date Mon, 21 Oct 2013 16:21:19 +0530
parents 3fe9a9d0a0b6
children c4cc469e5286
files source/encoder/slicetype.cpp
diffstat 1 files changed, 2 insertions(+-), 2 deletions(-) [+]
line wrap: on
line diff
--- a/source/encoder/slicetype.cpp	Mon Oct 21 22:12:39 2013 +0530
+++ b/source/encoder/slicetype.cpp	Mon Oct 21 16:21:19 2013 +0530
@@ -240,8 +240,8 @@ int Lookahead::estimateFrameCost(int p0,
 
         if (b != p1)
             score = (uint64_t)score * 100 / (130 + cfg->param.bFrameBias);
-
-        fenc->costEst[b - p0][p1 - b] = score;
+        if (b != p0 || b != p1) //Not Intra cost
+            fenc->costEst[b - p0][p1 - b] = score;
     }
 
     if (bIntraPenalty)