Skip to content

Commit 2860819

Browse files
Isaacclaude
andcommitted
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>
1 parent d239564 commit 2860819

File tree

1 file changed

+1
-0
lines changed
  • third-party/openh264/third_party/openh264/src/codec/encoder/core/inc

1 file changed

+1
-0
lines changed

third-party/openh264/third_party/openh264/src/codec/encoder/core/inc/param_svc.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,7 @@ typedef struct TagWelsSvcCodingParam: SEncParamExt {
345345
bIsLosslessLink = pCodingParam.bIsLosslessLink;
346346
bFixRCOverShoot = pCodingParam.bFixRCOverShoot;
347347
iIdrBitrateRatio = pCodingParam.iIdrBitrateRatio;
348+
bSubcodecMode = pCodingParam.bSubcodecMode;
348349
if (iUsageType == SCREEN_CONTENT_REAL_TIME && !bIsLosslessLink && bEnableLongTermReference) {
349350
bEnableLongTermReference = false;
350351
}

0 commit comments

Comments
 (0)