summaryrefslogtreecommitdiffstats
path: root/compat
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-03-13 09:29:34 +0100
committerwm4 <wm4@nowhere>2013-03-13 23:52:04 +0100
commit21e4f1680c379407d77f0ac976aa8236f8227be0 (patch)
treec113e61c55d97d8ca9238acc8659d5452cb65bfb /compat
parent048ceef655bce41bc6e215b5e05cec0fad4d1428 (diff)
downloadmpv-21e4f1680c379407d77f0ac976aa8236f8227be0.tar.bz2
mpv-21e4f1680c379407d77f0ac976aa8236f8227be0.tar.xz
configure: bump minimum FFmpeg/Libav versions, remove compat hacks
We consider FFmpeg 1.x and Libav 0.9.x releases compatible. Support for FFmpeg 0.9.x and Libav 0.8.x is considered infeasible and has been dropped in the previous commits. The bits that break compatibility are mainly the CodecID renaming (trivial, but would require nasty hacks everywhere), the avcodec_encode_video2() function (missing in older releases, mandatory in newer ones), and the resampler changes (older releases miss lib{av,sw}resample, newer versions removed the libavcodec resampler). Remove some other compatibility bits that were needed to for releases for which we drop support. The comment about Libav 0.9 in compat/libav.h is incorrect and should have been 0.8 (the symbol is present in Libav 0.9).
Diffstat (limited to 'compat')
-rw-r--r--compat/libav.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/compat/libav.h b/compat/libav.h
index ef588fe025..a2957f4b71 100644
--- a/compat/libav.h
+++ b/compat/libav.h
@@ -32,17 +32,4 @@
#define AV_CODEC_ID_SUBRIP AV_CODEC_ID_TEXT
#endif
-#if LIBAVUTIL_VERSION_INT < AV_VERSION_INT(51, 36, 0)
-#define av_get_packed_sample_fmt(x) (x)
-#endif
-
-#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(54, 28, 0)
-#define avcodec_free_frame av_freep
-#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 */