From e312e2b12123407ad348dc0c45e732974a50dafa Mon Sep 17 00:00:00 2001 From: Carl-Anton Ingmarsson Date: Wed, 23 Jun 2010 22:33:05 +0200 Subject: [PATCH] vdpauh264dec: use bitshifts instead of pow --- sys/vdpau/h264/gsth264parser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/vdpau/h264/gsth264parser.c b/sys/vdpau/h264/gsth264parser.c index b8e01a76a0..861bab2443 100644 --- a/sys/vdpau/h264/gsth264parser.c +++ b/sys/vdpau/h264/gsth264parser.c @@ -683,13 +683,13 @@ gst_h264_slice_parse_pred_weight_table (GstH264Slice * slice, READ_UE_ALLOWED (reader, p->luma_log2_weight_denom, 0, 7); /* set default values */ - memset (p->luma_weight_l0, pow (2, p->luma_log2_weight_denom), 32); + memset (p->luma_weight_l0, 1 << p->luma_log2_weight_denom, 32); memset (p->luma_offset_l0, 0, 32); if (seq->ChromaArrayType != 0) { READ_UE_ALLOWED (reader, p->chroma_log2_weight_denom, 0, 7); /* set default values */ - memset (p->chroma_weight_l0, pow (2, p->chroma_log2_weight_denom), 64); + memset (p->chroma_weight_l0, 1 << p->chroma_log2_weight_denom, 64); memset (p->chroma_offset_l0, 0, 64); } -- 2.34.1