Closed
Bug 1219047
Opened 9 years ago
Closed 9 years ago
Call rust mp4parser from MP4Metadata
Categories
(Core :: Audio/Video: Playback, defect)
Core
Audio/Video: Playback
Tracking
()
RESOLVED
FIXED
mozilla45
People
(Reporter: rillian, Assigned: rillian)
References
Details
Attachments
(1 file, 2 obsolete files)
2.61 KB,
patch
|
rillian
:
review+
|
Details | Diff | Splinter Review |
Anthony tells me sooner is better than later, so we should land my hacked-up buffer-copy patch calling the rust parser on init segments as soon as it's safe.
Assignee | ||
Comment 1•9 years ago
|
||
Here's my WIP hack. Needs conditionals, and seems to crash on quit.
Anthony, you can apply this and compile with `ac_add_options --enable-rust` in your mozconfig. Then:
./mach run bruce_vs_ironman_frag.mp4
[...]
rust parser found 2 tracks
Flags: needinfo?(ajones)
Comment 2•9 years ago
|
||
Pushed a version with MOZ_RUST conditionals (needs bug 1219530) to try: https://treeherder.mozilla.org/#/jobs?repo=try&revision=9fb0897f1f98
I don't see the shutdown crash on Linux x64 debug with rustc 1.3.0... it'd be good to track that down.
Assignee | ||
Comment 3•9 years ago
|
||
The crash happened when I killed firefox (ctrl-C on the terminal) while a video was playing. Doesn't seem to happen if I quit from the gui.
Assignee | ||
Comment 4•9 years ago
|
||
Let's get something landed.
Attachment #8679721 -
Attachment is obsolete: true
Attachment #8682104 -
Flags: review?(kinetik)
Comment 5•9 years ago
|
||
Comment on attachment 8682104 [details] [diff] [review]
Call rust mp4 parser v2
Review of attachment 8682104 [details] [diff] [review]:
-----------------------------------------------------------------
r+ with assert converted to an error return.
::: media/libstagefright/binding/MP4Metadata.cpp
@@ +118,5 @@
> + fprintf(stderr, "Couldn't get source length\n");
> + return false;
> + }
> + fprintf(stderr, "Source length %d bytes\n", (long long int)length);
> + MOZ_ASSERT(length > 0);
My earlier try run showed this failing; Length() can return -1 for unknown stream lengths I guess.
Attachment #8682104 -
Flags: review?(kinetik) → review+
Assignee | ||
Comment 6•9 years ago
|
||
Convert assert to error return per review comment. Carrying forward r=kinetik.
Attachment #8682104 -
Attachment is obsolete: true
Attachment #8682169 -
Flags: review+
Assignee | ||
Comment 8•9 years ago
|
||
This patch will be functional once bug 1219530 lands. Until then you need to #define MOZ_RUST_MP4PARSE in media/libstagefright/binding/MP4Metadata.cpp.
Flags: needinfo?(ajones)
Comment 9•9 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox45:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla45
Comment 10•9 years ago
|
||
bugherder uplift |
status-b2g-v2.5:
--- → fixed
Comment 11•9 years ago
|
||
removing the b2g 2.5 flag since this commit has been reverted due to an incorrect merge, sorry for the confusion
status-b2g-v2.5:
fixed → ---
You need to log in
before you can comment on or make changes to this bug.
Description
•