summaryrefslogtreecommitdiffstats
path: root/libmpcodecs/vf.c
diff options
context:
space:
mode:
Diffstat (limited to 'libmpcodecs/vf.c')
-rw-r--r--libmpcodecs/vf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libmpcodecs/vf.c b/libmpcodecs/vf.c
index 7a774be741..10e6f4d177 100644
--- a/libmpcodecs/vf.c
+++ b/libmpcodecs/vf.c
@@ -20,6 +20,7 @@
#include <stdlib.h>
#include <string.h>
#include <assert.h>
+#include <endian.h>
#include "config.h"
#if HAVE_MALLOC_H
@@ -254,7 +255,7 @@ void vf_mpi_clear(mp_image_t *mpi, int x0, int y0, int w, int h)
unsigned int *p = (unsigned int *) dst;
int size = (mpi->bpp >> 3) * w / 4;
int i;
-#if HAVE_BIGENDIAN
+#ifdef BIG_ENDIAN
#define CLEAR_PACKEDYUV_PATTERN 0x00800080
#define CLEAR_PACKEDYUV_PATTERN_SWAPPED 0x80008000
#else