summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-03-15 14:21:42 +0100
committerwm4 <wm4@nowhere>2013-03-15 14:21:42 +0100
commita9c9999973996bc990706a308d945bc1039a72a2 (patch)
treeb88f2010c5cae03c3c077b1534a690b822fbe12b /configure
parente837d8ddaca6f72e29c69833bd46a0454d36221f (diff)
downloadmpv-a9c9999973996bc990706a308d945bc1039a72a2.tar.bz2
mpv-a9c9999973996bc990706a308d945bc1039a72a2.tar.xz
video: use new method to get QP table
This only matters for those who want to use vf_pp. The old API is marked as deprecated, and doesn't work on Libav. It was broken on FFmpeg, but has recently started working again - the fields in question were not un- deprecated though. Instead you're supposed to use a new API, which does exactly the same thing (what...?). Also don't pass the QP table with mp_image_copy_attributes() - it probably does more harm than it's useful. By the way, with -vf=dlopen=TOOLS/vf_dlopen/showqscale.so, it appears the table as output by recent FFmpeg is offset by 1 macroblock in X direction and 2 macroblocks in Y direction, which most likely will interfere with normal vf_pp operation. However, this is not my problem. The only real reason for this commit is that we can finally get rid of all libav* related deprecation warnings. (Though they are constantly deprecating APIs, so this will not last long.)
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure12
1 files changed, 12 insertions, 0 deletions
diff --git a/configure b/configure
index 1b855b9cb8..ed7846a563 100755
--- a/configure
+++ b/configure
@@ -2711,6 +2711,17 @@ if test "$_resampler" = no ; then
fi
+echocheck "libavutil QP API"
+_avutil_has_qp_api=no
+statement_check libavutil/frame.h 'av_frame_get_qp_table(NULL, NULL, NULL)' && _avutil_has_qp_api=yes
+if test "$_avutil_has_qp_api" = yes ; then
+ def_avutil_has_qp_api='#define HAVE_AVUTIL_QP_API 1'
+else
+ def_avutil_has_qp_api='#define HAVE_AVUTIL_QP_API 0'
+fi
+echores "$_avutil_has_qp_api"
+
+
echocheck "libavutil ref-counting API"
_avutil_has_refcounting=no
statement_check libavutil/frame.h 'av_frame_unref(NULL)' && _avutil_has_refcounting=yes
@@ -3221,6 +3232,7 @@ $def_mpg123
$def_zlib
$def_avutil_has_refcounting
+$def_avutil_has_qp_api
$def_libpostproc
$def_libavdevice
$def_libavfilter