In file included from ./libavutil/common.h:48, from ./libavutil/avutil.h:301, from ./libavutil/opt.h:31, from libavdevice/sdl2.c:31: ./config.h:342: warning: 'HAVE_PTHREAD_SETNAME_NP' redefined #define HAVE_PTHREAD_SETNAME_NP 0 In file included from /usr/include/SDL2/SDL_stdinc.h:31, 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:188: note: this is the location of the previous definition #define HAVE_PTHREAD_SETNAME_NP 1 libavformat/dashenc.c: In function 'dash_init': libavformat/dashenc.c:1577: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:1577: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:1577: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: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); ^~ libavformat/dashenc.c:1581: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: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); ^~ libavformat/dashenc.c:594: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: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: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: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); ^~ libavformat/dashenc.c:1957: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: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); ^~~~~~~~~~~~~~~~~ libavformat/dashenc.c:488: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: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, ^~ libavformat/dashenc.c:2254: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/mov.c: In function 'mov_read_clap': libavformat/mov.c:1244:12: error: implicit declaration of function 'heif_cur_item'; did you mean 'get_curr_item'? [-Werror=implicit-function-declaration] item = heif_cur_item(c); ^~~~~~~~~~~~~ get_curr_item libavformat/mov.c:1244:10: warning: assignment to 'HEIFItem *' {aka 'struct HEIFItem *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] item = heif_cur_item(c); ^ libavformat/mlvdec.c: In function 'read_header': libavformat/mlvdec.c:364: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:364: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 'mov_read_imir': libavformat/mov.c:9007:10: warning: assignment to 'HEIFItem *' {aka 'struct HEIFItem *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] item = heif_cur_item(c); ^ 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', ^~~~~~~ libavformat/matroskaenc.c:3341: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)); ~~~~~~~~~~~~~~~~~~~~~~~ libavformat/rtmpproto.c: In function 'send_invoke_response': libavformat/rtmpproto.c:2001:51: warning: ' is now published' directive output may be truncated writing 17 bytes into a region of size between 1 and 128 [-Wformat-truncation=] snprintf(statusmsg, sizeof(statusmsg), '%s is now published', filename); ^~~~~~~~~~~~~~~~~ libavformat/rtmpproto.c:2001:9: note: 'snprintf' output between 18 and 145 bytes into a destination of size 128 snprintf(statusmsg, sizeof(statusmsg), '%s is now published', filename); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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); ^~~~~ libavformat/smoothstreamingenc.c:510:9: note: 'snprintf' output between 6 and 1029 bytes into a destination of size 1024 snprintf(filename, sizeof(filename), '%s/temp', os->dirname); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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); ^~~~~ libavformat/smoothstreamingenc.c:538:13: note: 'snprintf' output between 6 and 1029 bytes into a destination of size 1024 snprintf(filename, sizeof(filename), '%s/temp', os->dirname); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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); ^~~~~~~~~~~~~~ libavformat/smoothstreamingenc.c:545:9: note: 'snprintf' output 18 or more bytes (assuming 1041) into a destination of size 1024 snprintf(header_filename, sizeof(header_filename), '%s/FragmentInfo(%s=%'PRIu64')', os->dirname, os->stream_type_tag, start_ts); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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); ^~~~~~~~~~~ libavformat/smoothstreamingenc.c:546:9: note: 'snprintf' output 15 or more bytes (assuming 1038) into a destination of size 1024 snprintf(target_filename, sizeof(target_filename), '%s/Fragments(%s=%'PRIu64')', os->dirname, os->stream_type_tag, start_ts); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ libavformat/rtsp.c: In function 'ff_rtsp_make_setup_request': libavformat/rtsp.c:1592:30: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4085 [-Wformat-truncation=] 'Transport: %s\r\n', ^~ transport); ~~~~~~~~~ libavformat/rtsp.c:1591:9: note: 'snprintf' output between 14 and 4109 bytes into a destination of size 4096 snprintf(cmd, sizeof(cmd), ^~~~~~~~~~~~~~~~~~~~~~~~~~ 'Transport: %s\r\n', ~~~~~~~~~~~~~~~~~~~~ transport); ~~~~~~~~~~ libavformat/rtsp.c: In function 'ff_rtsp_connect': libavformat/rtsp.c:1592:30: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4085 [-Wformat-truncation=] 'Transport: %s\r\n', ^~ transport); ~~~~~~~~~ libavformat/rtsp.c:1591:9: note: 'snprintf' output between 14 and 4109 bytes into a destination of size 4096 snprintf(cmd, sizeof(cmd), ^~~~~~~~~~~~~~~~~~~~~~~~~~ 'Transport: %s\r\n', ~~~~~~~~~~~~~~~~~~~~ transport); ~~~~~~~~~~ libavformat/vorbiscomment.c: In function 'ff_vorbiscomment_write': libavformat/vorbiscomment.c:103:63: warning: '%03d' directive output may be truncated writing between 3 and 10 bytes into a region of size 4 [-Wformat-truncation=] snprintf(chapter_number, sizeof(chapter_number), '%03d', i); ^~~~ libavformat/vorbiscomment.c:103:62: note: directive argument in the range [0, 2147483647] snprintf(chapter_number, sizeof(chapter_number), '%03d', i); ^~~~~~ libavformat/vorbiscomment.c:103:13: note: 'snprintf' output between 4 and 11 bytes into a destination of size 4 snprintf(chapter_number, sizeof(chapter_number), '%03d', i); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ libavformat/vorbiscomment.c:104:69: warning: '%02d' directive output may be truncated writing between 2 and 3 bytes into a region of size between 1 and 7 [-Wformat-truncation=] snprintf(chapter_time, sizeof(chapter_time), '%02d:%02d:%02d.%03d', h, m, s, ms); ^~~~ libavformat/vorbiscomment.c:104:58: note: directive argument in the range [-59, 59] snprintf(chapter_time, sizeof(chapter_time), '%02d:%02d:%02d.%03d', h, m, s, ms); ^~~~~~~~~~~~~~~~~~~~~ libavformat/vorbiscomment.c:104:58: note: directive argument in the range [-999, 999] libavformat/vorbiscomment.c:104:13: note: 'snprintf' output between 13 and 21 bytes into a destination of size 13 snprintf(chapter_time, sizeof(chapter_time), '%02d:%02d:%02d.%03d', h, m, s, ms); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors make: *** [ffbuild/common.mak:81: libavformat/mov.o] Error 1 make: *** Waiting for unfinished jobs....