In file included from ./libavutil/common.h:48:0,
                 from ./libavutil/avutil.h:301,
                 from ./libavutil/opt.h:31,
                 from libavdevice/sdl2.c:31:
./config.h:339:0: warning: 'HAVE_PTHREAD_SETNAME_NP' redefined
 #define HAVE_PTHREAD_SETNAME_NP 0
 
In file included from /usr/include/SDL2/SDL_stdinc.h:31:0,
                 from /usr/include/SDL2/SDL_main.h:25,
                 from /usr/include/SDL2/SDL.h:32,
                 from libavdevice/sdl2.c:26:
/usr/include/SDL2/SDL_config.h:186:0: note: this is the location of the previous definition
 #define HAVE_PTHREAD_SETNAME_NP 1
 
libavformat/dashenc.c: In function 'flush_init_segment':
libavformat/dashenc.c:594: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);
                                                 ^~
In file included from /usr/include/stdio.h:862:0,
                 from ./libavutil/common.h:38,
                 from ./libavutil/avutil.h:301,
                 from libavformat/dashenc.c:31:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:64:10: note: '__builtin___snprintf_chk' output between 1 and 2047 bytes into a destination of size 1024
   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        __bos (__s), __fmt, __va_arg_pack ());
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libavformat/dashenc.c: In function 'dash_init':
libavformat/dashenc.c:1581: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);
                                                 ^~
In file included from /usr/include/stdio.h:862:0,
                 from ./libavutil/common.h:38,
                 from ./libavutil/avutil.h:301,
                 from libavformat/dashenc.c:31:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:64:10: note: '__builtin___snprintf_chk' output between 1 and 2047 bytes into a destination of size 1024
   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        __bos (__s), __fmt, __va_arg_pack ());
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libavformat/dashenc.c: In function 'write_hls_media_playlist':
libavformat/dashenc.c:488: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);
                                                 ^~~~~~
In file included from /usr/include/stdio.h:862:0,
                 from ./libavutil/common.h:38,
                 from ./libavutil/avutil.h:301,
                 from libavformat/dashenc.c:31:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:64:10: note: '__builtin___snprintf_chk' output between 13 and 1046 bytes into a destination of size 1024
   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        __bos (__s), __fmt, __va_arg_pack ());
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libavformat/dashenc.c: In function 'dash_flush':
libavformat/dashenc.c:1957: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);
                                                               ^~
In file included from /usr/include/stdio.h:862:0,
                 from ./libavutil/common.h:38,
                 from ./libavutil/avutil.h:301,
                 from libavformat/dashenc.c:31:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:64:10: note: '__builtin___snprintf_chk' output between 1 and 2047 bytes into a destination of size 1024
   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        __bos (__s), __fmt, __va_arg_pack ());
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libavformat/dashenc.c: In function 'dash_write_trailer':
libavformat/dashenc.c:488: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:488:46: note: directive argument in the range [0, 2147483647]
         snprintf(playlist_name, string_size, '%smedia_%d.m3u8', base_url, id);
                                              ^~~~~~~~~~~~~~~~~
In file included from /usr/include/stdio.h:862:0,
                 from ./libavutil/common.h:38,
                 from ./libavutil/avutil.h:301,
                 from libavformat/dashenc.c:31:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:64:10: note: '__builtin___snprintf_chk' output between 13 and 1045 bytes into a destination of size 1024
   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        __bos (__s), __fmt, __va_arg_pack ());
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libavformat/dashenc.c: In function 'dash_write_packet':
libavformat/dashenc.c:2254: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,
                                                           ^~
In file included from /usr/include/stdio.h:862:0,
                 from ./libavutil/common.h:38,
                 from ./libavutil/avutil.h:301,
                 from libavformat/dashenc.c:31:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:64:10: note: '__builtin___snprintf_chk' output between 1 and 2047 bytes into a destination of size 1024
   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        __bos (__s), __fmt, __va_arg_pack ());
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libavformat/mlvdec.c: In function 'read_header':
libavformat/mlvdec.c:364:63: warning: '__builtin___snprintf_chk' output may be truncated before the last format character [-Wformat-truncation=]
             snprintf(filename + strlen(filename) - 2, 3, '%02d', i);
                                                               ^
In file included from /usr/include/stdio.h:862:0,
                 from libavformat/avformat.h:310,
                 from libavformat/mlvdec.c:33:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:64:10: note: '__builtin___snprintf_chk' output between 3 and 4 bytes into a destination of size 3
   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        __bos (__s), __fmt, __va_arg_pack ());
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libavformat/matroskaenc.c: In function 'mkv_write_trailer':
libavformat/matroskaenc.c:3341: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',
                                                                               ^~~~~~~
