Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1126)

Unified Diff: media/filters/stream_parser_factory.cc

Issue 866573004: media: Enable Opus support in Clank <video> and MSE (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit fixes Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: media/filters/stream_parser_factory.cc
diff --git a/media/filters/stream_parser_factory.cc b/media/filters/stream_parser_factory.cc
index fd8e92bff0bb56785bcc08ec58e879ddad9d8985..23218bc1959e2cfd3a229a8ad36a975dc48553e1 100644
--- a/media/filters/stream_parser_factory.cc
+++ b/media/filters/stream_parser_factory.cc
@@ -284,6 +284,11 @@ static bool VerifyCodec(
base::android::BuildInfo::GetInstance()->sdk_int() < 19) {
return false;
}
+ // Opus is only supported on Lollipop+ (API Level 21).
+ if (codec_info->tag == CodecInfo::HISTOGRAM_OPUS &&
+ base::android::BuildInfo::GetInstance()->sdk_int() < 21) {
+ return false;
+ }
#endif
if (video_codecs)
video_codecs->push_back(codec_info->tag);

Powered by Google App Engine
This is Rietveld 408576698