Skip to content

fix: set general_profile_idc in bitstream when --profile is not speci…#386

Open
XinfengZhang wants to merge 1 commit intointel:masterfrom
XinfengZhang:fix/hevcencode-profile-idc
Open

fix: set general_profile_idc in bitstream when --profile is not speci…#386
XinfengZhang wants to merge 1 commit intointel:masterfrom
XinfengZhang:fix/hevcencode-profile-idc

Conversation

@XinfengZhang
Copy link
Copy Markdown
Contributor

…fied

When --profile is omitted, real_hevc_profile stays at its initial value of 0 even though hevc_profile is correctly auto-detected. This writes general_profile_idc=0 into VPS/SPS, producing a non-conformant HEVC bitstream that decoders reject with "Unknown HEVC profile: 0".

Set real_hevc_profile to match the auto-detected VA-API profile in the init_va() switch block so the bitstream always contains the correct profile indicator.

…fied

When --profile is omitted, real_hevc_profile stays at its initial value
of 0 even though hevc_profile is correctly auto-detected. This writes
general_profile_idc=0 into VPS/SPS, producing a non-conformant HEVC
bitstream that decoders reject with "Unknown HEVC profile: 0".

Set real_hevc_profile to match the auto-detected VA-API profile in the
init_va() switch block so the bitstream always contains the correct
profile indicator.

Signed-off-by: Carl.Zhang <carl.zhang@intel.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant