From 54f8f6226590d6eb675e06a569951a523ac34a4a Mon Sep 17 00:00:00 2001 From: Wan-Teh Chang Date: Tue, 14 Jul 2026 16:06:44 -0700 Subject: [PATCH] Fix the cast for the BITSTREAM_PROFILE profile var 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. --- av2/common/annexA.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/av2/common/annexA.c b/av2/common/annexA.c index f03a44d5dc..c358df374c 100644 --- a/av2/common/annexA.c +++ b/av2/common/annexA.c @@ -218,7 +218,7 @@ int av2_check_profile_interop_conformance( is_decoder ? AVM_CODEC_UNSUP_BITSTREAM : AVM_CODEC_INVALID_PARAM, "Profile %d only supports YUV 4:0:0 and YUV 4:2:0 color formats, " "but color format YUV %s was provided.", - (BITSTREAM_PROFILE)profile, is_422 ? "4:2:2" : "4:4:4"); + (int)profile, is_422 ? "4:2:2" : "4:4:4"); } break; case MAIN_422_10_IP1: @@ -232,7 +232,7 @@ int av2_check_profile_interop_conformance( is_decoder ? AVM_CODEC_UNSUP_BITSTREAM : AVM_CODEC_INVALID_PARAM, "Profile %d only supports YUV 4:0:0, YUV 4:2:0 and YUV 4:2:2 color " "formats, but color format YUV 4:4:4 was provided.", - (BITSTREAM_PROFILE)profile); + (int)profile); } break; case MAIN_444_10_IP1: @@ -246,7 +246,7 @@ int av2_check_profile_interop_conformance( is_decoder ? AVM_CODEC_UNSUP_BITSTREAM : AVM_CODEC_INVALID_PARAM, "Profile %d only supports YUV 4:0:0, YUV 4:2:0 and YUV 4:4:4 color " "formats, but color format YUV 4:2:2 was provided.", - (BITSTREAM_PROFILE)profile); + (int)profile); } break; case CONFIGURABLE: {