mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-14 00:05:03 -05:00
[config] Added check for modern AV apis
This commit is contained in:
parent
394dee2a86
commit
6b94a34501
43
configure.ac
43
configure.ac
@ -237,27 +237,32 @@ FORK_MODULES_CHECK([FORKED], [LIBAV],
|
|||||||
[Define to 1 if you have ffmpeg (not libav)])],
|
[Define to 1 if you have ffmpeg (not libav)])],
|
||||||
[[is_ffmpeg=no]])
|
[[is_ffmpeg=no]])
|
||||||
AC_MSG_RESULT([$is_ffmpeg])
|
AC_MSG_RESULT([$is_ffmpeg])
|
||||||
FORK_CHECK_DECLS([av_buffersrc_add_frame_flags],
|
dnl Check if we have modern or legacy AV apis
|
||||||
[libavfilter/buffersrc.h])
|
FORK_CHECK_DECLS([avcodec_send_packet, avcodec_parameters_from_context],
|
||||||
FORK_CHECK_DECLS([av_buffersink_get_frame],
|
[libavcodec/avcodec.h],
|
||||||
[libavfilter/buffersink.h])
|
[[modern_av_apis=yes]],
|
||||||
FORK_CHECK_DECLS([avfilter_graph_parse_ptr],
|
[[modern_av_apis=no]
|
||||||
[libavfilter/avfilter.h])
|
FORK_CHECK_DECLS([av_buffersrc_add_frame_flags],
|
||||||
FORK_CHECK_DECLS([av_packet_unref], [libavcodec/avcodec.h])
|
[libavfilter/buffersrc.h])
|
||||||
FORK_CHECK_DECLS([av_packet_rescale_ts], [libavcodec/avcodec.h])
|
FORK_CHECK_DECLS([av_buffersink_get_frame],
|
||||||
FORK_CHECK_DECLS([avcodec_parameters_alloc], [libavcodec/avcodec.h])
|
[libavfilter/buffersink.h])
|
||||||
FORK_CHECK_DECLS([avformat_alloc_output_context2],
|
FORK_CHECK_DECLS([avfilter_graph_parse_ptr],
|
||||||
[libavformat/avformat.h])
|
[libavfilter/avfilter.h])
|
||||||
FORK_CHECK_DECLS([av_frame_alloc], [libavutil/frame.h])
|
FORK_CHECK_DECLS([av_packet_unref], [libavcodec/avcodec.h])
|
||||||
FORK_CHECK_DECLS([av_frame_get_best_effort_timestamp],
|
FORK_CHECK_DECLS([av_packet_rescale_ts], [libavcodec/avcodec.h])
|
||||||
[libavutil/frame.h])
|
FORK_CHECK_DECLS([avcodec_parameters_alloc], [libavcodec/avcodec.h])
|
||||||
FORK_CHECK_DECLS([av_image_fill_arrays], [libavutil/imgutils.h])
|
FORK_CHECK_DECLS([avformat_alloc_output_context2],
|
||||||
FORK_CHECK_DECLS([av_image_get_buffer_size], [libavutil/imgutils.h])
|
[libavformat/avformat.h])
|
||||||
AC_CHECK_HEADERS([libavutil/channel_layout.h libavutil/mathematics.h])
|
FORK_CHECK_DECLS([av_frame_alloc], [libavutil/frame.h])
|
||||||
|
FORK_CHECK_DECLS([av_frame_get_best_effort_timestamp],
|
||||||
|
[libavutil/frame.h])
|
||||||
|
FORK_CHECK_DECLS([av_image_fill_arrays], [libavutil/imgutils.h])
|
||||||
|
FORK_CHECK_DECLS([av_image_get_buffer_size], [libavutil/imgutils.h])
|
||||||
|
AC_CHECK_HEADERS([libavutil/channel_layout.h libavutil/mathematics.h])
|
||||||
|
])
|
||||||
])
|
])
|
||||||
|
|
||||||
dnl TODO Actually test for this
|
AM_CONDITIONAL([COND_FFMPEG_LEGACY], [[test "x$modern_av_apis" = "xno"]])
|
||||||
AM_CONDITIONAL([COND_FFMPEG_LEGACY], [[test "yes" = "no"]])
|
|
||||||
|
|
||||||
AC_CHECK_SIZEOF([void *])
|
AC_CHECK_SIZEOF([void *])
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user