blob: 0b5797e9878b1f0c2b1f3c2416a1270d4f622c9d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
#pragma once
/* package name */
#define PACKAGE "pianobar"
#define VERSION "2024.12.21"
/* glibc feature test macros, define _before_ including other files */
#define _POSIX_C_SOURCE 200809L
/* ffmpeg/libav quirks detection
* ffmpeg’s micro versions always start at 100, that’s how we can distinguish
* ffmpeg and libav */
#include <libavfilter/version.h>
#include <libavformat/version.h>
/* does graph_send_command exist (ffmpeg >=2.2) */
#if !defined(HAVE_AVFILTER_GRAPH_SEND_COMMAND) && \
LIBAVFILTER_VERSION_MAJOR >= 4 && \
LIBAVFILTER_VERSION_MICRO >= 100
#define HAVE_AVFILTER_GRAPH_SEND_COMMAND
#endif
/* explicit init is optional for ffmpeg>=4.0 */
#if !defined(HAVE_AVFORMAT_NETWORK_INIT) && \
LIBAVFORMAT_VERSION_INT < AV_VERSION_INT(58, 5, 100) && \
LIBAVFORMAT_VERSION_MICRO >= 100
#define HAVE_AVFORMAT_NETWORK_INIT
#endif
/* dito */
#if !defined(HAVE_AVFILTER_REGISTER_ALL) && \
LIBAVFILTER_VERSION_INT < AV_VERSION_INT(7, 14, 100) && \
LIBAVFILTER_VERSION_MICRO >= 100
#define HAVE_AVFILTER_REGISTER_ALL
#endif
/* dito */
#if !defined(HAVE_AV_REGISTER_ALL) && \
LIBAVFORMAT_VERSION_INT < AV_VERSION_INT(58, 9, 100) && \
LIBAVFORMAT_VERSION_MICRO >= 100
#define HAVE_AV_REGISTER_ALL
#endif
#ifndef NDEBUG
#define HAVE_DEBUGLOG
#define debug(...) fprintf(stderr, __VA_ARGS__)
#else
#define debug(...)
#endif
|