Closed
Bug 1022468
Opened 10 years ago
Closed 10 years ago
Infinite loop reading small-shot.m4a in MP4Reader
Categories
(Core :: Audio/Video, defect)
Tracking
()
RESOLVED
FIXED
mozilla33
People
(Reporter: cpearce, Assigned: cpearce)
Details
Attachments
(1 file)
1.17 KB,
patch
|
ajones
:
review+
|
Details | Diff | Splinter Review |
If you load small-shot.m4a from a local file on Windows in the MP4Reader, you get stuck in a loop. The problem is that MP4Stream::ReadAt() isn't detecting end of stream correctly. When we reach EOS, MediaResource::ReatAt() report 0 bytes read and returns success. But when that happens we're not getting out of the loop in MP4Stream::ReadAt(), as that only exits if MediaResource::ReatAt() returns failure or if we read the requested number of bytes.
Assignee | ||
Comment 1•10 years ago
|
||
Fix: Exit loop on EOS.
Attachment #8436649 -
Flags: review?(ajones)
Updated•10 years ago
|
Attachment #8436649 -
Flags: review?(ajones) → review+
Comment 2•10 years ago
|
||
If this is a difference between the way a local file works compared to a network connection then this should probably be fixed closer to the root of the problem.
Assignee | ||
Comment 3•10 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/1c338d5c07d8
Comment 4•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/1c338d5c07d8
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla33
You need to log in
before you can comment on or make changes to this bug.
Description
•