Closed
Bug 1313556
Opened 8 years ago
Closed 8 years ago
Implement Crypto() for mp4 rust parser
Categories
(Core :: Audio/Video: Playback, defect, P3)
Core
Audio/Video: Playback
Tracking
()
RESOLVED
FIXED
mozilla53
Tracking | Status | |
---|---|---|
firefox53 | --- | fixed |
People
(Reporter: ayang, Assigned: ayang)
References
Details
Attachments
(2 files)
No description provided.
Updated•8 years ago
|
Priority: -- → P3
Comment hidden (mozreview-request) |
Assignee | ||
Comment 2•8 years ago
|
||
Comment 3•8 years ago
|
||
mozreview-review |
Comment on attachment 8808546 [details]
Bug 1313556 - Implement Crypto() for mp4 rust parser.
https://reviewboard.mozilla.org/r/91362/#review91450
::: media/libstagefright/binding/MP4Metadata.cpp:348
(Diff revision 1)
> + if (mRustTestMode) {
> + MOZ_DIAGNOSTIC_ASSERT(rustCrypto.pssh == crypto.pssh);
> + }
> +#endif
> +
> + if (mPreferRust && rustCrypto.pssh == crypto.pssh) {
The Rust bits need to be protected by the MOZ_RUST_MP4PARSE define.
I wonder if we should always use rustCrypto if mPreferRust; i.e. remove the equality test here? We'll catch mismatches via the assert above.
::: media/libstagefright/binding/MP4Metadata.cpp:679
(Diff revision 1)
> + return;
> + }
> +
> + nsTArray<uint8_t> pssh;
> + pssh.AppendElements(info.data.data, info.data.length, fallible);
> + mCrypto.Update(pssh.Elements(), pssh.Length());
Can't we pass info.data.data and info.data.length into mCrypto.Update directly, avoiding the copy into the local pssh array?
::: media/libstagefright/binding/include/mp4_demuxer/DecoderData.h:46
(Diff revision 1)
> +
> + bool operator==(const PsshInfo& aOther) const {
> + if (uuid != aOther.uuid || data != aOther.data) {
> + return false;
> + }
> + return true;
This could just be
return uuid == aOther.uuid && data == aOther.data;
Attachment #8808546 -
Flags: review?(kinetik) → review+
Comment 4•8 years ago
|
||
mozreview-review-reply |
Comment on attachment 8808546 [details]
Bug 1313556 - Implement Crypto() for mp4 rust parser.
https://reviewboard.mozilla.org/r/91362/#review91450
r+ with a few minor changes required
Assignee | ||
Comment 5•8 years ago
|
||
(In reply to Matthew Gregan [:kinetik] from comment #4)
> Comment on attachment 8808546 [details]
> Bug 1313556 - Implement Crypto() for mp4 rust parser.
>
> https://reviewboard.mozilla.org/r/91362/#review91450
>
> r+ with a few minor changes required
Thanks for review!
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment 8•8 years ago
|
||
mozreview-review |
Comment on attachment 8809286 [details]
Bug 1313556 - update rust parser for pssh parsing.
https://reviewboard.mozilla.org/r/91868/#review92252
Attachment #8809286 -
Flags: review?(giles) → review+
Pushed by ayang@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/3ee624382460
Implement Crypto() for mp4 rust parser. r=kinetik
https://hg.mozilla.org/integration/autoland/rev/88e9a1a777f4
update rust parser for pssh parsing. r=rillian
Assignee | ||
Comment 10•8 years ago
|
||
We also need video extra_data and codec_specific_config to play video. I'll fix it in another bug.
Comment 11•8 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/3ee624382460
https://hg.mozilla.org/mozilla-central/rev/88e9a1a777f4
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox53:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla53
Assignee | ||
Updated•8 years ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•