From 87877e0ed4144c91459e007c23ca2b18ed84531b Mon Sep 17 00:00:00 2001
From: Andrea Gabriellini <andrea.gabriellini@bbc.co.uk>
Date: Thu, 29 Mar 2012 11:16:25 +0100
Subject: [PATCH] Fixed missing lambda modifier init
Only lambda modifiers for layers 0 to 3 were defined;
lower layers were not initialised and could not be set
from command line or config file.
---
source/App/TAppEncoder/TAppEncCfg.cpp | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/source/App/TAppEncoder/TAppEncCfg.cpp b/source/App/TAppEncoder/TAppEncCfg.cpp
index 12c8bab..875e0ac 100644
a
|
b
|
Bool TAppEncCfg::parseCfg( Int argc, Char* argv[] ) |
151 | 151 | ("LambdaModifier1,-LM1", m_adLambdaModifier[ 1 ], ( double )1.0, "Lambda modifier for temporal layer 1") |
152 | 152 | ("LambdaModifier2,-LM2", m_adLambdaModifier[ 2 ], ( double )1.0, "Lambda modifier for temporal layer 2") |
153 | 153 | ("LambdaModifier3,-LM3", m_adLambdaModifier[ 3 ], ( double )1.0, "Lambda modifier for temporal layer 3") |
| 154 | ("LambdaModifier4,-LM4", m_adLambdaModifier[ 4 ], ( double )1.0, "Lambda modifier for temporal layer 4") |
| 155 | ("LambdaModifier5,-LM5", m_adLambdaModifier[ 5 ], ( double )1.0, "Lambda modifier for temporal layer 5") |
| 156 | ("LambdaModifier6,-LM6", m_adLambdaModifier[ 6 ], ( double )1.0, "Lambda modifier for temporal layer 6") |
| 157 | ("LambdaModifier7,-LM7", m_adLambdaModifier[ 7 ], ( double )1.0, "Lambda modifier for temporal layer 7") |
154 | 158 | ("SourceWidth,-wdt", m_iSourceWidth, 0, "Source picture width") |
155 | 159 | ("SourceHeight,-hgt", m_iSourceHeight, 0, "Source picture height") |
156 | 160 | ("InputBitDepth", m_uiInputBitDepth, 8u, "bit-depth of input file") |