summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-03-16 09:21:21 +0100
committerwm4 <wm4@nowhere>2014-03-16 13:19:19 +0100
commit3ec7f528c4af6efa9f5b5951a25ea4c6311741b5 (patch)
treea4b080461b702d5309924a981e8cf9294e494a5e /wscript
parent75b185dfc50757402bbaf2c8b8fa8aa9602e92e8 (diff)
downloadmpv-3ec7f528c4af6efa9f5b5951a25ea4c6311741b5.tar.bz2
mpv-3ec7f528c4af6efa9f5b5951a25ea4c6311741b5.tar.xz
vd_lavc: remove compatibility crap
All this code was needed for compatibility with very old libavcodec versions only (such as Libav 9). Includes some now-possible simplifications too.
Diffstat (limited to 'wscript')
-rw-r--r--wscript27
1 files changed, 5 insertions, 22 deletions
diff --git a/wscript b/wscript
index 1e71adf355..286da3506c 100644
--- a/wscript
+++ b/wscript
@@ -363,12 +363,6 @@ Libav libraries ({0}). Aborting.".format(" ".join(libav_pkg_config_checks))
'req': True,
'fmsg': 'No resampler found. Install libavresample or libswresample (FFmpeg).'
}, {
- 'name': 'avcodec-new-vdpau-api',
- 'desc': 'libavcodec new vdpau API',
- 'func': check_statement('libavutil/pixfmt.h',
- 'int x = AV_PIX_FMT_VDPAU',
- use='libav'),
- }, {
'name': 'avcodec-chroma-pos-api',
'desc': 'libavcodec avcodec_enum_to_chroma_pos API',
'func': check_statement('libavcodec/avcodec.h', """int x, y;
@@ -381,11 +375,6 @@ Libav libraries ({0}). Aborting.".format(" ".join(libav_pkg_config_checks))
'av_frame_get_qp_table(NULL, NULL, NULL)',
use='libav')
}, {
- 'name': 'avutil-refcounting',
- 'desc': 'libavutil ref-counting API',
- 'func': check_statement('libavutil/frame.h', 'av_frame_unref(NULL)',
- use='libav'),
- }, {
'name': '--libavfilter',
'desc': 'libavfilter',
'func': compose_checks(
@@ -395,12 +384,12 @@ Libav libraries ({0}). Aborting.".format(" ".join(libav_pkg_config_checks))
}, {
'name': '--vf-lavfi',
'desc': 'using libavfilter through vf_lavfi',
- 'deps': [ 'libavfilter', 'avutil-refcounting' ],
+ 'deps': [ 'libavfilter' ],
'func': check_true
}, {
'name': '--af-lavfi',
'desc': 'using libavfilter through af_lavfi',
- 'deps': [ 'libavfilter', 'avutil-refcounting' ],
+ 'deps': [ 'libavfilter' ],
'func': check_true
}, {
'name': '--libavdevice',
@@ -678,7 +667,7 @@ hwaccel_features = [
} , {
'name': '--vda-hwaccel',
'desc': 'libavcodec VDA hwaccel',
- 'deps': [ 'corevideo', 'avutil-refcounting'],
+ 'deps': [ 'corevideo'],
'func': compose_checks(
check_headers('VideoDecodeAcceleration/VDADecoder.h'),
check_statement('libavcodec/vda.h',
@@ -698,15 +687,9 @@ hwaccel_features = [
'deps': [ 'gl-cocoa', 'vda-hwaccel' ],
'func': check_true
}, {
- 'name': '--vdpau-decoder',
- 'desc': 'VDPAU decoder (old)',
- 'deps': [ 'vdpau' ],
- 'deps_neg': ['avcodec-new-vdpau-api'],
- 'func': check_true,
- }, {
'name': '--vdpau-hwaccel',
- 'desc': 'libavcodec VDPAU hwaccel (new)',
- 'deps': [ 'vdpau', 'avcodec-new-vdpau-api' ],
+ 'desc': 'libavcodec VDPAU hwaccel',
+ 'deps': [ 'vdpau' ],
'func': check_true,
}
]