Bug 1042791: H.264 profile-level-id's in SDP have no leading '0x', breaking interop r=ehugg

This commit is contained in:
Randell Jesup 2014-07-23 15:43:38 -04:00
parent fc443521cb
commit cf11de6562

View File

@ -1183,7 +1183,7 @@ gsmsdp_set_video_media_attributes (uint32_t media_type, void *cc_sdp_p, uint16_t
{
char buffer[32];
uint32_t profile_level_id = vcmGetVideoH264ProfileLevelID();
snprintf(buffer, sizeof(buffer), "0x%x", profile_level_id);
snprintf(buffer, sizeof(buffer), "%06x", profile_level_id);
(void) sdp_attr_set_fmtp_profile_level_id(sdp_p, level, 0, a_inst,
buffer);
}