diff --git a/api/video_codecs/h264_profile_level_id.cc b/api/video_codecs/h264_profile_level_id.cc index 02b43ba4f2..5844ca0e32 100644 --- a/api/video_codecs/h264_profile_level_id.cc +++ b/api/video_codecs/h264_profile_level_id.cc @@ -238,7 +238,8 @@ absl::optional H264ProfileLevelIdToString( } char str[7]; - snprintf(str, 7u, "%s%02x", profile_idc_iop_string, profile_level_id.level); + snprintf(str, 7u, "%s%02x", profile_idc_iop_string, + static_cast(profile_level_id.level)); return {str}; }