mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
vdpau: Check for log2 and only use it if it's available
This commit is contained in:
parent
c6def75fc4
commit
dfeaa7709b
2 changed files with 13 additions and 0 deletions
|
@ -167,6 +167,11 @@ dnl *** checks for compiler characteristics ***
|
||||||
dnl *** checks for library functions ***
|
dnl *** checks for library functions ***
|
||||||
AC_CHECK_FUNCS([gmtime_r])
|
AC_CHECK_FUNCS([gmtime_r])
|
||||||
|
|
||||||
|
LIBS_SAVE=$LIBS
|
||||||
|
LIBS="$LIBS $LIBM"
|
||||||
|
AC_CHECK_FUNCS([log2])
|
||||||
|
LIBS=$LIBS_SAVE
|
||||||
|
|
||||||
dnl *** checks for headers ***
|
dnl *** checks for headers ***
|
||||||
AC_CHECK_HEADERS([sys/utsname.h])
|
AC_CHECK_HEADERS([sys/utsname.h])
|
||||||
|
|
||||||
|
|
|
@ -18,9 +18,17 @@
|
||||||
* Boston, MA 02111-1307, USA.
|
* Boston, MA 02111-1307, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include "config.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
|
#ifndef HAVE_LOG2
|
||||||
|
#define log2(x) (log(x)/log(2))
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "gstnalreader.h"
|
#include "gstnalreader.h"
|
||||||
|
|
||||||
#include "gsth264parser.h"
|
#include "gsth264parser.h"
|
||||||
|
|
Loading…
Reference in a new issue