diff options
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2010-06-29 11:21:06 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2010-06-29 11:21:30 +0200 |
commit | dfeaa7709b6b1243e3782c5e75f411a31ba1d8cb (patch) | |
tree | 34df3a2993037f5333435102f4b5c55fc5b9f877 /sys/vdpau | |
parent | c6def75fc46babac0dbbe8b33612fee22addfdea (diff) |
vdpau: Check for log2 and only use it if it's available
Diffstat (limited to 'sys/vdpau')
-rw-r--r-- | sys/vdpau/h264/gsth264parser.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/vdpau/h264/gsth264parser.c b/sys/vdpau/h264/gsth264parser.c index 861bab244..659498226 100644 --- a/sys/vdpau/h264/gsth264parser.c +++ b/sys/vdpau/h264/gsth264parser.c @@ -18,9 +18,17 @@ * 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" #include "gsth264parser.h" |