fix: a/v streams incorrectly recognized as video-only
This commit is contained in:
parent
9c73ed4b30
commit
2b891ca078
5 changed files with 40 additions and 27 deletions
|
|
@ -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";
|
||||
|
|
|
|||
Reference in a new issue