Skip to content

Fix the cast for the BITSTREAM_PROFILE profile var#5113

Merged
urvangjoshi merged 1 commit into
AOMediaCodec:mainfrom
wantehchang:correct-cast-for-profile
Jul 15, 2026
Merged

Fix the cast for the BITSTREAM_PROFILE profile var#5113
urvangjoshi merged 1 commit into
AOMediaCodec:mainfrom
wantehchang:correct-cast-for-profile

Conversation

@wantehchang

Copy link
Copy Markdown
Member

In the av2_check_profile_interop_conformance() function, the local variable profile is of the BITSTREAM_PROFILE type, so it is redundant to cast profile to BITSTREAM_PROFILE. I suspect the intended cast is int, to match the %d printf format specifier.

Alternatively, we can simply remove the BITSTREAM_PROFILE casts.

In the av2_check_profile_interop_conformance() function, the local
variable `profile` is of the BITSTREAM_PROFILE type, so it is redundant
to cast `profile` to BITSTREAM_PROFILE. I suspect the intended cast is
`int`, to match the %d printf format specifier.

Alternatively, we can simply remove the BITSTREAM_PROFILE casts.
Comment thread av2/common/annexA.c
@urvangjoshi
urvangjoshi merged commit e15ae00 into AOMediaCodec:main Jul 15, 2026
109 checks passed
@wantehchang
wantehchang deleted the correct-cast-for-profile branch July 15, 2026 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants