libavformat/dashenc.c: In function 'dash_init': libavformat/dashenc.c:1584: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:1584: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:1584: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: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); ^~ libavformat/dashenc.c:1588: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/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:75: 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:75: 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: *** [ffbuild/common.mak:81: libavformat/flvenc.o] Error 1 make: *** Waiting for unfinished jobs.... 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); ^~ libavformat/dashenc.c:601: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: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: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: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); ^~ libavformat/dashenc.c:1964: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: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); ^~~~~~~~~~~~~~~~~ libavformat/dashenc.c:495: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: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, ^~ libavformat/dashenc.c:2261: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); ~~~~~~~~~~~~~