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:1588: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:1964: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:2261: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: In function 'write_metadata': libavformat/flvenc.c:455:36: warning: passing argument 2 of 'write_user_metadata_tag' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] write_user_metadata_tag(s, tag, pb, &metadata_count); ^~~ libavformat/flvenc.c:333:12: note: expected 'AVDictionaryEntry * {aka struct AVDictionaryEntry *}' but argument is of type 'const AVDictionaryEntry * {aka const struct AVDictionaryEntry *}' static int write_user_metadata_tag(AVFormatContext *s, AVDictionaryEntry *tag, AVIOContext *pb, int *metadata_count) ^~~~~~~~~~~~~~~~~~~~~~~ libavformat/flvenc.c:457:36: warning: passing argument 2 of 'write_user_metadata_tag' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] write_user_metadata_tag(s, tag, pb, &metadata_count); ^~~ libavformat/flvenc.c:333:12: note: expected 'AVDictionaryEntry * {aka struct AVDictionaryEntry *}' but argument is of type 'const AVDictionaryEntry * {aka const struct AVDictionaryEntry *}' static int write_user_metadata_tag(AVFormatContext *s, AVDictionaryEntry *tag, AVIOContext *pb, int *metadata_count) ^~~~~~~~~~~~~~~~~~~~~~~ libavformat/flvenc.c: In function 'flv_write_packet': libavformat/flvenc.c:949:32: warning: statement with no effect [-Wunused-value] (flv->meta_period == 2 && par->codec_type == AVMEDIA_TYPE_VIDEO )) { ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ libavformat/flvenc.c:949:74: error: expected ';' before ')' token (flv->meta_period == 2 && par->codec_type == AVMEDIA_TYPE_VIDEO )) { ^ libavformat/flvenc.c:949:74: error: expected statement before ')' token libavformat/flvenc.c:1100:12: error: invalid storage class for function 'flv_check_bitstream' static int flv_check_bitstream(AVFormatContext *s, AVStream *st, ^~~~~~~~~~~~~~~~~~~ libavformat/flvenc.c:1100:1: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] static int flv_check_bitstream(AVFormatContext *s, AVStream *st, ^~~~~~ libavformat/flvenc.c:1112:13: error: invalid storage class for function 'flv_deinit' static void flv_deinit(AVFormatContext *s) ^~~~~~~~~~ libavformat/flvenc.c:1173:1: error: expected declaration or statement at end of input }; ^ libavformat/flvenc.c:1153:22: warning: unused variable 'ff_flv_muxer' [-Wunused-variable] const AVOutputFormat ff_flv_muxer = { ^~~~~~~~~~~~ At top level: libavformat/flvenc.c:889:12: warning: 'flv_write_packet' defined but not used [-Wunused-function] static int flv_write_packet(AVFormatContext *s, AVPacket *pkt) ^~~~~~~~~~~~~~~~ make: *** [libavformat/flvenc.o] Error 1 make: *** Waiting for unfinished jobs....