diff options
| author | Baptiste Daroussin <bapt@FreeBSD.org> | 2025-11-21 05:52:51 +0100 |
|---|---|---|
| committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2025-11-21 05:54:21 +0100 |
| commit | 7575dffc31cf9e5577b848f0de4a66251f97b324 (patch) | |
| tree | 2c60aacd98099c95623564dc968c2ab850417d2f /net/minidlna/files/patch-libav.h | |
| parent | net/ntp: Fix two segfaults (diff) | |
net/minidlna: fix build with newer ffmpeg
PR: 289034
Diffstat (limited to 'net/minidlna/files/patch-libav.h')
| -rw-r--r-- | net/minidlna/files/patch-libav.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/net/minidlna/files/patch-libav.h b/net/minidlna/files/patch-libav.h new file mode 100644 index 000000000000..461d5d5eb43b --- /dev/null +++ b/net/minidlna/files/patch-libav.h @@ -0,0 +1,14 @@ +--- libav.h.orig 2025-07-25 01:55:58 UTC ++++ libav.h +@@ -174,7 +174,11 @@ lav_get_interlaced(AVStream *s) + #define lav_codec_tag(s) s->codecpar->codec_tag + #define lav_sample_rate(s) s->codecpar->sample_rate + #define lav_bit_rate(s) s->codecpar->bit_rate ++#if LIBAVUTIL_VERSION_MAJOR >= 59 ++#define lav_channels(s) s->codecpar->ch_layout.nb_channels ++#else + #define lav_channels(s) s->codecpar->channels ++#endif + #define lav_width(s) s->codecpar->width + #define lav_height(s) s->codecpar->height + #define lav_profile(s) s->codecpar->profile |
