fix: a/v streams incorrectly recognized as video-only

This commit is contained in:
ThetaDev 2025-01-22 00:54:37 +01:00
parent 9c73ed4b30
commit 2b891ca078
No known key found for this signature in database
GPG key ID: E319D3C5148D65B6
5 changed files with 40 additions and 27 deletions

View file

@ -148,6 +148,20 @@ mod tests {
use super::*;
#[test]
fn t_protobuilder() {
let mut pb = ProtoBuilder::new();
pb.varint(1, 128);
pb.varint(2, 1234567890);
pb.varint(3, 1234567890123456789);
pb.string(4, "Hello");
pb.bytes(5, &[1, 2, 3]);
assert_eq!(
pb.to_base64(),
"CIABENKF2MwEGJWCpu_HnoSRESIFSGVsbG8qAwECAw%3D%3D"
);
}
#[test]
fn t_parse_proto() {
let p = "GhhVQzl2cnZOU0wzeGNXR1NrVjg2UkVCU2c%3D";