From fc8ab41f29ef7b1abb55d6276465af8e40c1c57f Mon Sep 17 00:00:00 2001 From: ejurgensen Date: Fri, 18 Dec 2015 21:54:20 +0100 Subject: [PATCH] [config] Add libavutil to AC_CHECK_LIB, as it may otherwise not detect av_packet_rescale_ts --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 54c5b1cf..3bca3779 100644 --- a/configure.ac +++ b/configure.ac @@ -88,7 +88,7 @@ PKG_CHECK_MODULES(LIBAV, [ libavformat libavcodec libswscale libavutil libavfilt dnl Checks for misc libav and ffmpeg API differences save_LIBS="$LIBS" AC_CHECK_LIB([avcodec], [avcodec_find_best_pix_fmt_of_list], - AC_DEFINE(HAVE_FFMPEG, 1, [Define to 1 if you have ffmpeg/libav with avcodec_find_best_pix_fmt_of_list])) + AC_DEFINE(HAVE_FFMPEG, 1, [Define to 1 if you have ffmpeg/libav with avcodec_find_best_pix_fmt_of_list]),,[-lavutil]) AC_CHECK_LIB([avfilter], [av_buffersrc_add_frame_flags], AC_DEFINE(HAVE_LIBAV_BUFFERSRC_ADD_FRAME_FLAGS, 1, [Define to 1 if you have ffmpeg/libav with av_buffersrc_add_frame_flags])) @@ -97,7 +97,7 @@ AC_CHECK_LIB([avfilter], [av_buffersink_get_frame], AC_CHECK_LIB([avfilter], [avfilter_graph_parse_ptr], AC_DEFINE(HAVE_LIBAV_GRAPH_PARSE_PTR, 1, [Define to 1 if you have ffmpeg/libav with avfilter_graph_parse_ptr])) AC_CHECK_LIB([avcodec], [av_packet_rescale_ts], - AC_DEFINE(HAVE_LIBAV_PACKET_RESCALE_TS, 1, [Define to 1 if you have ffmpeg/libav with av_packet_rescale_ts])) + AC_DEFINE(HAVE_LIBAV_PACKET_RESCALE_TS, 1, [Define to 1 if you have ffmpeg/libav with av_packet_rescale_ts]),,[-lavutil]) AC_CHECK_LIB([avformat], [avformat_alloc_output_context2], AC_DEFINE(HAVE_LIBAV_ALLOC_OUTPUT_CONTEXT2, 1, [Define to 1 if you have ffmpeg/libav with avformat_alloc_output_context2])) AC_CHECK_LIB([avutil], [av_frame_alloc],