diff options
Diffstat (limited to 'video/vaapi.c')
-rw-r--r-- | video/vaapi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/video/vaapi.c b/video/vaapi.c index 3612ec2a9a..70ab691323 100644 --- a/video/vaapi.c +++ b/video/vaapi.c @@ -16,9 +16,9 @@ */ #include <assert.h> -#include <libavutil/avutil.h> #include "vaapi.h" +#include "mpvcore/mp_common.h" #include "mpvcore/mp_msg.h" #include "mp_image.h" #include "img_format.h" @@ -439,8 +439,8 @@ bool va_image_map(VADisplay display, VAImage *image, struct mp_image *mpi) } if (image->format.fourcc == VA_FOURCC_YV12) { - FFSWAP(unsigned int, mpi->stride[1], mpi->stride[2]); - FFSWAP(uint8_t *, mpi->planes[1], mpi->planes[2]); + MPSWAP(unsigned int, mpi->stride[1], mpi->stride[2]); + MPSWAP(uint8_t *, mpi->planes[1], mpi->planes[2]); } return true; |