fix: copy bSubcodecMode in ParamTranscode so encoder context sees the flag

Without this, SWelsSvcCodingParam::ParamTranscode was not copying
bSubcodecMode from SEncParamExt, so the encoder's internal pSvcParam
always had bSubcodecMode=false regardless of what the caller set.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Isaac 2026-04-07 08:49:45 +02:00
parent d239564d84
commit 28608194a9

View file

@ -345,6 +345,7 @@ typedef struct TagWelsSvcCodingParam: SEncParamExt {
bIsLosslessLink = pCodingParam.bIsLosslessLink;
bFixRCOverShoot = pCodingParam.bFixRCOverShoot;
iIdrBitrateRatio = pCodingParam.iIdrBitrateRatio;
bSubcodecMode = pCodingParam.bSubcodecMode;
if (iUsageType == SCREEN_CONTENT_REAL_TIME && !bIsLosslessLink && bEnableLongTermReference) {
bEnableLongTermReference = false;
}