base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12 (#356361)
[NixPkgs.git] / pkgs / tools / audio / loudgain / support-ffmpeg-5.patch
bloba35d259e0e7b875b93d86547be037ec63e6c49e7
1 From 977332e9e45477b1b41a5af7a2484f92b340413b Mon Sep 17 00:00:00 2001
2 From: Hugh McMaster <hugh.mcmaster@outlook.com>
3 Date: Thu, 1 Sep 2022 14:44:17 +1000
4 Subject: [PATCH] src/scan.c: Only call av_register_all() if using libavformat
5 < 58.9.100
7 This function is deprecated.
9 Thanks to Leigh Scott for suggesting this patch.
10 ---
11 src/scan.c | 4 ++--
12 1 file changed, 2 insertions(+), 2 deletions(-)
14 diff --git a/src/scan.c b/src/scan.c
15 index 85b36b3..ee72cf8 100644
16 --- a/src/scan.c
17 +++ b/src/scan.c
18 @@ -69,9 +69,9 @@ int scan_init(unsigned nb_files) {
19 * It is now useless
20 * https://github.com/FFmpeg/FFmpeg/blob/70d25268c21cbee5f08304da95be1f647c630c15/doc/APIchanges#L86
22 - if (avformat_version() < AV_VERSION_INT(58,9,100))
23 +#if LIBAVFORMAT_VERSION_INT < AV_VERSION_INT(58,9,100)
24 av_register_all();
26 +#endif
27 av_log_set_callback(scan_av_log);
29 scan_nb_files = nb_files;