From f36d152eb7fed4cee9e2f0f37370fddfdfe2cef6 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 27 Oct 2017 17:22:32 +0200 Subject: 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.) --- wscript | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'wscript') 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'), }, ] -- cgit v1.2.3