Closed
Bug 1211335
Opened 9 years ago
Closed 9 years ago
PlatformDecoderModule::SupportsMimeType should accurately determine if the underlying decoder is usable.
Categories
(Core :: Audio/Video: Playback, defect, P2)
Core
Audio/Video: Playback
Tracking
()
RESOLVED
FIXED
mozilla44
People
(Reporter: jya, Assigned: jya)
References
Details
Attachments
(1 file, 1 obsolete file)
(deleted),
patch
|
cpearce
:
review+
lizzard
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
All of the current PlatformDecoderModule::SupportsMimeType implementations only check for support by performing a lookup on the mimetype as a strink and always assume that the underlying decoder is usable and is working.
This is an invalid assumption ; especially with the WMF and FFMpeg decoder that may not have the required library installed (like no media framework installed in Windows N) or FFmpeg not compiled with some particular codec support (like if ffmpeg was compiled with --disable-nonfree).
We've put in place some work around in the MP4Decoder and MP3Decoder by attempting to create a platform decoder module and then creating a decoder and checking if that resulted in an error.
Ultimately, SupportsMimeType should only report true if the PlatformDecoderModule may actually decode them, if it knows that it can't with certainty then it should return false.
Assignee | ||
Updated•9 years ago
|
Assignee | ||
Comment 1•9 years ago
|
||
Attachment #8669537 -
Flags: review?(cpearce)
Comment 2•9 years ago
|
||
Comment on attachment 8669537 [details] [diff] [review]
Have FFMpegDecoderModule properly return if a codec is supported.
Review of attachment 8669537 [details] [diff] [review]:
-----------------------------------------------------------------
::: dom/media/platforms/ffmpeg/FFmpegDataDecoder.cpp
@@ +244,5 @@
> + sFFmpegInitDone = true;
> + }
> + return avcodec_find_decoder(aCodec);
> +}
> +
Trailing space.
Attachment #8669537 -
Flags: review?(cpearce) → review+
Updated•9 years ago
|
Priority: -- → P2
Comment 5•9 years ago
|
||
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla44
Assignee | ||
Comment 6•9 years ago
|
||
Patch for aurora
Assignee | ||
Comment 7•9 years ago
|
||
Comment on attachment 8673996 [details] [diff] [review]
Have FFMpegDecoderModule properly return if a codec is supported.
Approval Request Comment
[Feature/regressing bug #]: Making FFmpeg more robust
[User impact if declined]: Should FFmpeg be compiled without some particular codec, we would error
[Describe test coverage new/current, TreeHerder]: in central for a few weeks
[Risks and why]: Low, just adding extra checks
[String/UUID change made/needed]: None
Attachment #8673996 -
Flags: approval-mozilla-aurora?
Assignee | ||
Comment 8•9 years ago
|
||
Comment on attachment 8673996 [details] [diff] [review]
Have FFMpegDecoderModule properly return if a codec is supported.
we actually don't need a rebase ; forgot a patch in between
Attachment #8673996 -
Attachment is obsolete: true
Attachment #8673996 -
Flags: approval-mozilla-aurora?
Assignee | ||
Comment 9•9 years ago
|
||
Comment on attachment 8669537 [details] [diff] [review]
Have FFMpegDecoderModule properly return if a codec is supported.
Approval Request Comment
[Feature/regressing bug #]: Making FFmpeg more robust
[User impact if declined]: Should FFmpeg be compiled without some particular codec, we would error
[Describe test coverage new/current, TreeHerder]: in central for a few weeks
[Risks and why]: Low, just adding extra checks
[String/UUID change made/needed]: None
Attachment #8669537 -
Flags: approval-mozilla-aurora?
Comment on attachment 8669537 [details] [diff] [review]
Have FFMpegDecoderModule properly return if a codec is supported.
Adds error checking for ffmpeg support. OK to uplift to aurora.
Attachment #8669537 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
status-firefox43:
--- → affected
Comment 11•9 years ago
|
||
You need to log in
before you can comment on or make changes to this bug.
Description
•