diff options
author | wm4 <wm4@nowhere> | 2013-03-09 20:50:06 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-03-13 23:51:30 +0100 |
commit | 514d8a7c9dfde2acc89ee4d19dd9db6b9db5b882 (patch) | |
tree | 5a4eeebc797a16866a7dc4f8b846854c9a33f0b8 /configure | |
parent | 71b09be04056d9a505f32c71375ebc327d842ae4 (diff) | |
download | mpv-514d8a7c9dfde2acc89ee4d19dd9db6b9db5b882.tar.bz2 mpv-514d8a7c9dfde2acc89ee4d19dd9db6b9db5b882.tar.xz |
video: make use of libavcodec refcounting
Now lavc_dr1.c is not used anymore if libavcodec is recent enough.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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 |