Closed thutchmoto closed 3 years ago
This is easily reproducible:
fn main() {
let att = webrtc_sdp::attribute_type::SdpAttributeFmtpParameters {
packetization_mode: 1,
level_asymmetry_allowed: false,
profile_level_id: 0x42c015,
max_fs: 0,
max_cpb: 0,
max_dpb: 0,
max_br: 0,
max_mbps: 0,
max_fr: 0,
maxplaybackrate: 48000,
usedtx: false,
stereo: false,
useinbandfec: false,
cbr: false,
encodings: Vec::new(),
dtmf_tones: "".to_string(),
unknown_tokens: vec!["sprop-parameter-sets=Z0LAFYyNQKD5APCIRqA=,aM48gA==".to_string()],
};
println!("as_string: {}", att);
}
Output:
as_string: packetization-mode=1;profile-level-id=4374549sprop-parameter-sets=Z0LAFYyNQKD5APCIRqA=,aM48gA==
@thutchmoto Thanks for the bug report!
Given this source line:
If the sdp is parsed, and then written back out to a string, the previous line is emitted as:
Notice that the packetization-mode is not delimited from the sprop-parameters