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
@ -237,6 +237,11 @@ FORK_MODULES_CHECK([FORKED], [LIBAV],
|
||||
[Define to 1 if you have ffmpeg (not libav)])],
|
||||
[[is_ffmpeg=no]])
|
||||
AC_MSG_RESULT([$is_ffmpeg])
|
||||
dnl Check if we have modern or legacy AV apis
|
||||
FORK_CHECK_DECLS([avcodec_send_packet, avcodec_parameters_from_context],
|
||||
[libavcodec/avcodec.h],
|
||||
[[modern_av_apis=yes]],
|
||||
[[modern_av_apis=no]
|
||||
FORK_CHECK_DECLS([av_buffersrc_add_frame_flags],
|
||||
[libavfilter/buffersrc.h])
|
||||
FORK_CHECK_DECLS([av_buffersink_get_frame],
|
||||
@ -255,9 +260,9 @@ FORK_MODULES_CHECK([FORKED], [LIBAV],
|
||||
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 "yes" = "no"]])
|
||||
AM_CONDITIONAL([COND_FFMPEG_LEGACY], [[test "x$modern_av_apis" = "xno"]])
|
||||
|
||||
AC_CHECK_SIZEOF([void *])
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user