|
@@ -28,7 +28,7 @@ diff --git a/dom/media/platforms/agnostic/AgnosticDecoderModule.cpp b/dom/media/
|
|
const nsACString& aMimeType, DecoderDoctorDiagnostics* aDiagnostics) const {
|
|
const nsACString& aMimeType, DecoderDoctorDiagnostics* aDiagnostics) const {
|
|
bool supports = VPXDecoder::IsVPX(aMimeType) ||
|
|
bool supports = VPXDecoder::IsVPX(aMimeType) ||
|
|
OpusDataDecoder::IsOpus(aMimeType) ||
|
|
OpusDataDecoder::IsOpus(aMimeType) ||
|
|
-@@ -42,17 +43,20 @@ already_AddRefed<MediaDataDecoder> Agnos
|
|
|
|
|
|
+@@ -42,17 +43,21 @@ already_AddRefed<MediaDataDecoder> Agnos
|
|
RefPtr<MediaDataDecoder> m;
|
|
RefPtr<MediaDataDecoder> m;
|
|
|
|
|
|
if (VPXDecoder::IsVPX(aParams.mConfig.mMimeType)) {
|
|
if (VPXDecoder::IsVPX(aParams.mConfig.mMimeType)) {
|
|
@@ -38,10 +38,11 @@ diff --git a/dom/media/platforms/agnostic/AgnosticDecoderModule.cpp b/dom/media/
|
|
else if (AOMDecoder::IsAV1(aParams.mConfig.mMimeType) &&
|
|
else if (AOMDecoder::IsAV1(aParams.mConfig.mMimeType) &&
|
|
MediaPrefs::AV1Enabled()) {
|
|
MediaPrefs::AV1Enabled()) {
|
|
- m = new AOMDecoder(aParams);
|
|
- m = new AOMDecoder(aParams);
|
|
-+ if (MediaPrefs::UseDav1d()) {
|
|
|
|
-+ m = new Dav1dDecoder(aParams);
|
|
|
|
-+ } else{
|
|
|
|
|
|
++ if (Preferences::GetBool("media.av1.use-dav1d" ,true)) {
|
|
|
|
++ m = new DAV1DDecoder(aParams);
|
|
|
|
++ } else {
|
|
+ m = new AOMDecoder(aParams);
|
|
+ m = new AOMDecoder(aParams);
|
|
|
|
++ }
|
|
}
|
|
}
|
|
#endif
|
|
#endif
|
|
else if (TheoraDecoder::IsTheora(aParams.mConfig.mMimeType)) {
|
|
else if (TheoraDecoder::IsTheora(aParams.mConfig.mMimeType)) {
|