mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
vdpauh264dec: use g_bit_storage instead of log2
log2 caused compile issues on certain platforms
This commit is contained in:
parent
8d5755a5e2
commit
c27468f1a1
2 changed files with 1 additions and 15 deletions
|
@ -167,11 +167,6 @@ dnl *** checks for compiler characteristics ***
|
|||
dnl *** checks for library functions ***
|
||||
AC_CHECK_FUNCS([gmtime_r])
|
||||
|
||||
LIBS_SAVE=$LIBS
|
||||
LIBS="$LIBS $LIBM"
|
||||
AC_CHECK_FUNCS([log2])
|
||||
LIBS=$LIBS_SAVE
|
||||
|
||||
dnl *** checks for headers ***
|
||||
AC_CHECK_HEADERS([sys/utsname.h])
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue