mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-25 11:58:55 +00:00
Bug 1867424 - Update mp4parse to d262e4. r=media-playback-reviewers,chunmin
Differential Revision: https://phabricator.services.mozilla.com/D200141
This commit is contained in:
parent
b78f8abd66
commit
c417adb354
@ -80,9 +80,9 @@ git = "https://github.com/mozilla/midir.git"
|
||||
rev = "85156e360a37d851734118104619f86bd18e94c6"
|
||||
replace-with = "vendored-sources"
|
||||
|
||||
[source."git+https://github.com/mozilla/mp4parse-rust?rev=d262e40e7b80f949dcdb4db21caa6dbf1a8b2043"]
|
||||
[source."git+https://github.com/mozilla/mp4parse-rust?rev=a138e40ec1c603615873e524b5b22e11c0ec4820"]
|
||||
git = "https://github.com/mozilla/mp4parse-rust"
|
||||
rev = "d262e40e7b80f949dcdb4db21caa6dbf1a8b2043"
|
||||
rev = "a138e40ec1c603615873e524b5b22e11c0ec4820"
|
||||
replace-with = "vendored-sources"
|
||||
|
||||
[source."git+https://github.com/mozilla/neqo?tag=v0.6.8"]
|
||||
|
4
Cargo.lock
generated
4
Cargo.lock
generated
@ -3755,7 +3755,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "mp4parse"
|
||||
version = "0.17.0"
|
||||
source = "git+https://github.com/mozilla/mp4parse-rust?rev=d262e40e7b80f949dcdb4db21caa6dbf1a8b2043#d262e40e7b80f949dcdb4db21caa6dbf1a8b2043"
|
||||
source = "git+https://github.com/mozilla/mp4parse-rust?rev=a138e40ec1c603615873e524b5b22e11c0ec4820#a138e40ec1c603615873e524b5b22e11c0ec4820"
|
||||
dependencies = [
|
||||
"bitreader",
|
||||
"byteorder",
|
||||
@ -3772,7 +3772,7 @@ version = "0.1.0"
|
||||
[[package]]
|
||||
name = "mp4parse_capi"
|
||||
version = "0.17.0"
|
||||
source = "git+https://github.com/mozilla/mp4parse-rust?rev=d262e40e7b80f949dcdb4db21caa6dbf1a8b2043#d262e40e7b80f949dcdb4db21caa6dbf1a8b2043"
|
||||
source = "git+https://github.com/mozilla/mp4parse-rust?rev=a138e40ec1c603615873e524b5b22e11c0ec4820#a138e40ec1c603615873e524b5b22e11c0ec4820"
|
||||
dependencies = [
|
||||
"byteorder",
|
||||
"fallible_collections",
|
||||
|
File diff suppressed because one or more lines are too long
5
third_party/rust/mp4parse/src/lib.rs
vendored
5
third_party/rust/mp4parse/src/lib.rs
vendored
@ -4517,8 +4517,11 @@ fn read_mvhd<T: Read>(src: &mut BMFFBox<T>) -> Result<MovieHeaderBox> {
|
||||
}
|
||||
_ => unreachable!("Should have returned Status::MvhdBadVersion"),
|
||||
};
|
||||
// Skip remaining fields.
|
||||
// Skip remaining valid fields.
|
||||
skip(src, 80)?;
|
||||
|
||||
// Padding could be added in some contents.
|
||||
skip_box_remain(src)?;
|
||||
Ok(MovieHeaderBox {
|
||||
timescale,
|
||||
duration,
|
||||
|
19
third_party/rust/mp4parse/src/tests.rs
vendored
19
third_party/rust/mp4parse/src/tests.rs
vendored
@ -423,6 +423,25 @@ fn read_mvhd_unknown_duration() {
|
||||
assert_eq!(parsed.duration, ::std::u64::MAX);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn read_mvhd_v0_trailing_data() {
|
||||
let mut stream = make_fullbox(BoxSize::Short(110), b"mvhd", 0, |s| {
|
||||
s.B32(0)
|
||||
.B32(0)
|
||||
.B32(1234)
|
||||
.B32(5678)
|
||||
.append_repeated(0, 80)
|
||||
.B16(0)
|
||||
});
|
||||
let mut iter = super::BoxIter::new(&mut stream);
|
||||
let mut stream = iter.next_box().unwrap().unwrap();
|
||||
assert_eq!(stream.head.name, BoxType::MovieHeaderBox);
|
||||
assert_eq!(stream.head.size, 110);
|
||||
let parsed = super::read_mvhd(&mut stream).unwrap();
|
||||
assert_eq!(parsed.timescale, 1234);
|
||||
assert_eq!(parsed.duration, 5678);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn read_vpcc_version_0() {
|
||||
let data_length = 12u16;
|
||||
|
@ -12,7 +12,7 @@ mozglue-static = { path = "../../../../mozglue/static/rust" }
|
||||
geckoservo = { path = "../../../../servo/ports/geckolib" }
|
||||
kvstore = { path = "../../../components/kvstore" }
|
||||
lmdb-rkv-sys = { version = "0.11", features = ["mdb_idl_logn_9"] }
|
||||
mp4parse_capi = { git = "https://github.com/mozilla/mp4parse-rust", rev = "d262e40e7b80f949dcdb4db21caa6dbf1a8b2043", features = ["missing-pixi-permitted"] }
|
||||
mp4parse_capi = { git = "https://github.com/mozilla/mp4parse-rust", rev = "a138e40ec1c603615873e524b5b22e11c0ec4820", features = ["missing-pixi-permitted"] }
|
||||
nserror = { path = "../../../../xpcom/rust/nserror" }
|
||||
nsstring = { path = "../../../../xpcom/rust/nsstring" }
|
||||
netwerk_helper = { path = "../../../../netwerk/base/rust-helper" }
|
||||
|
Loading…
x
Reference in New Issue
Block a user