$ make
[ 2%] Building C object CMakeFiles/libgroove_static.dir/src/buffer.c.o
[ 5%] Building C object CMakeFiles/libgroove_static.dir/src/file.c.o
/home/franz/src/public/libgroove/src/file.c: In function ‘groove_file_open_custom’:
/home/franz/src/public/libgroove/src/file.c:108:5: error: ‘filename’ is deprecated [-Werror=deprecated-declarations]
108 | file->filename = f->ic->filename;
| ^~~~
In file included from /home/franz/src/public/libgroove/src/file.h:16,
from /home/franz/src/public/libgroove/src/file.c:8:
/usr/include/libavformat/avformat.h:1417:10: note: declared here
1417 | char filename[1024];
| ^~~~~~~~
/home/franz/src/public/libgroove/src/file.c:176:5: error: ‘codec’ is deprecated [-Werror=deprecated-declarations]
176 | AVCodecContext *avctx = f->audio_st->codec;
| ^~~~~~~~~~~~~~
In file included from /home/franz/src/public/libgroove/src/file.h:16,
from /home/franz/src/public/libgroove/src/file.c:8:
/usr/include/libavformat/avformat.h:880:21: note: declared here
880 | AVCodecContext *codec;
| ^~~~~
/home/franz/src/public/libgroove/src/file.c: In function ‘groove_file_close’:
/home/franz/src/public/libgroove/src/file.c:235:9: error: ‘codec’ is deprecated [-Werror=deprecated-declarations]
235 | AVCodecContext *avctx = f->ic->streams[f->audio_stream_index]->codec;
| ^~~~~~~~~~~~~~
In file included from /home/franz/src/public/libgroove/src/file.h:16,
from /home/franz/src/public/libgroove/src/file.c:8:
/usr/include/libavformat/avformat.h:880:21: note: declared here
880 | AVCodecContext *codec;
| ^~~~~
/home/franz/src/public/libgroove/src/file.c: In function ‘groove_file_audio_format’:
/home/franz/src/public/libgroove/src/file.c:288:5: error: ‘codec’ is deprecated [-Werror=deprecated-declarations]
288 | AVCodecContext *codec_ctx = f->audio_st->codec;
| ^~~~~~~~~~~~~~
In file included from /home/franz/src/public/libgroove/src/file.h:16,
from /home/franz/src/public/libgroove/src/file.c:8:
/usr/include/libavformat/avformat.h:880:21: note: declared here
880 | AVCodecContext *codec;
| ^~~~~
/home/franz/src/public/libgroove/src/file.c: In function ‘cleanup_save’:
/home/franz/src/public/libgroove/src/file.c:328:9: error: ‘filename’ is deprecated [-Werror=deprecated-declarations]
328 | remove(f->oc->filename);
| ^~~~~~
In file included from /home/franz/src/public/libgroove/src/file.h:16,
from /home/franz/src/public/libgroove/src/file.c:8:
/usr/include/libavformat/avformat.h:1417:10: note: declared here
1417 | char filename[1024];
| ^~~~~~~~
/home/franz/src/public/libgroove/src/file.c: In function ‘groove_file_save_as’:
/home/franz/src/public/libgroove/src/file.c:342:5: error: ‘filename’ is deprecated [-Werror=deprecated-declarations]
342 | AVOutputFormat *ofmt = av_guess_format(f->ic->iformat->name, f->ic->filename, NULL);
| ^~~~~~~~~~~~~~
In file included from /home/franz/src/public/libgroove/src/file.h:16,
from /home/franz/src/public/libgroove/src/file.c:8:
/usr/include/libavformat/avformat.h:1417:10: note: declared here
1417 | char filename[1024];
| ^~~~~~~~
/home/franz/src/public/libgroove/src/file.c:355:5: error: ‘filename’ is deprecated [-Werror=deprecated-declarations]
355 | snprintf(f->oc->filename, sizeof(f->oc->filename), "%s", filename);
| ^~~~~~~~
In file included from /home/franz/src/public/libgroove/src/file.h:16,
from /home/franz/src/public/libgroove/src/file.c:8:
/usr/include/libavformat/avformat.h:1417:10: note: declared here
1417 | char filename[1024];
| ^~~~~~~~
/home/franz/src/public/libgroove/src/file.c:355:5: error: ‘filename’ is deprecated [-Werror=deprecated-declarations]
355 | snprintf(f->oc->filename, sizeof(f->oc->filename), "%s", filename);
| ^~~~~~~~
In file included from /home/franz/src/public/libgroove/src/file.h:16,
from /home/franz/src/public/libgroove/src/file.c:8:
/usr/include/libavformat/avformat.h:1417:10: note: declared here
1417 | char filename[1024];
| ^~~~~~~~
/home/franz/src/public/libgroove/src/file.c:359:9: error: ‘filename’ is deprecated [-Werror=deprecated-declarations]
359 | if (avio_open(&f->oc->pb, f->oc->filename, AVIO_FLAG_WRITE) < 0) {
| ^~
In file included from /home/franz/src/public/libgroove/src/file.h:16,
from /home/franz/src/public/libgroove/src/file.c:8:
/usr/include/libavformat/avformat.h:1417:10: note: declared here
1417 | char filename[1024];
| ^~~~~~~~
/home/franz/src/public/libgroove/src/file.c:384:9: error: ‘codec’ is deprecated [-Werror=deprecated-declarations]
384 | AVCodecContext *icodec = in_stream->codec;
| ^~~~~~~~~~~~~~
In file included from /home/franz/src/public/libgroove/src/file.h:16,
from /home/franz/src/public/libgroove/src/file.c:8:
/usr/include/libavformat/avformat.h:880:21: note: declared here
880 | AVCodecContext *codec;
| ^~~~~
/home/franz/src/public/libgroove/src/file.c:385:9: error: ‘codec’ is deprecated [-Werror=deprecated-declarations]
385 | AVCodecContext *ocodec = out_stream->codec;
| ^~~~~~~~~~~~~~
In file included from /home/franz/src/public/libgroove/src/file.h:16,
from /home/franz/src/public/libgroove/src/file.c:8:
/usr/include/libavformat/avformat.h:880:21: note: declared here
880 | AVCodecContext *codec;
| ^~~~~
/home/franz/src/public/libgroove/src/file.c:401:66: error: ‘FF_INPUT_BUFFER_PADDING_SIZE’ undeclared (first use in this function); did you mean ‘AV_INPUT_BUFFER_PADDING_SIZE’?
401 | uint64_t extra_size = (uint64_t)icodec->extradata_size + FF_INPUT_BUFFER_PADDING_SIZE;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
| AV_INPUT_BUFFER_PADDING_SIZE
/home/franz/src/public/libgroove/src/file.c:401:66: note: each undeclared identifier is reported only once for each function it appears in
/home/franz/src/public/libgroove/src/file.c: In function ‘groove_file_save’:
/home/franz/src/public/libgroove/src/file.c:494:13: error: ‘filename’ is deprecated [-Werror=deprecated-declarations]
494 | &temp_filename_len, f->ic->filename, strlen(f->ic->filename));
| ^
In file included from /home/franz/src/public/libgroove/src/file.h:16,
from /home/franz/src/public/libgroove/src/file.c:8:
/usr/include/libavformat/avformat.h:1417:10: note: declared here
1417 | char filename[1024];
| ^~~~~~~~
/home/franz/src/public/libgroove/src/file.c:494:13: error: ‘filename’ is deprecated [-Werror=deprecated-declarations]
494 | &temp_filename_len, f->ic->filename, strlen(f->ic->filename));
| ^
In file included from /home/franz/src/public/libgroove/src/file.h:16,
from /home/franz/src/public/libgroove/src/file.c:8:
/usr/include/libavformat/avformat.h:1417:10: note: declared here
1417 | char filename[1024];
| ^~~~~~~~
/home/franz/src/public/libgroove/src/file.c:507:5: error: ‘filename’ is deprecated [-Werror=deprecated-declarations]
507 | if (rename(temp_filename, f->ic->filename)) {
| ^~
In file included from /home/franz/src/public/libgroove/src/file.h:16,
from /home/franz/src/public/libgroove/src/file.c:8:
/usr/include/libavformat/avformat.h:1417:10: note: declared here
1417 | char filename[1024];
| ^~~~~~~~
cc1: all warnings being treated as errors
make[2]: *** [CMakeFiles/libgroove_static.dir/build.make:95: CMakeFiles/libgroove_static.dir/src/file.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:112: CMakeFiles/libgroove_static.dir/all] Error 2
make: *** [Makefile:149: all] Error 2