From 71222c006ea9d256e683324d2e03d7bbf30791c5 Mon Sep 17 00:00:00 2001 From: "Devin J. Pohly" Date: Thu, 2 Aug 2012 16:47:29 -0400 Subject: [PATCH] fix detection of ffmpeg 0.11.1 --- autoconf/m4/video.m4 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoconf/m4/video.m4 b/autoconf/m4/video.m4 index 0d3a91a4cd..4ec88801b4 100644 --- a/autoconf/m4/video.m4 +++ b/autoconf/m4/video.m4 @@ -17,7 +17,7 @@ have_ffmpeg=no if test "$with_ffmpeg" = "yes"; then if test "$with_static_ffmpeg" = "yes" -o "$with_static_ffmpeg" = "no"; then AC_CHECK_LIB(avutil, av_free, have_libavutil=yes, have_libavutil=no) - AC_CHECK_LIB(avcodec, avcodec_init, have_libavcodec=yes, have_libavcodec=no) + AC_CHECK_LIB(avcodec, avcodec_register_all, have_libavcodec=yes, have_libavcodec=no) AC_CHECK_LIB(avformat, av_guess_format, have_libavformat=yes, have_libavformat=no) AC_CHECK_LIB(swscale, sws_scale, have_libswscale=yes, have_libswscale=no) if test "$have_libavutil" = "yes" -a "$have_libavformat" = "yes" -a "$have_libavcodec" = "yes" -a "$have_libswscale" = "yes"; then @@ -46,7 +46,7 @@ if test "$with_ffmpeg" = "yes"; then LIBS="$FFMPEG_LIBS -lpthread $LIBS" AC_CHECK_FUNC([av_free], have_libavutil=yes, have_libavutil=no) - AC_CHECK_FUNC([avcodec_init], have_libavcodec=yes, have_libavcodec=no) + AC_CHECK_FUNC([avcodec_register_all], have_libavcodec=yes, have_libavcodec=no) AC_CHECK_FUNC([av_guess_format], have_libavformat=yes, have_libavformat=no) AC_CHECK_FUNC([sws_scale], have_libswscale=yes, have_libswscale=no)