mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-08 16:27:31 +09:00
import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo
This commit is contained in:
commit
dcd9973243
150858 changed files with 23884658 additions and 0 deletions
31
media/libvpx/clamp-abs-QIndex.patch
Normal file
31
media/libvpx/clamp-abs-QIndex.patch
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
# HG changeset patch
|
||||
# User Gerald Squelart <gsquelart@mozilla.com>
|
||||
# Parent a2eeff55028dc78e98a16e1d8840d77378f37408
|
||||
Bug 1224361 - Clamp QIndex also in abs-value mode - r=rillian
|
||||
|
||||
diff --git a/media/libvpx/vp8/decoder/decodeframe.c b/media/libvpx/vp8/decoder/decodeframe.c
|
||||
--- a/media/libvpx/vp8/decoder/decodeframe.c
|
||||
+++ b/media/libvpx/vp8/decoder/decodeframe.c
|
||||
@@ -66,20 +66,19 @@ void vp8_mb_init_dequantizer(VP8D_COMP *
|
||||
if (xd->segmentation_enabled)
|
||||
{
|
||||
/* Abs Value */
|
||||
if (xd->mb_segement_abs_delta == SEGMENT_ABSDATA)
|
||||
QIndex = xd->segment_feature_data[MB_LVL_ALT_Q][mbmi->segment_id];
|
||||
|
||||
/* Delta Value */
|
||||
else
|
||||
- {
|
||||
QIndex = pc->base_qindex + xd->segment_feature_data[MB_LVL_ALT_Q][mbmi->segment_id];
|
||||
- QIndex = (QIndex >= 0) ? ((QIndex <= MAXQ) ? QIndex : MAXQ) : 0; /* Clamp to valid range */
|
||||
- }
|
||||
+
|
||||
+ QIndex = (QIndex >= 0) ? ((QIndex <= MAXQ) ? QIndex : MAXQ) : 0; /* Clamp to valid range */
|
||||
}
|
||||
else
|
||||
QIndex = pc->base_qindex;
|
||||
|
||||
/* Set up the macroblock dequant constants */
|
||||
xd->dequant_y1_dc[0] = 1;
|
||||
xd->dequant_y1[0] = pc->Y1dequant[QIndex][0];
|
||||
xd->dequant_y2[0] = pc->Y2dequant[QIndex][0];
|
||||
Loading…
Add table
Add a link
Reference in a new issue