|
| 1 | +commit 298aa371c56c2f52c25a33d9bdec4918b11cebdc |
| 2 | +Author: tibequadorian < [email protected]> |
| 3 | +Date: Sat Mar 19 18:40:12 2022 +0100 |
| 4 | + |
| 5 | + audacious-plugins: rebuild against ffmpeg-5.0 |
| 6 | + |
| 7 | +diff --git a/srcpkgs/audacious-plugins/patches/ffmpeg-5.0.patch b/srcpkgs/audacious-plugins/patches/ffmpeg-5.0.patch |
| 8 | +new file mode 100644 |
| 9 | +index 0000000000..617c11215b |
| 10 | +--- /dev/null |
| 11 | ++++ b/srcpkgs/audacious-plugins/patches/ffmpeg-5.0.patch |
| 12 | +@@ -0,0 +1,31 @@ |
| 13 | ++From f60beb400eeb1e4778bbfd738bc4a4ccef3de539 Mon Sep 17 00:00:00 2001 |
| 14 | ++From: John Lindgren <[email protected]> |
| 15 | ++Date: Sat, 5 Mar 2022 12:05:34 -0500 |
| 16 | ++Subject: [PATCH] Fix build with FFmpeg 5.0 |
| 17 | ++ |
| 18 | ++--- |
| 19 | ++ src/ffaudio/ffaudio-core.cc | 4 ++-- |
| 20 | ++ 1 file changed, 2 insertions(+), 2 deletions(-) |
| 21 | ++ |
| 22 | ++diff --git a/src/ffaudio/ffaudio-core.cc b/src/ffaudio/ffaudio-core.cc |
| 23 | ++index 16dc63e3a..a2b95fd6c 100644 |
| 24 | ++--- a/src/ffaudio/ffaudio-core.cc |
| 25 | +++++ b/src/ffaudio/ffaudio-core.cc |
| 26 | ++@@ -274,7 +274,7 @@ static AVInputFormat * get_format_by_content (const char * name, VFSFile & file) |
| 27 | ++ AVProbeData d = {name, buf, filled}; |
| 28 | ++ score = target; |
| 29 | ++ |
| 30 | ++- f = av_probe_input_format2 (& d, true, & score); |
| 31 | +++ f = (AVInputFormat *) av_probe_input_format2 (& d, true, & score); |
| 32 | ++ if (f) |
| 33 | ++ break; |
| 34 | ++ |
| 35 | ++@@ -347,7 +347,7 @@ static bool find_codec (AVFormatContext * c, CodecInfo * cinfo) |
| 36 | ++ #endif |
| 37 | ++ if (stream && stream->codecpar && stream->codecpar->codec_type == AVMEDIA_TYPE_AUDIO) |
| 38 | ++ { |
| 39 | ++- AVCodec * codec = avcodec_find_decoder (stream->codecpar->codec_id); |
| 40 | +++ AVCodec * codec = (AVCodec *) avcodec_find_decoder (stream->codecpar->codec_id); |
| 41 | ++ |
| 42 | ++ if (codec) |
| 43 | ++ { |
0 commit comments