In file included from /usr/include/stdio.h:862:0,
                 from libavformat/avio.h:30,
                 from libavformat/av1.h:26,
                 from libavformat/matroskaenc.c:26:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:64:10: note: '__builtin___snprintf_chk' output between 19 and 333 bytes into a destination of size 20
   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        __bos (__s), __fmt, __va_arg_pack ());
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libavformat/movenc.c: In function 'mov_flush_fragment':
libavformat/movenc.c:1218:8: warning: assuming signed overflow does not occur when assuming that (X - c) > X is always false [-Wstrict-overflow]
     if (cluster_idx >= track->entry)
        ^
libavformat/smoothstreamingenc.c: In function 'ism_flush':
libavformat/smoothstreamingenc.c:510:49: warning: '/temp' directive output may be truncated writing 5 bytes into a region of size between 1 and 1024 [-Wformat-truncation=]
         snprintf(filename, sizeof(filename), '%s/temp', os->dirname);
                                                 ^~~~~
In file included from /usr/include/stdio.h:862:0,
                 from libavformat/avformat.h:310,
                 from libavformat/smoothstreamingenc.c:27:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:64:10: note: '__builtin___snprintf_chk' output between 6 and 1029 bytes into a destination of size 1024
   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        __bos (__s), __fmt, __va_arg_pack ());
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libavformat/smoothstreamingenc.c:545:63: warning: '/FragmentInfo(' directive output may be truncated writing 14 bytes into a region of size between 1 and 1024 [-Wformat-truncation=]
         snprintf(header_filename, sizeof(header_filename), '%s/FragmentInfo(%s=%'PRIu64')', os->dirname, os->stream_type_tag, start_ts);
                                                               ^~~~~~~~~~~~~~
In file included from /usr/include/stdio.h:862:0,
                 from libavformat/avformat.h:310,
                 from libavformat/smoothstreamingenc.c:27:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:64:10: note: '__builtin___snprintf_chk' output 18 or more bytes (assuming 1041) into a destination of size 1024
   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        __bos (__s), __fmt, __va_arg_pack ());
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libavformat/smoothstreamingenc.c:546:63: warning: '/Fragments(' directive output may be truncated writing 11 bytes into a region of size between 1 and 1024 [-Wformat-truncation=]
         snprintf(target_filename, sizeof(target_filename), '%s/Fragments(%s=%'PRIu64')', os->dirname, os->stream_type_tag, start_ts);
                                                               ^~~~~~~~~~~
In file included from /usr/include/stdio.h:862:0,
                 from libavformat/avformat.h:310,
                 from libavformat/smoothstreamingenc.c:27:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:64:10: note: '__builtin___snprintf_chk' output 15 or more bytes (assuming 1038) into a destination of size 1024
   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        __bos (__s), __fmt, __va_arg_pack ());
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libavformat/smoothstreamingenc.c:538:53: warning: '/temp' directive output may be truncated writing 5 bytes into a region of size between 1 and 1024 [-Wformat-truncation=]
             snprintf(filename, sizeof(filename), '%s/temp', os->dirname);
                                                     ^~~~~
In file included from /usr/include/stdio.h:862:0,
                 from libavformat/avformat.h:310,
                 from libavformat/smoothstreamingenc.c:27:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:64:10: note: '__builtin___snprintf_chk' output between 6 and 1029 bytes into a destination of size 1024
   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        __bos (__s), __fmt, __va_arg_pack ());
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libavformat/utils.c:283:5: error: conflicting types for 'av_get_frame_filename2'
 int av_get_frame_filename2(char *buf, int buf_size, const char *path, int64_t number, int flags)
     ^~~~~~~~~~~~~~~~~~~~~~
In file included from libavformat/utils.c:34:0:
libavformat/avformat.h:2913:5: note: previous declaration of 'av_get_frame_filename2' was here
 int av_get_frame_filename2(char *buf, int buf_size,
     ^~~~~~~~~~~~~~~~~~~~~~
libavformat/utils.c: In function 'av_get_frame_filename2':
libavformat/utils.c:316:50: warning: format '%d' expects argument of type 'int', but argument 5 has type 'int64_t {aka long int}' [-Wformat=]
                 snprintf(buf1, sizeof(buf1), '%0*d', nd, number);
                                               ~~~^
                                               %0*ld
libavformat/utils.c: At top level:
libavformat/utils.c:341:5: error: conflicting types for 'av_get_frame_filename'
 int av_get_frame_filename(char *buf, int buf_size, const char *path, int64_t number)
     ^~~~~~~~~~~~~~~~~~~~~
In file included from libavformat/utils.c:34:0:
libavformat/avformat.h:2916:5: note: previous declaration of 'av_get_frame_filename' was here
 int av_get_frame_filename(char *buf, int buf_size,
     ^~~~~~~~~~~~~~~~~~~~~
make: *** [libavformat/utils.o] Error 1
make: *** Waiting for unfinished jobs....