base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12 (#356361)
[NixPkgs.git] / pkgs / tools / audio / loudgain / fix-gcc-14.patch
blobeed9e6cc26386f5fbe8a29f7f4611c301d311615
1 From ad9c7f8ddf0907d408b3d2fbf4d00ecb55af8d13 Mon Sep 17 00:00:00 2001
2 From: Hugh McMaster <hugh.mcmaster@outlook.com>
3 Date: Mon, 29 Jul 2024 23:13:16 +1000
4 Subject: [PATCH] src/scan.c: Declare "AVCodec" to be "const AVCodec"
6 This fixes compilation with GCC-14.
7 ---
8 src/scan.c | 2 +-
9 1 file changed, 1 insertion(+), 1 deletion(-)
11 diff --git a/src/scan.c b/src/scan.c
12 index 85b36b3..e02ed86 100644
13 --- a/src/scan.c
14 +++ b/src/scan.c
15 @@ -115,7 +115,7 @@ int scan_file(const char *file, unsigned index) {
17 AVFormatContext *container = NULL;
19 - AVCodec *codec;
20 + const AVCodec *codec;
21 AVCodecContext *ctx;
23 AVFrame *frame;