ref: 8b7fb36f399e45517df783e05b3f4285c727dedc
parent: 75f8b41bcd70c5075732a20352ebdc3bd90e2b36
author: Martin Storsjö <[email protected]>
date: Sat Feb 22 18:23:52 EST 2014
Set missed fields in ParamBaseTranscode Previously, these fields kept whatever value was set by FillDefault. The corresponding fields were set properly within sSpatialLayers, but the fields within the main struct were left with the default values. This doesn't change the hashes in the unit test, since these fields don't seem to be used in the produced bitstream at all.
--- a/codec/encoder/core/inc/param_svc.h
+++ b/codec/encoder/core/inc/param_svc.h
@@ -223,6 +223,8 @@
int32_t ParamBaseTranscode (const SEncParamBase& pCodingParam, const bool kbEnableRc = true) {
iInputCsp = pCodingParam.iInputCsp; // color space of input sequence
+ fMaxFrameRate = WELS_CLIP3 (pCodingParam.fMaxFrameRate, MIN_FRAME_RATE, MAX_FRAME_RATE);
+ iTargetBitrate = pCodingParam.iTargetBitrate;
iPicWidth = pCodingParam.iPicWidth;
iPicHeight = pCodingParam.iPicHeight;