diff options
author | Basilisk-Dev <basiliskdev@protonmail.com> | 2023-10-04 21:47:00 -0400 |
---|---|---|
committer | Basilisk-Dev <basiliskdev@protonmail.com> | 2023-10-04 22:11:28 -0400 |
commit | 2cb4813adb9cda016f87dab6d6776dd8e534c7f4 (patch) | |
tree | e0b90ed6cad86f37d1c71be4817206b16e208247 /media | |
parent | c5ba4dd2a4f3d2add53123c5d7d420b20b8b7bf3 (diff) | |
download | uxp-2cb4813adb9cda016f87dab6d6776dd8e534c7f4.tar.gz |
Issue #2332 - libvpx upgrade followup part 2
Port commit ca36e991ea55f2d9f78bab558fef10720c9244f0 to new libvpx version
Diffstat (limited to 'media')
-rw-r--r-- | media/libvpx/bug1480092.patch | 35 | ||||
-rw-r--r-- | media/libvpx/libvpx/vp8/common/postproc.c | 2 | ||||
-rwxr-xr-x | media/libvpx/update.py | 3 |
3 files changed, 38 insertions, 2 deletions
diff --git a/media/libvpx/bug1480092.patch b/media/libvpx/bug1480092.patch new file mode 100644 index 0000000000..a57539c3c2 --- /dev/null +++ b/media/libvpx/bug1480092.patch @@ -0,0 +1,35 @@ +From f00fe25d7eb13ceafbea6a6987d45fdef64cffb3 Mon Sep 17 00:00:00 2001 +From: Pale Moon <git-repo@palemoon.org> +Date: Tue, 11 Sep 2018 08:58:16 +0200 +Subject: [PATCH] Cherry-pick libvpx upstream + 52add5896661d186dec284ed646a4b33b607d2c7. + +--- + media/libvpx/libvpx/vp8/common/postproc.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/media/libvpx/libvpx/vp8/common/postproc.c b/media/libvpx/libvpx/vp8/common/postproc.c +index a4e6ae170..3b05bc63e 100644 +--- a/media/libvpx/libvpx/vp8/common/postproc.c ++++ b/media/libvpx/libvpx/vp8/common/postproc.c +@@ -325,17 +325,17 @@ void vp8_deblock(VP8_COMMON *cm, + YV12_BUFFER_CONFIG *post, + int q, + int low_var_thresh, + int flag) + { + double level = 6.0e-05 * q * q * q - .0067 * q * q + .306 * q + .0065; + int ppl = (int)(level + .5); + +- const MODE_INFO *mode_info_context = cm->show_frame_mi; ++ const MODE_INFO *mode_info_context = cm->mi; + int mbr, mbc; + + /* The pixel thresholds are adjusted according to if or not the macroblock + * is a skipped block. */ + unsigned char *ylimits = cm->pp_limits_buffer; + unsigned char *uvlimits = cm->pp_limits_buffer + 16 * cm->mb_cols; + (void) low_var_thresh; + (void) flag; +-- +2.16.1.windows.4 diff --git a/media/libvpx/libvpx/vp8/common/postproc.c b/media/libvpx/libvpx/vp8/common/postproc.c index d67ee8a57d..8c292d6161 100644 --- a/media/libvpx/libvpx/vp8/common/postproc.c +++ b/media/libvpx/libvpx/vp8/common/postproc.c @@ -65,7 +65,7 @@ void vp8_deblock(VP8_COMMON *cm, YV12_BUFFER_CONFIG *source, double level = 6.0e-05 * q * q * q - .0067 * q * q + .306 * q + .0065; int ppl = (int)(level + .5); - const MODE_INFO *mode_info_context = cm->show_frame_mi; + const MODE_INFO *mode_info_context = cm->mi; int mbr, mbc; /* The pixel thresholds are adjusted according to if or not the macroblock diff --git a/media/libvpx/update.py b/media/libvpx/update.py index 72c7197b30..18d7166382 100755 --- a/media/libvpx/update.py +++ b/media/libvpx/update.py @@ -44,7 +44,8 @@ def apply_patches(): # Cherry-pick upstream patch for avoiding --enable-experimental # from https://codereview.webrtc.org/2654633002 os.system("patch -p1 < vp9_svc.patch") - + # Cherrypick fix from upstream + os.system("patch -p3 < bug1480092.patch") def update_readme(commit): with open('README_MOZILLA') as f: |