libavformat/dashenc.c: In function 'flush_init_segment': libavformat/dashenc.c:601: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:296, from libavformat/dashenc.c:30: /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:1592: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:296, from libavformat/dashenc.c:30: /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:495: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:296, from libavformat/dashenc.c:30: /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:1968: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:296, from libavformat/dashenc.c:30: /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:495: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:495: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:296, from libavformat/dashenc.c:30: /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:2265: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:296, from libavformat/dashenc.c:30: /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/flvenc.c:51:29: error: 'FLV_CODECID_AV1' undeclared here (not in a function); did you mean 'FLV_CODECID_AAC'? { AV_CODEC_ID_AV1, FLV_CODECID_AV1 }, ^~~~~~~~~~~~~~~ FLV_CODECID_AAC libavformat/flvenc.c: In function 'flv_write_codec_header': libavformat/flvenc.c:557:17: error: implicit declaration of function 'ff_isom_write_av1c'; did you mean 'ff_isom_write_avcc'? [-Werror=implicit-function-declaration] ff_isom_write_av1c(pb, par->extradata, par->extradata_size, 1); ^~~~~~~~~~~~~~~~~~ ff_isom_write_avcc cc1: some warnings being treated as errors make: *** [libavformat/flvenc.o] Error 1 make: *** Waiting for unfinished jobs....