summaryrefslogtreecommitdiff
path: root/mozilla-1665324.patch
diff options
context:
space:
mode:
authorMartin Stransky <stransky@redhat.com>2020-09-17 08:05:13 +0200
committerMartin Stransky <stransky@redhat.com>2020-09-17 08:05:13 +0200
commitac3e0593c47ceb6eda414ee33f605363125ab0a0 (patch)
treee26c976340e3334586fa02d30abeaacef43d6101 /mozilla-1665324.patch
parentAdded MACH_USE_SYSTEM_PYTHON=1 (diff)
downloadlibrewolf-fedora-ff-ac3e0593c47ceb6eda414ee33f605363125ab0a0.tar.gz
librewolf-fedora-ff-ac3e0593c47ceb6eda414ee33f605363125ab0a0.tar.bz2
librewolf-fedora-ff-ac3e0593c47ceb6eda414ee33f605363125ab0a0.zip
Added upstream patches mzbz#1665324 mozbz#1665329
Diffstat (limited to 'mozilla-1665324.patch')
-rw-r--r--mozilla-1665324.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/mozilla-1665324.patch b/mozilla-1665324.patch
new file mode 100644
index 0000000..9fdffdb
--- /dev/null
+++ b/mozilla-1665324.patch
@@ -0,0 +1,36 @@
+diff --git a/dom/media/platforms/ffmpeg/FFmpegDecoderModule.h b/dom/media/platforms/ffmpeg/FFmpegDecoderModule.h
+--- a/dom/media/platforms/ffmpeg/FFmpegDecoderModule.h
++++ b/dom/media/platforms/ffmpeg/FFmpegDecoderModule.h
+@@ -38,14 +38,6 @@
+ if (aParams.VideoConfig().HasAlpha()) {
+ return nullptr;
+ }
+- if (VPXDecoder::IsVPX(aParams.mConfig.mMimeType) &&
+- aParams.mOptions.contains(CreateDecoderParams::Option::LowLatency) &&
+- !StaticPrefs::media_ffmpeg_low_latency_enabled()) {
+- // We refuse to create a decoder with low latency enabled if it's VP8 or
+- // VP9 unless specifically allowed: this will fallback to libvpx later.
+- // We do allow it for h264.
+- return nullptr;
+- }
+ RefPtr<MediaDataDecoder> decoder = new FFmpegVideoDecoder<V>(
+ mLib, aParams.VideoConfig(), aParams.mKnowsCompositor,
+ aParams.mImageContainer,
+diff --git a/modules/libpref/init/StaticPrefList.yaml b/modules/libpref/init/StaticPrefList.yaml
+--- a/modules/libpref/init/StaticPrefList.yaml
++++ b/modules/libpref/init/StaticPrefList.yaml
+@@ -7109,13 +7109,6 @@
+ mirror: always
+ #endif
+
+-#if defined(MOZ_FFMPEG) || defined(MOZ_FFVPX)
+-- name: media.ffmpeg.low-latency.enabled
+- type: RelaxedAtomicBool
+- value: false
+- mirror: always
+-#endif
+-
+ #ifdef MOZ_WMF
+
+ - name: media.wmf.enabled
+
bgstack15