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:1581:30: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4085 [-Wformat-truncation=] 'Transport: %s ', ^~ transport); ~~~~~~~~~ libavformat/rtsp.c:1580:9: note: 'snprintf' output between 14 and 4109 bytes into a destination of size 4096 snprintf(cmd, sizeof(cmd), ^~~~~~~~~~~~~~~~~~~~~~~~~~ 'Transport: %s ', ~~~~~~~~~~~~~~~~~~~~ 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); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ libavformat/rtsp.c: In function 'ff_rtsp_connect': libavformat/rtsp.c:1581:30: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4085 [-Wformat-truncation=] 'Transport: %s ', ^~ transport); ~~~~~~~~~ libavformat/rtsp.c:1580:9: note: 'snprintf' output between 14 and 4109 bytes into a destination of size 4096 snprintf(cmd, sizeof(cmd), ^~~~~~~~~~~~~~~~~~~~~~~~~~ 'Transport: %s ', ~~~~~~~~~~~~~~~~~~~~ transport); ~~~~~~~~~~ libavcodec/exif.c: In function 'ff_exif_decode_ifd': libavcodec/exif.c:103:43: warning: '%04X' directive output may be truncated writing between 4 and 8 bytes into a region of size 5 [-Wformat-truncation=] snprintf(buf, sizeof(buf), '0x%04X', id); ^~~~ libavcodec/exif.c:103:40: note: directive argument in the range [1, 4294967295] snprintf(buf, sizeof(buf), '0x%04X', id); ^~~~~~~~ libavcodec/exif.c:103:13: note: 'snprintf' output between 7 and 11 bytes into a destination of size 7 snprintf(buf, sizeof(buf), '0x%04X', id); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ libavutil/timecode.c: In function 'av_timecode_make_string': libavutil/timecode.c:123:60: warning: '%0*d' directive output may be truncated writing between 1 and 10 bytes into a region of size between 2 and 14 [-Wformat-truncation=] snprintf(buf, AV_TIMECODE_STR_SIZE, '%s%02d:%02d:%02d%c%0*d', ^~~~ libavutil/timecode.c:123:41: note: directive argument in the range [0, 2147483647] snprintf(buf, AV_TIMECODE_STR_SIZE, '%s%02d:%02d:%02d%c%0*d', ^~~~~~~~~~~~~~~~~~~~~~~~ libavutil/timecode.c:123:5: note: 'snprintf' output between 11 and 32 bytes into a destination of size 23 snprintf(buf, AV_TIMECODE_STR_SIZE, '%s%02d:%02d:%02d%c%0*d', ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ neg ? '-' : '', ~~~~~~~~~~~~~~~ hh, mm, ss, drop ? ';' : ':', ff_len, ff); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fftools/ffmpeg.c: In function 'transcode_subtitles': fftools/ffmpeg.c:2428:5: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] int rendered = 0; // Variable for text to bitmap support ^~~ fftools/ffmpeg.c:2440:21: error: implicit declaration of function 'render_avsub_ass' [-Werror=implicit-function-declaration] render_avsub_ass(ist->dec_ctx->ass_context, &subtitle); ^~~~~~~~~~~~~~~~ At top level: fftools/ffmpeg.c:2332:13: warning: 'print_subtitle' defined but not used [-Wunused-function] static void print_subtitle(AVSubtitle sub) ^~~~~~~~~~~~~~ fftools/ffmpeg_opt.c: In function 'add_input_streams': fftools/ffmpeg_opt.c:115:115: warning: array subscript 2 is above array bounds of 'const char * const[2]' [-Warray-bounds] av_strlcatf(namestr, sizeof(namestr), '-%s%s', opt_name_##name[i], opt_name_##name[i+1] ? (opt_name_##name[i+2] ? ', ' : ' or ') : ''); ~~~~~~~~~~~~~~~^~~~~ fftools/ffmpeg_opt.c:134:8: note: in expansion of macro 'WARN_MULTIPLE_OPT_USAGE' WARN_MULTIPLE_OPT_USAGE(name, type, so, st); ^~~~~~~~~~~~~~~~~~~~~~~ fftools/ffmpeg_opt.c:817:9: note: in expansion of macro 'MATCH_PER_STREAM_OPT' MATCH_PER_STREAM_OPT(ts_scale, dbl, ist->ts_scale, ic, st); ^~~~~~~~~~~~~~~~~~~~ fftools/ffmpeg_opt.c:115:115: warning: array subscript 2 is above array bounds of 'const char * const[2]' [-Warray-bounds] av_strlcatf(namestr, sizeof(namestr), '-%s%s', opt_name_##name[i], opt_name_##name[i+1] ? (opt_name_##name[i+2] ? ', ' : ' or ') : ''); ~~~~~~~~~~~~~~~^~~~~ fftools/ffmpeg_opt.c:134:8: note: in expansion of macro 'WARN_MULTIPLE_OPT_USAGE' WARN_MULTIPLE_OPT_USAGE(name, type, so, st); ^~~~~~~~~~~~~~~~~~~~~~~ fftools/ffmpeg_opt.c:820:9: note: in expansion of macro 'MATCH_PER_STREAM_OPT' MATCH_PER_STREAM_OPT(autorotate, i, ist->autorotate, ic, st); ^~~~~~~~~~~~~~~~~~~~ fftools/ffmpeg_opt.c:115:115: warning: array subscript 2 is above array bounds of 'const char * const[2]' [-Warray-bounds] av_strlcatf(namestr, sizeof(namestr), '-%s%s', opt_name_##name[i], opt_name_##name[i+1] ? (opt_name_##name[i+2] ? ', ' : ' or ') : ''); ~~~~~~~~~~~~~~~^~~~~ fftools/ffmpeg_opt.c:134:8: note: in expansion of macro 'WARN_MULTIPLE_OPT_USAGE' WARN_MULTIPLE_OPT_USAGE(name, type, so, st); ^~~~~~~~~~~~~~~~~~~~~~~ fftools/ffmpeg_opt.c:834:9: note: in expansion of macro 'MATCH_PER_STREAM_OPT' MATCH_PER_STREAM_OPT(reinit_filters, i, ist->reinit_filters, ic, st); ^~~~~~~~~~~~~~~~~~~~ fftools/ffmpeg_opt.c:115:115: warning: array subscript 2 is above array bounds of 'const char * const[2]' [-Warray-bounds] av_strlcatf(namestr, sizeof(namestr), '-%s%s', opt_name_##name[i], opt_name_##name[i+1] ? (opt_name_##name[i+2] ? ', ' : ' or ') : ''); ~~~~~~~~~~~~~~~^~~~~ fftools/ffmpeg_opt.c:134:8: note: in expansion of macro 'WARN_MULTIPLE_OPT_USAGE' WARN_MULTIPLE_OPT_USAGE(name, type, so, st); ^~~~~~~~~~~~~~~~~~~~~~~ fftools/ffmpeg_opt.c:836:9: note: in expansion of macro 'MATCH_PER_STREAM_OPT' MATCH_PER_STREAM_OPT(discard, str, discard_str, ic, st); ^~~~~~~~~~~~~~~~~~~~ fftools/ffmpeg_opt.c:115:115: warning: array subscript 2 is above array bounds of 'const char * const[2]' [-Warray-bounds] av_strlcatf(namestr, sizeof(namestr), '-%s%s', opt_name_##name[i], opt_name_##name[i+1] ? (opt_name_##name[i+2] ? ', ' : ' or ') : ''); ~~~~~~~~~~~~~~~^~~~~ fftools/ffmpeg_opt.c:134:8: note: in expansion of macro 'WARN_MULTIPLE_OPT_USAGE' WARN_MULTIPLE_OPT_USAGE(name, type, so, st); ^~~~~~~~~~~~~~~~~~~~~~~ fftools/ffmpeg_opt.c:973:13: note: in expansion of macro 'MATCH_PER_STREAM_OPT' MATCH_PER_STREAM_OPT(fix_sub_duration, i, ist->fix_sub_duration, ic, st); ^~~~~~~~~~~~~~~~~~~~ fftools/ffmpeg_opt.c:115:115: warning: array subscript 2 is above array bounds of 'const char * const[2]' [-Warray-bounds] av_strlcatf(namestr, sizeof(namestr), '-%s%s', opt_name_##name[i], opt_name_##name[i+1] ? (opt_name_##name[i+2] ? ', ' : ' or ') : ''); ~~~~~~~~~~~~~~~^~~~~ fftools/ffmpeg_opt.c:134:8: note: in expansion of macro 'WARN_MULTIPLE_OPT_USAGE' WARN_MULTIPLE_OPT_USAGE(name, type, so, st); ^~~~~~~~~~~~~~~~~~~~~~~ fftools/ffmpeg_opt.c:974:13: note: in expansion of macro 'MATCH_PER_STREAM_OPT' MATCH_PER_STREAM_OPT(canvas_sizes, str, canvas_size, ic, st); ^~~~~~~~~~~~~~~~~~~~ fftools/ffmpeg_opt.c:115:115: warning: array subscript 2 is above array bounds of 'const char * const[2]' [-Warray-bounds] av_strlcatf(namestr, sizeof(namestr), '-%s%s', opt_name_##name[i], opt_name_##name[i+1] ? (opt_name_##name[i+2] ? ', ' : ' or ') : ''); ~~~~~~~~~~~~~~~^~~~~ fftools/ffmpeg_opt.c:134:8: note: in expansion of macro 'WARN_MULTIPLE_OPT_USAGE' WARN_MULTIPLE_OPT_USAGE(name, type, so, st); ^~~~~~~~~~~~~~~~~~~~~~~ fftools/ffmpeg_opt.c:965:13: note: in expansion of macro 'MATCH_PER_STREAM_OPT' MATCH_PER_STREAM_OPT(guess_layout_max, i, ist->guess_layout_max, ic, st); ^~~~~~~~~~~~~~~~~~~~ fftools/ffmpeg_opt.c:115:115: warning: array subscript 2 is above array bounds of 'const char * const[2]' [-Warray-bounds] av_strlcatf(namestr, sizeof(namestr), '-%s%s', opt_name_##name[i], opt_name_##name[i+1] ? (opt_name_##name[i+2] ? ', ' : ' or ') : ''); ~~~~~~~~~~~~~~~^~~~~ fftools/ffmpeg_opt.c:134:8: note: in expansion of macro 'WARN_MULTIPLE_OPT_USAGE' WARN_MULTIPLE_OPT_USAGE(name, type, so, st); ^~~~~~~~~~~~~~~~~~~~~~~ fftools/ffmpeg_opt.c:885:13: note: in expansion of macro 'MATCH_PER_STREAM_OPT' MATCH_PER_STREAM_OPT(frame_rates, str, framerate, ic, st); ^~~~~~~~~~~~~~~~~~~~ fftools/ffmpeg_opt.c:115:115: warning: array subscript 2 is above array bounds of 'const char * const[2]' [-Warray-bounds] av_strlcatf(namestr, sizeof(namestr), '-%s%s', opt_name_##name[i], opt_name_##name[i+1] ? (opt_name_##name[i+2] ? ', ' : ' or ') : ''); ~~~~~~~~~~~~~~~^~~~~ fftools/ffmpeg_opt.c:134:8: note: in expansion of macro 'WARN_MULTIPLE_OPT_USAGE' WARN_MULTIPLE_OPT_USAGE(name, type, so, st); ^~~~~~~~~~~~~~~~~~~~~~~ fftools/ffmpeg_opt.c:894:13: note: in expansion of macro 'MATCH_PER_STREAM_OPT' MATCH_PER_STREAM_OPT(top_field_first, i, ist->top_field_first, ic, st); ^~~~~~~~~~~~~~~~~~~~ fftools/ffmpeg_opt.c:115:115: warning: array subscript 2 is above array bounds of 'const char * const[2]' [-Warray-bounds] av_strlcatf(namestr, sizeof(namestr), '-%s%s', opt_name_##name[i], opt_name_##name[i+1] ? (opt_name_##name[i+2] ? ', ' : ' or ') : ''); ~~~~~~~~~~~~~~~^~~~~ fftools/ffmpeg_opt.c:134:8: note: in expansion of macro 'WARN_MULTIPLE_OPT_USAGE' WARN_MULTIPLE_OPT_USAGE(name, type, so, st); ^~~~~~~~~~~~~~~~~~~~~~~ fftools/ffmpeg_opt.c:896:13: note: in expansion of macro 'MATCH_PER_STREAM_OPT' MATCH_PER_STREAM_OPT(hwaccels, str, hwaccel, ic, st); ^~~~~~~~~~~~~~~~~~~~ fftools/ffmpeg_opt.c:115:115: warning: array subscript 2 is above array bounds of 'const char * const[2]' [-Warray-bounds] av_strlcatf(namestr, sizeof(namestr), '-%s%s', opt_name_##name[i], opt_name_##name[i+1] ? (opt_name_##name[i+2] ? ', ' : ' or ') : ''); ~~~~~~~~~~~~~~~^~~~~ fftools/ffmpeg_opt.c:134:8: note: in expansion of macro 'WARN_MULTIPLE_OPT_USAGE' WARN_MULTIPLE_OPT_USAGE(name, type, so, st); ^~~~~~~~~~~~~~~~~~~~~~~ fftools/ffmpeg_opt.c:897:13: note: in expansion of macro 'MATCH_PER_STREAM_OPT' MATCH_PER_STREAM_OPT(hwaccel_output_formats, str, ^~~~~~~~~~~~~~~~~~~~ fftools/ffmpeg_opt.c:115:115: warning: array subscript 2 is above array bounds of 'const char * const[2]' [-Warray-bounds] av_strlcatf(namestr, sizeof(namestr), '-%s%s', opt_name_##name[i], opt_name_##name[i+1] ? (opt_name_##name[i+2] ? ', ' : ' or ') : ''); ~~~~~~~~~~~~~~~^~~~~ fftools/ffmpeg_opt.c:134:8: note: in expansion of macro 'WARN_MULTIPLE_OPT_USAGE' WARN_MULTIPLE_OPT_USAGE(name, type, so, st); ^~~~~~~~~~~~~~~~~~~~~~~ fftools/ffmpeg_opt.c:953:13: note: in expansion of macro 'MATCH_PER_STREAM_OPT' MATCH_PER_STREAM_OPT(hwaccel_devices, str, hwaccel_device, ic, st); ^~~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors make: *** [ffbuild/common.mak:78: fftools/ffmpeg.o] Error 1 make: *** Waiting for unfinished jobs....