In file included from ./libavutil/common.h:88:0,
                 from ./libavutil/avutil.h:301,
                 from ./libavutil/opt.h:31,
                 from libavdevice/sdl2.c:31:
./config.h:340: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: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);
                                                 ^~
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: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);
                                                 ^~
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: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);
                                                 ^~~~~~
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/dump.c: In function 'dump_stream_group':
libavformat/dump.c:688:26: error: 'st' undeclared (first use in this function); did you mean 'stg'?
         dump_disposition(st->disposition, log_level);
                          ^~
                          stg
libavformat/dump.c:688:26: note: each undeclared identifier is reported only once for each function it appears in
libavformat/dump.c:688:43: error: 'log_level' undeclared (first use in this function)
         dump_disposition(st->disposition, log_level);
                                           ^~~~~~~~~
make: *** [libavformat/dump.o] Error 1
make: *** Waiting for unfinished jobs....
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);
                                                               ^~
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: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);
                                              ^~~~~~~~~~~~~~~~~
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: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,
                                                           ^~
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 ());
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~