libavformat/dashenc.c: In function 'dash_init':
libavformat/dashenc.c:1581:65: warning: '-stream' directive output may be truncated writing 7 bytes into a region of size between 1 and 1024 [-Wformat-truncation=]
                 snprintf(os->initfile, sizeof(os->initfile), '%s-stream%d.%s', basename, i, os->format_name);
                                                                 ^~~~~~~
libavformat/dashenc.c:1581:62: note: directive argument in the range [0, 2147483647]
                 snprintf(os->initfile, sizeof(os->initfile), '%s-stream%d.%s', basename, i, os->format_name);
                                                              ^~~~~~~~~~~~~~~~
libavformat/dashenc.c:1581:17: note: 'snprintf' output 10 or more bytes (assuming 1042) into a destination of size 1024
                 snprintf(os->initfile, sizeof(os->initfile), '%s-stream%d.%s', basename, i, os->format_name);
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libavformat/dashenc.c:1585:49: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size between 1 and 1024 [-Wformat-truncation=]
         snprintf(filename, sizeof(filename), '%s%s', c->dirname, os->initfile);
                                                 ^~
libavformat/dashenc.c:1585:9: note: 'snprintf' output between 1 and 2047 bytes into a destination of size 1024
         snprintf(filename, sizeof(filename), '%s%s', c->dirname, os->initfile);
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libavformat/dashenc.c: In function 'flush_init_segment':
libavformat/dashenc.c:593:49: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size between 1 and 1024 [-Wformat-truncation=]
         snprintf(filename, sizeof(filename), '%s%s', c->dirname, os->initfile);
                                                 ^~
libavformat/dashenc.c:593:9: note: 'snprintf' output between 1 and 2047 bytes into a destination of size 1024
         snprintf(filename, sizeof(filename), '%s%s', c->dirname, os->initfile);
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libavformat/dashenc.c: In function 'write_hls_media_playlist':
libavformat/dashenc.c:487:49: warning: 'media_' directive output may be truncated writing 6 bytes into a region of size between 1 and 1024 [-Wformat-truncation=]
         snprintf(playlist_name, string_size, '%smedia_%d.m3u8', base_url, id);
                                                 ^~~~~~
libavformat/dashenc.c:487:9: note: 'snprintf' output between 13 and 1046 bytes into a destination of size 1024
         snprintf(playlist_name, string_size, '%smedia_%d.m3u8', base_url, id);
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libavformat/dashenc.c: In function 'dash_flush':
libavformat/dashenc.c:1961:63: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size between 1 and 1024 [-Wformat-truncation=]
             snprintf(os->full_path, sizeof(os->full_path), '%s%s', c->dirname, os->initfile);
                                                               ^~
libavformat/dashenc.c:1961:13: note: 'snprintf' output between 1 and 2047 bytes into a destination of size 1024
             snprintf(os->full_path, sizeof(os->full_path), '%s%s', c->dirname, os->initfile);
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libavformat/dashenc.c: In function 'dash_write_trailer':
libavformat/dashenc.c:487:49: warning: 'media_' directive output may be truncated writing 6 bytes into a region of size between 1 and 1024 [-Wformat-truncation=]
         snprintf(playlist_name, string_size, '%smedia_%d.m3u8', base_url, id);
                                                 ^~~~~~
libavformat/dashenc.c:487:46: note: directive argument in the range [0, 2147483647]
         snprintf(playlist_name, string_size, '%smedia_%d.m3u8', base_url, id);
                                              ^~~~~~~~~~~~~~~~~
libavformat/dashenc.c:487:9: note: 'snprintf' output between 13 and 1045 bytes into a destination of size 1024
         snprintf(playlist_name, string_size, '%smedia_%d.m3u8', base_url, id);
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libavformat/dashenc.c: In function 'dash_write_packet':
libavformat/dashenc.c:2258:59: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size between 1 and 1024 [-Wformat-truncation=]
         snprintf(os->full_path, sizeof(os->full_path), '%s%s', c->dirname,
                                                           ^~
libavformat/dashenc.c:2258:9: note: 'snprintf' output between 1 and 2047 bytes into a destination of size 1024
         snprintf(os->full_path, sizeof(os->full_path), '%s%s', c->dirname,
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                  os->filename);
                  ~~~~~~~~~~~~~
libavformat/img2enc.c: In function 'write_packet':
libavformat/img2enc.c:183:55: warning: '.tmp' directive output may be truncated writing 4 bytes into a region of size between 1 and 1024 [-Wformat-truncation=]
         snprintf(img->tmp[i], sizeof(img->tmp[i]), '%s.tmp', filename);
                                                       ^~~~
libavformat/img2enc.c:183:9: note: 'snprintf' output between 5 and 1028 bytes into a destination of size 1024
         snprintf(img->tmp[i], sizeof(img->tmp[i]), '%s.tmp', filename);
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libavformat/mlvdec.c: In function 'read_header':
libavformat/mlvdec.c:363:63: warning: 'snprintf' output may be truncated before the last format character [-Wformat-truncation=]
             snprintf(filename + strlen(filename) - 2, 3, '%02d', i);
                                                               ^
libavformat/mlvdec.c:363:13: note: 'snprintf' output between 3 and 4 bytes into a destination of size 3
             snprintf(filename + strlen(filename) - 2, 3, '%02d', i);
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libavformat/mov.c: In function 'heif_add_stream':
libavformat/mov.c:4926:60: error: 'mov_free_stream_context' undeclared (first use in this function); did you mean 'ff_find_stream_index'?
     buf = av_buffer_create(data, sizeof(MOVStreamContext), mov_free_stream_context, c->fc, 0);
                                                            ^~~~~~~~~~~~~~~~~~~~~~~
                                                            ff_find_stream_index
libavformat/mov.c:4926:60: note: each undeclared identifier is reported only once for each function it appears in
libavformat/mov.c:4937:10: error: implicit declaration of function 'mov_get_stream_context'; did you mean 'ffio_init_read_context'? [-Werror=implicit-function-declaration]
     sc = mov_get_stream_context(st);
          ^~~~~~~~~~~~~~~~~~~~~~
          ffio_init_read_context
libavformat/mov.c:4937:8: warning: assignment to 'MOVStreamContext *' {aka 'struct MOVStreamContext *'} from 'int' makes pointer from integer without a cast [-Wint-conversion]
     sc = mov_get_stream_context(st);
        ^
cc1: some warnings being treated as errors
make: *** [ffbuild/common.mak:81: libavformat/mov.o] Error 1
make: *** Waiting for unfinished jobs....
libavformat/matroskaenc.c: In function 'mkv_write_trailer':
libavformat/matroskaenc.c:3302:79: warning: '%012.9f' directive output may be truncated writing between 12 and 320 bytes into a region of size between 8 and 14 [-Wformat-truncation=]
                 snprintf(duration_string, sizeof(duration_string), '%02d:%02d:%012.9f',
                                                                               ^~~~~~~
libavformat/matroskaenc.c:3302:17: note: 'snprintf' output between 19 and 333 bytes into a destination of size 20
                 snprintf(duration_string, sizeof(duration_string), '%02d:%02d:%012.9f',
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                          (int) duration_sec / 3600, ((int) duration_sec / 60) % 60,
                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                          fmod(duration_sec, 60));
                          ~~~~~~~~~~~~~~~~~~~~~~~