summaryrefslogtreecommitdiff
path: root/gst-libs
diff options
context:
space:
mode:
authorSreerenj Balachandran <sreerenj.balachandran@intel.com>2015-08-12 07:58:09 +0300
committerSebastian Dröge <sebastian@centricular.com>2015-08-12 14:11:31 +0200
commit8a6cc4ed27dfc596c75b43ffe6eda36fcbd03781 (patch)
tree9ead6211f4224a335cc9f5495fee77a6b8d06aa5 /gst-libs
parentb6b2e045010d60033df61f74046337e70efbe907 (diff)
downloadgstreamer-plugins-bad-8a6cc4ed27dfc596c75b43ffe6eda36fcbd03781.tar.gz
codecparsers: h265: Fix the range of delta_chroma_log2_weight_denom
ChromaLog2WeightDenom = luma_log2_weight_denom + delta_chroma_log2_weight_denom The value of ChromaLog2WeightDenom should be in the range of 0 to 7 and the value luma_log2_weight_denom should be also in the range of 0 to 7. Which means , delta_chroma_log2_weight_denom can have values in the range between -7 and 7. https://bugzilla.gnome.org/show_bug.cgi?id=753552
Diffstat (limited to 'gst-libs')
-rw-r--r--gst-libs/gst/codecparsers/gsth265parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst-libs/gst/codecparsers/gsth265parser.c b/gst-libs/gst/codecparsers/gsth265parser.c
index 1b95fac62..51d8b9933 100644
--- a/gst-libs/gst/codecparsers/gsth265parser.c
+++ b/gst-libs/gst/codecparsers/gsth265parser.c
@@ -934,7 +934,7 @@ gst_h265_slice_parse_pred_weight_table (GstH265SliceHdr * slice, NalReader * nr)
}
if (sps->chroma_format_idc != 0)
- READ_SE_ALLOWED (nr, p->delta_chroma_log2_weight_denom, 0, 7);
+ READ_SE_ALLOWED (nr, p->delta_chroma_log2_weight_denom, -7, 7);
for (i = 0; i <= slice->num_ref_idx_l0_active_minus1; i++)
READ_UINT8 (nr, p->luma_weight_l0_flag[i], 1);