diff options
author | Carl-Anton Ingmarsson <ca.ingmarsson@gmail.com> | 2010-07-14 11:17:49 +0200 |
---|---|---|
committer | Carl-Anton Ingmarsson <ca.ingmarsson@gmail.com> | 2010-07-14 11:19:49 +0200 |
commit | c27468f1a1fa1f3a4f4221afac6de4bfe22d8496 (patch) | |
tree | 30e5169e7bf6832aaa448f8967726f7fe347443e /sys/vdpau | |
parent | 8d5755a5e2b1f5d4b26fca08093f5625dceccc47 (diff) |
vdpauh264dec: use g_bit_storage instead of log2
log2 caused compile issues on certain platforms
Diffstat (limited to 'sys/vdpau')
-rw-r--r-- | sys/vdpau/h264/gsth264parser.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/sys/vdpau/h264/gsth264parser.c b/sys/vdpau/h264/gsth264parser.c index 659498226..5ccf506dd 100644 --- a/sys/vdpau/h264/gsth264parser.c +++ b/sys/vdpau/h264/gsth264parser.c @@ -18,16 +18,7 @@ * Boston, MA 02111-1307, USA. */ -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - #include <string.h> -#include <math.h> - -#ifndef HAVE_LOG2 -#define log2(x) (log(x)/log(2)) -#endif #include "gstnalreader.h" @@ -615,7 +606,7 @@ gst_h264_parser_parse_picture (GstH264Parser * parser, guint8 * data, gint i; READ_UE (&reader, pic->pic_size_in_map_units_minus1); - bits = ceil (log2 (pic->num_slice_groups_minus1 + 1)); + bits = g_bit_storage (pic->num_slice_groups_minus1 + 1); pic->slice_group_id = g_new (guint8, pic->pic_size_in_map_units_minus1 + 1); |