Closed
Bug 1197125
Opened 10 years ago
Closed 10 years ago
WebMDemuxer will read the entire webm into memory if the file is local
Categories
(Core :: Audio/Video: Playback, defect, P1)
Core
Audio/Video: Playback
Tracking
()
RESOLVED
FIXED
mozilla43
Tracking | Status | |
---|---|---|
firefox41 | --- | unaffected |
firefox42 | --- | fixed |
firefox43 | --- | fixed |
People
(Reporter: jya, Assigned: jya)
References
Details
(Keywords: regression)
Attachments
(1 file)
1.33 KB,
patch
|
kinetik
:
review+
|
Details | Diff | Splinter Review |
Noticed this problem when reviewing why bug 1195073 was failing on linux.
WebMDemuxer::EnsureUpToDateIndex will call MediaResource::GetCachedRanges() retrieve the array of byte ranges and call WebMBufferedState::WebMBufferedState::UpdateIndex()
this will call MediaResource::MediaReadAt() and read the entire byte range.
However, for local files, the cache byte range is always the entire file.
As such, the entire file will first be read into memory, and then parsed.
So to play a local file, we will potentially allocate a very big array. This will also limit us to play 2GiB files only as a nsTArray can't hold more than 2GiB
Reads should be made using partial blocks, to ensure we allocate too much RAM at once.
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → jyavenard
Updated•10 years ago
|
Assignee | ||
Comment 1•10 years ago
|
||
Instead we parse it in chunks of 1MiB max.
Attachment #8653827 -
Flags: review?(kinetik)
Updated•10 years ago
|
Attachment #8653827 -
Flags: review?(kinetik) → review+
Comment 3•10 years ago
|
||
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla43
Comment 4•10 years ago
|
||
Comment 5•10 years ago
|
||
Backed out for a youtube playback regression. See Bug 1199573.
https://hg.mozilla.org/releases/mozilla-aurora/rev/5bb661db5c6c
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Updated•10 years ago
|
Status: REOPENED → RESOLVED
Closed: 10 years ago → 10 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 6•9 years ago
|
||
pushed it as part of
https://hg.mozilla.org/releases/mozilla-aurora/pushloghtml?changeset=7437f28133fc
You need to log in
before you can comment on or make changes to this bug.
Description
•