Closed
Bug 1377015
Opened 7 years ago
Closed 7 years ago
Implement MediaCodecs::ContainsPrefix
Categories
(Core :: Audio/Video: Playback, enhancement)
Core
Audio/Video: Playback
Tracking
()
RESOLVED
FIXED
mozilla56
Tracking | Status | |
---|---|---|
firefox56 | --- | fixed |
People
(Reporter: rillian, Assigned: mozbugz)
References
Details
Attachments
(1 file)
Many video codecs use a suffix to specify level, profile and optional features, like avc1.42E001 or vp09.00.41.08. To facilitate codec identification it would be nice to have some kind of prefix-matching version of the Contains() method.
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → gsquelart
Comment hidden (mozreview-request) |
Reporter | ||
Comment 2•7 years ago
|
||
mozreview-review |
Comment on attachment 8882249 [details] Bug 1377015 - MediaCodecs::ContainsPrefix implementation and tests - https://reviewboard.mozilla.org/r/153336/#review158558 ::: commit-message-f3483:2 (Diff revision 1) > +Bug 1377015 - MediaCodecs::ContainsPrefix implementation and tests - r?rillian > + In the spirit of better commit messages, please offer some motivation in the body of the patch. Why did we want to make this change? ::: dom/media/gtest/TestMediaMIMETypes.cpp:252 (Diff revision 1) > EXPECT_TRUE(type->Codecs().Contains(NS_LITERAL_STRING("a"))); > EXPECT_TRUE(type->Codecs().Contains(NS_LITERAL_STRING("b"))); > + EXPECT_TRUE(type->Codecs().ContainsPrefix(NS_LITERAL_STRING("a"))); > + EXPECT_TRUE(type->Codecs().ContainsPrefix(NS_LITERAL_STRING("b"))); > + EXPECT_FALSE(type->Codecs().ContainsPrefix(NS_LITERAL_STRING("ab"))); > + EXPECT_FALSE(type->Codecs().ContainsPrefix(NS_LITERAL_STRING("ba"))); `EXPECT_FALSE(type->Codecs().ContainsPrefix(NS_LITERAL_STRING("a,b")));` maybe?
Attachment #8882249 -
Flags: review?(giles) → review+
Comment hidden (mozreview-request) |
Pushed by gsquelart@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f4ecac52eceb MediaCodecs::ContainsPrefix implementation and tests - r=rillian
Comment 5•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/f4ecac52eceb
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox56:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla56
You need to log in
before you can comment on or make changes to this bug.
Description
•