diff options
Diffstat (limited to 'compat')
-rw-r--r-- | compat/libav.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/compat/libav.h b/compat/libav.h index 6751fe9a39..6546a76755 100644 --- a/compat/libav.h +++ b/compat/libav.h @@ -22,6 +22,7 @@ #include <libavutil/avutil.h> #include <libavutil/cpu.h> #include <libavcodec/version.h> +#include <libavformat/version.h> #ifndef AV_CPU_FLAG_MMX2 #define AV_CPU_FLAG_MMX2 AV_CPU_FLAG_MMXEXT @@ -39,4 +40,13 @@ #define avcodec_free_frame av_freep #endif +#if LIBAVFORMAT_VERSION_MICRO < 100 +#define AVPROBE_SCORE_RETRY (AVPROBE_SCORE_MAX/4) +#endif + +// For Libav 0.9 +#if LIBAVFORMAT_VERSION_INT < AV_VERSION_INT(54, 2, 100) +#define AV_DISPOSITION_ATTACHED_PIC 0x0400 +#endif + #endif /* MPV_LIBAV_COMPAT_H */ |