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:549: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:541: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/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); ^~~~~~ In file included from /usr/include/stdio.h:862:0, from libavformat/avio.h:30, from libavformat/vorbiscomment.c:22: /usr/include/x86_64-linux-gnu/bits/stdio2.h:64:10: note: '__builtin___snprintf_chk' output between 4 and 11 bytes into a destination of size 4 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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] In file included from /usr/include/stdio.h:862:0, from libavformat/avio.h:30, from libavformat/vorbiscomment.c:22: /usr/include/x86_64-linux-gnu/bits/stdio2.h:64:10: note: '__builtin___snprintf_chk' output between 13 and 21 bytes into a destination of size 13 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from libavcodec/aacdec.c:260:0: libavcodec/aacdec_template.c: In function 'sniff_channel_order': libavcodec/aacdec_template.c:320:47: warning: array subscript is above array bounds [-Warray-bounds] ff_aac_channel_map[layer][pos - 1][j+1] == AV_CHAN_NONE) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ libavcodec/aacdec_template.c:320:47: warning: array subscript is above array bounds [-Warray-bounds] ff_aac_channel_map[layer][pos - 1][j+1] == AV_CHAN_NONE) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ In file included from libavcodec/aacdec_fixed.c:452:0: libavcodec/aacdec_template.c: In function 'sniff_channel_order': libavcodec/aacdec_template.c:320:47: warning: array subscript is above array bounds [-Warray-bounds] ff_aac_channel_map[layer][pos - 1][j+1] == AV_CHAN_NONE) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ libavcodec/aacdec_template.c:320:47: warning: array subscript is above array bounds [-Warray-bounds] ff_aac_channel_map[layer][pos - 1][j+1] == AV_CHAN_NONE) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ libavcodec/dvenc.c: In function 'dv_encode_video_segment': libavcodec/dvenc.c:817:81: warning: array subscript is above array bounds [-Warray-bounds] for (a2 = a + 1; b->next[k] >= mb_area_start[a2 + 1]; a2++) ~~~~~~~~~~~~~^~~~~~~~ libavcodec/dvenc.c:817:81: warning: array subscript is above array bounds [-Warray-bounds] libavcodec/h264_slice.c: In function 'get_pixel_format': libavcodec/h264_slice.c:867:5: warning: 'CONFIG_H264_AMFDEC_HWACCEL' is not defined, evaluates to 0 [-Wundef] #if CONFIG_H264_AMFDEC_HWACCEL ^~~~~~~~~~~~~~~~~~~~~~~~~~ libavcodec/h264dec.c:1140:5: warning: 'CONFIG_H264_AMFDEC_HWACCEL' is not defined, evaluates to 0 [-Wundef] #if CONFIG_H264_AMFDEC_HWACCEL ^~~~~~~~~~~~~~~~~~~~~~~~~~ libavcodec/mobiclip.c: In function 'add_coefficients': libavcodec/mobiclip.c:468:24: warning: array subscript is above array bounds [-Warray-bounds] int a = mat[x * size + y]; ~~~^~~~~~~~~~~~~~ libavcodec/mobiclip.c:472:16: warning: array subscript is above array bounds [-Warray-bounds] mat[x * size + y] = b; ~~~^~~~~~~~~~~~~~ libavcodec/mobiclip.c:468:24: warning: array subscript is above array bounds [-Warray-bounds] int a = mat[x * size + y]; ~~~^~~~~~~~~~~~~~ libavcodec/mobiclip.c:472:16: warning: array subscript is above array bounds [-Warray-bounds] mat[x * size + y] = b; ~~~^~~~~~~~~~~~~~ libavcodec/mobiclip.c:468:24: warning: array subscript is above array bounds [-Warray-bounds] int a = mat[x * size + y]; ~~~^~~~~~~~~~~~~~ libavcodec/mobiclip.c:472:16: warning: array subscript is above array bounds [-Warray-bounds] mat[x * size + y] = b; ~~~^~~~~~~~~~~~~~ libavcodec/mobiclip.c:468:24: warning: array subscript is above array bounds [-Warray-bounds] int a = mat[x * size + y]; ~~~^~~~~~~~~~~~~~ libavcodec/mobiclip.c:472:16: warning: array subscript is above array bounds [-Warray-bounds] mat[x * size + y] = b; ~~~^~~~~~~~~~~~~~ libavcodec/mobiclip.c:468:24: warning: array subscript is above array bounds [-Warray-bounds] int a = mat[x * size + y]; ~~~^~~~~~~~~~~~~~ libavcodec/mobiclip.c:472:16: warning: array subscript is above array bounds [-Warray-bounds] mat[x * size + y] = b; ~~~^~~~~~~~~~~~~~ libavcodec/mobiclip.c:468:24: warning: array subscript is above array bounds [-Warray-bounds] int a = mat[x * size + y]; ~~~^~~~~~~~~~~~~~ libavcodec/mobiclip.c:472:16: warning: array subscript is above array bounds [-Warray-bounds] mat[x * size + y] = b; ~~~^~~~~~~~~~~~~~ libavcodec/mobiclip.c:468:24: warning: array subscript is above array bounds [-Warray-bounds] int a = mat[x * size + y]; ~~~^~~~~~~~~~~~~~ libavcodec/mobiclip.c:472:16: warning: array subscript is above array bounds [-Warray-bounds] mat[x * size + y] = b; ~~~^~~~~~~~~~~~~~ libavcodec/mobiclip.c:468:24: warning: array subscript is above array bounds [-Warray-bounds] int a = mat[x * size + y]; ~~~^~~~~~~~~~~~~~ libavcodec/mobiclip.c:472:16: warning: array subscript is above array bounds [-Warray-bounds] mat[x * size + y] = b; ~~~^~~~~~~~~~~~~~ libavcodec/vvc/vvc_ps.c: In function 'ff_vvc_decode_frame_ps': libavcodec/vvc/vvc_ps.c:658:37: warning: array subscript is above array bounds [-Warray-bounds] while (sample >= lmcs->pivot[i + 1] && i <= lmcs->max_bin_idx) ~~~~~~~~~~~^~~~~~~ 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', ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:862:0, from libavutil/timecode.c:29: /usr/include/x86_64-linux-gnu/bits/stdio2.h:64:10: note: '__builtin___snprintf_chk' output between 11 and 32 bytes into a destination of size 23 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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 fftools/ffplay_renderer.h:22, from fftools/ffplay_renderer.c:23: /usr/include/SDL2/SDL_config.h:186:0: warning: 'HAVE_PTHREAD_SETNAME_NP' redefined #define HAVE_PTHREAD_SETNAME_NP 1 In file included from fftools/ffplay_renderer.c:22:0: ./config.h:340:0: note: this is the location of the previous definition #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 fftools/ffplay.c:57: /usr/include/SDL2/SDL_config.h:186:0: warning: 'HAVE_PTHREAD_SETNAME_NP' redefined #define HAVE_PTHREAD_SETNAME_NP 1 In file included from fftools/ffplay.c:26:0: ./config.h:340:0: note: this is the location of the previous definition #define HAVE_PTHREAD_SETNAME_NP 0 libavfilter/libavfilter.a(allfilters.o):(.data.rel.ro+0xb08): undefined reference to `ff_vf_scale_amf_hq' libavcodec/libavcodec.a(allcodecs.o):(.data.rel.ro+0x15b0): undefined reference to `ff_av1_amf_decoder' libavcodec/libavcodec.a(allcodecs.o):(.data.rel.ro+0x15b8): undefined reference to `ff_h264_amf_decoder' libavcodec/libavcodec.a(allcodecs.o):(.data.rel.ro+0x15c0): undefined reference to `ff_hevc_amf_decoder' collect2: error: ld returned 1 exit status make: *** [ffmpeg_g] Error 1 make: *** Waiting for unfinished jobs.... libavfilter/libavfilter.a(allfilters.o):(.data.rel.ro+0xb08): undefined reference to `ff_vf_scale_amf_hq' libavcodec/libavcodec.a(allcodecs.o):(.data.rel.ro+0x15b0): undefined reference to `ff_av1_amf_decoder' libavcodec/libavcodec.a(allcodecs.o):(.data.rel.ro+0x15b8): undefined reference to `ff_h264_amf_decoder' libavcodec/libavcodec.a(allcodecs.o):(.data.rel.ro+0x15c0): undefined reference to `ff_hevc_amf_decoder' collect2: error: ld returned 1 exit status make: *** [ffplay_g] Error 1 libavfilter/libavfilter.a(allfilters.o):(.data.rel.ro+0xb08): undefined reference to `ff_vf_scale_amf_hq' libavcodec/libavcodec.a(allcodecs.o):(.data.rel.ro+0x15b0): undefined reference to `ff_av1_amf_decoder' libavcodec/libavcodec.a(allcodecs.o):(.data.rel.ro+0x15b8): undefined reference to `ff_h264_amf_decoder' libavcodec/libavcodec.a(allcodecs.o):(.data.rel.ro+0x15c0): undefined reference to `ff_hevc_amf_decoder' collect2: error: ld returned 1 exit status make: *** [ffprobe_g] Error 1