From 514d8a7c9dfde2acc89ee4d19dd9db6b9db5b882 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 9 Mar 2013 20:50:06 +0100 Subject: video: make use of libavcodec refcounting Now lavc_dr1.c is not used anymore if libavcodec is recent enough. --- configure | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'configure') diff --git a/configure b/configure index c674a55bf1..15a41ade7f 100755 --- a/configure +++ b/configure @@ -2713,6 +2713,17 @@ fi echores "$_avcodec_is_decoder_api" +echocheck "libavutil ref-counting API" +_avutil_has_refcounting=no +statement_check libavutil/frame.h 'av_frame_unref(NULL)' && _avutil_has_refcounting=yes +if test "$_avutil_has_refcounting" = yes ; then + def_avutil_has_refcounting='#define HAVE_AVUTIL_REFCOUNTING 1' +else + def_avutil_has_refcounting='#define HAVE_AVUTIL_REFCOUNTING 0' +fi +echores "$_avutil_has_refcounting" + + echocheck "libavfilter >= 3.17.0" if test "$libavfilter" = auto ; then libavfilter=no @@ -3046,6 +3057,7 @@ GL_X11 = $_gl_x11 GL_WAYLAND = $_gl_wayland HAVE_POSIX_SELECT = $_posix_select HAVE_SYS_MMAN_H = $_mman +HAVE_AVUTIL_REFCOUNTING = $_avutil_has_refcounting JACK = $_jack JOYSTICK = $_joystick JPEG = $_jpeg @@ -3212,6 +3224,7 @@ $def_zlib $def_avcodec_codec_desc_api $def_avcodec_is_decoder_api +$def_avutil_has_refcounting $def_libpostproc $def_libavdevice $def_libavfilter -- cgit v1.2.3