summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-10-27 17:22:32 +0200
committerwm4 <wm4@nowhere>2017-10-27 18:08:20 +0200
commitf36d152eb7fed4cee9e2f0f37370fddfdfe2cef6 (patch)
treed87cdfccb9bbd7c8c3869c3d8b812a19269d3c35 /wscript
parent4701c5ba4f87ca35f66d574e89eba8c7d4514783 (diff)
downloadmpv-f36d152eb7fed4cee9e2f0f37370fddfdfe2cef6.tar.bz2
mpv-f36d152eb7fed4cee9e2f0f37370fddfdfe2cef6.tar.xz
vd_lavc: use avcodec_fill_hw_frames_parameters() API
This removes the need for codec- and API-specific knowledge in the libavcodec hardware acceleration API user. For mpv, this removes the need for vd_lavc_hwdec.pixfmt_map and a few other things. (For now, we still keep the "old" parts for the sake of supporting older Libav, and FFgarbage.)
Diffstat (limited to 'wscript')
-rw-r--r--wscript6
1 files changed, 6 insertions, 0 deletions
diff --git a/wscript b/wscript
index 775ec38d8b..f015b11eee 100644
--- a/wscript
+++ b/wscript
@@ -508,6 +508,12 @@ FFmpeg/Libav libraries. You need at least {0}. Aborting.".format(libav_versions_
'func': check_statement('libavutil/spherical.h',
'AV_SPHERICAL_EQUIRECTANGULAR',
use='libav'),
+ }, {
+ 'name': 'avcodec-hw-frames-params',
+ 'desc': 'libavcodec avcodec_get_hw_frames_parameters()',
+ 'func': check_statement('libavcodec/avcodec.h',
+ 'avcodec_get_hw_frames_parameters(0,0,0,0)',
+ use='libav'),
},
]