ref: 6ec60e6aee65cdc6ecaf81bdc159cf3dd0711836
parent: e3bf5ced5381f8a1002c4266da74c57cb07c3114
parent: b55294445391d816e89c9c8c4571635ad1d5f2a7
author: volvet <[email protected]>
date: Mon Mar 3 09:13:30 EST 2014
Merge pull request #385 from ruil2/encoder_update fix sizeof() bug
--- a/codec/encoder/plus/src/welsEncoderExt.cpp
+++ b/codec/encoder/plus/src/welsEncoderExt.cpp
@@ -758,7 +758,7 @@
int32_t iTargetWidth = 0;
int32_t iTargetHeight = 0;
- memcpy (&sEncodingParam, pOption, sizeof (SEncParamBase)); // confirmed_safe_unsafe_usage
+ memcpy (&sEncodingParam, pOption, sizeof (SEncParamExt)); // confirmed_safe_unsafe_usage
WelsLog (m_pEncContext, WELS_LOG_INFO, "ENCODER_OPTION_SVC_ENCODE_PARAM_EXT, sEncodingParam.iInputCsp= 0x%x\n",
sEncodingParam.iInputCsp);
WelsLog (m_pEncContext, WELS_LOG_INFO,