diff options
Diffstat (limited to 'compat/libav.h')
-rw-r--r-- | compat/libav.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/compat/libav.h b/compat/libav.h index ba5250b5f3..56876c1336 100644 --- a/compat/libav.h +++ b/compat/libav.h @@ -28,4 +28,16 @@ #define AV_CPU_FLAG_MMX2 AV_CPU_FLAG_MMXEXT #endif +// At least Libav 9 doesn't define the new symbols +#ifndef AV_PIX_FMT_FLAG_BE +#define AV_PIX_FMT_FLAG_BE PIX_FMT_BE +#define AV_PIX_FMT_FLAG_PAL PIX_FMT_PAL +#define AV_PIX_FMT_FLAG_BITSTREAM PIX_FMT_BITSTREAM +#define AV_PIX_FMT_FLAG_HWACCEL PIX_FMT_HWACCEL +#define AV_PIX_FMT_FLAG_PLANAR PIX_FMT_PLANAR +#define AV_PIX_FMT_FLAG_RGB PIX_FMT_RGB +#define AV_PIX_FMT_FLAG_PSEUDOPAL PIX_FMT_PSEUDOPAL +#define AV_PIX_FMT_FLAG_ALPHA PIX_FMT_ALPHA +#endif + #endif /* MPV_LIBAV_COMPAT_H */ |