src/libavformat/dashenc.c: In function ‘dash_init’: src/libavformat/dashenc.c:1577:65: warning: ‘-stream’ directive output may be truncated writing 7 bytes into a region of size between 1 and 1024 [-Wformat-truncation=] 1577 | snprintf(os->initfile, sizeof(os->initfile), "%s-stream%d.%s", basename, i, os->format_name); | ^~~~~~~ src/libavformat/dashenc.c:1577:62: note: directive argument in the range [0, 2147483647] 1577 | snprintf(os->initfile, sizeof(os->initfile), "%s-stream%d.%s", basename, i, os->format_name); | ^~~~~~~~~~~~~~~~ src/libavformat/dashenc.c:1577:17: note: ‘snprintf’ output 10 or more bytes (assuming 1042) into a destination of size 1024 1577 | snprintf(os->initfile, sizeof(os->initfile), "%s-stream%d.%s", basename, i, os->format_name); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/libavformat/dashenc.c:1581:49: warning: ‘%s’ directive output may be truncated writing up to 1023 bytes into a region of size between 1 and 1024 [-Wformat-truncation=] 1581 | snprintf(filename, sizeof(filename), "%s%s", c->dirname, os->initfile); | ^~ src/libavformat/dashenc.c:1581:9: note: ‘snprintf’ output between 1 and 2047 bytes into a destination of size 1024 1581 | snprintf(filename, sizeof(filename), "%s%s", c->dirname, os->initfile); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/libavformat/dashenc.c: In function ‘flush_init_segment’: src/libavformat/dashenc.c:594:49: warning: ‘%s’ directive output may be truncated writing up to 1023 bytes into a region of size between 1 and 1024 [-Wformat-truncation=] 594 | snprintf(filename, sizeof(filename), "%s%s", c->dirname, os->initfile); | ^~ src/libavformat/dashenc.c:594:9: note: ‘snprintf’ output between 1 and 2047 bytes into a destination of size 1024 594 | snprintf(filename, sizeof(filename), "%s%s", c->dirname, os->initfile); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/libavformat/dashenc.c: In function ‘write_hls_media_playlist’: src/libavformat/dashenc.c:488:49: warning: ‘media_’ directive output may be truncated writing 6 bytes into a region of size between 1 and 1024 [-Wformat-truncation=] 488 | snprintf(playlist_name, string_size, "%smedia_%d.m3u8", base_url, id); | ^~~~~~ In function ‘get_hls_playlist_name’, inlined from ‘write_hls_media_playlist’ at src/libavformat/dashenc.c:524:5: src/libavformat/dashenc.c:488:9: note: ‘snprintf’ output between 13 and 1046 bytes into a destination of size 1024 488 | snprintf(playlist_name, string_size, "%smedia_%d.m3u8", base_url, id); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/libavformat/dashenc.c: In function ‘dash_flush’: src/libavformat/dashenc.c:1957:63: warning: ‘%s’ directive output may be truncated writing up to 1023 bytes into a region of size between 1 and 1024 [-Wformat-truncation=] 1957 | snprintf(os->full_path, sizeof(os->full_path), "%s%s", c->dirname, os->initfile); | ^~ src/libavformat/dashenc.c:1957:13: note: ‘snprintf’ output between 1 and 2047 bytes into a destination of size 1024 1957 | snprintf(os->full_path, sizeof(os->full_path), "%s%s", c->dirname, os->initfile); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/libavformat/dashenc.c: In function ‘dash_write_trailer’: src/libavformat/dashenc.c:488:49: warning: ‘media_’ directive output may be truncated writing 6 bytes into a region of size between 1 and 1024 [-Wformat-truncation=] 488 | snprintf(playlist_name, string_size, "%smedia_%d.m3u8", base_url, id); | ^~~~~~ In function ‘get_hls_playlist_name’, inlined from ‘dash_write_trailer’ at src/libavformat/dashenc.c:2320:17: src/libavformat/dashenc.c:488:46: note: directive argument in the range [0, 2147483647] 488 | snprintf(playlist_name, string_size, "%smedia_%d.m3u8", base_url, id); | ^~~~~~~~~~~~~~~~~ src/libavformat/dashenc.c:488:9: note: ‘snprintf’ output between 13 and 1045 bytes into a destination of size 1024 488 | snprintf(playlist_name, string_size, "%smedia_%d.m3u8", base_url, id); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/libavformat/dashenc.c: In function ‘dash_write_packet’: src/libavformat/dashenc.c:2254:59: warning: ‘%s’ directive output may be truncated writing up to 1023 bytes into a region of size between 1 and 1024 [-Wformat-truncation=] 2254 | snprintf(os->full_path, sizeof(os->full_path), "%s%s", c->dirname, | ^~ src/libavformat/dashenc.c:2254:9: note: ‘snprintf’ output between 1 and 2047 bytes into a destination of size 1024 2254 | snprintf(os->full_path, sizeof(os->full_path), "%s%s", c->dirname, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2255 | os->filename); | ~~~~~~~~~~~~~ src/libavformat/img2enc.c: In function ‘write_packet’: src/libavformat/img2enc.c:183:55: warning: ‘.tmp’ directive output may be truncated writing 4 bytes into a region of size between 1 and 1024 [-Wformat-truncation=] 183 | snprintf(img->tmp[i], sizeof(img->tmp[i]), "%s.tmp", filename); | ^~~~ src/libavformat/img2enc.c:183:9: note: ‘snprintf’ output between 5 and 1028 bytes into a destination of size 1024 183 | snprintf(img->tmp[i], sizeof(img->tmp[i]), "%s.tmp", filename); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/libavformat/matroskaenc.c: In function ‘mkv_write_trailer’: src/libavformat/matroskaenc.c:3341:79: warning: ‘%012.9f’ directive output may be truncated writing between 12 and 320 bytes into a region of size between 8 and 14 [-Wformat-truncation=] 3341 | snprintf(duration_string, sizeof(duration_string), "%02d:%02d:%012.9f", | ^~~~~~~ src/libavformat/matroskaenc.c:3341:17: note: ‘snprintf’ output between 19 and 333 bytes into a destination of size 20 3341 | snprintf(duration_string, sizeof(duration_string), "%02d:%02d:%012.9f", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3342 | (int) duration_sec / 3600, ((int) duration_sec / 60) % 60, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3343 | fmod(duration_sec, 60)); | ~~~~~~~~~~~~~~~~~~~~~~~ src/libavformat/rtmpproto.c: In function ‘send_invoke_response’: src/libavformat/rtmpproto.c:2001:51: warning: ‘ is now published’ directive output may be truncated writing 17 bytes into a region of size between 1 and 128 [-Wformat-truncation=] 2001 | snprintf(statusmsg, sizeof(statusmsg), "%s is now published", filename); | ^~~~~~~~~~~~~~~~~ src/libavformat/rtmpproto.c:2001:9: note: ‘snprintf’ output between 18 and 145 bytes into a destination of size 128 2001 | snprintf(statusmsg, sizeof(statusmsg), "%s is now published", filename); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/libavformat/smoothstreamingenc.c: In function ‘ism_flush’: src/libavformat/smoothstreamingenc.c:512:49: warning: ‘/temp’ directive output may be truncated writing 5 bytes into a region of size between 1 and 1024 [-Wformat-truncation=] 512 | snprintf(filename, sizeof(filename), "%s/temp", os->dirname); | ^~~~~ src/libavformat/smoothstreamingenc.c:512:9: note: ‘snprintf’ output between 6 and 1029 bytes into a destination of size 1024 512 | snprintf(filename, sizeof(filename), "%s/temp", os->dirname); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/libavformat/smoothstreamingenc.c:540:53: warning: ‘/temp’ directive output may be truncated writing 5 bytes into a region of size between 1 and 1024 [-Wformat-truncation=] 540 | snprintf(filename, sizeof(filename), "%s/temp", os->dirname); | ^~~~~ src/libavformat/smoothstreamingenc.c:540:13: note: ‘snprintf’ output between 6 and 1029 bytes into a destination of size 1024 540 | snprintf(filename, sizeof(filename), "%s/temp", os->dirname); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/libavformat/smoothstreamingenc.c:547:63: warning: ‘/FragmentInfo(’ directive output may be truncated writing 14 bytes into a region of size between 1 and 1024 [-Wformat-truncation=] 547 | snprintf(header_filename, sizeof(header_filename), "%s/FragmentInfo(%s=%"PRIu64")", os->dirname, os->stream_type_tag, start_ts); | ^~~~~~~~~~~~~~ src/libavformat/smoothstreamingenc.c:547:9: note: ‘snprintf’ output 18 or more bytes (assuming 1041) into a destination of size 1024 547 | snprintf(header_filename, sizeof(header_filename), "%s/FragmentInfo(%s=%"PRIu64")", os->dirname, os->stream_type_tag, start_ts); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/libavformat/smoothstreamingenc.c:548:63: warning: ‘/Fragments(’ directive output may be truncated writing 11 bytes into a region of size between 1 and 1024 [-Wformat-truncation=] 548 | snprintf(target_filename, sizeof(target_filename), "%s/Fragments(%s=%"PRIu64")", os->dirname, os->stream_type_tag, start_ts); | ^~~~~~~~~~~ src/libavformat/smoothstreamingenc.c:548:9: note: ‘snprintf’ output 15 or more bytes (assuming 1038) into a destination of size 1024 548 | snprintf(target_filename, sizeof(target_filename), "%s/Fragments(%s=%"PRIu64")", os->dirname, os->stream_type_tag, start_ts); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/libavformat/rtsp.c: In function ‘ff_rtsp_make_setup_request’: src/libavformat/rtsp.c:1592:30: warning: ‘%s’ directive output may be truncated writing up to 4095 bytes into a region of size 4085 [-Wformat-truncation=] 1592 | "Transport: %s\r\n", | ^~ 1593 | transport); | ~~~~~~~~~ src/libavformat/rtsp.c:1591:9: note: ‘snprintf’ output between 14 and 4109 bytes into a destination of size 4096 1591 | snprintf(cmd, sizeof(cmd), | ^~~~~~~~~~~~~~~~~~~~~~~~~~ 1592 | "Transport: %s\r\n", | ~~~~~~~~~~~~~~~~~~~~ 1593 | transport); | ~~~~~~~~~~ src/libavformat/vorbiscomment.c: In function ‘ff_vorbiscomment_write’: src/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=] 103 | snprintf(chapter_number, sizeof(chapter_number), "%03d", i); | ^~~~ src/libavformat/vorbiscomment.c:103:62: note: directive argument in the range [0, 2147483647] 103 | snprintf(chapter_number, sizeof(chapter_number), "%03d", i); | ^~~~~~ src/libavformat/vorbiscomment.c:103:13: note: ‘snprintf’ output between 4 and 11 bytes into a destination of size 4 103 | snprintf(chapter_number, sizeof(chapter_number), "%03d", i); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/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=] 104 | snprintf(chapter_time, sizeof(chapter_time), "%02d:%02d:%02d.%03d", h, m, s, ms); | ^~~~ src/libavformat/vorbiscomment.c:104:58: note: directive argument in the range [-59, 59] 104 | snprintf(chapter_time, sizeof(chapter_time), "%02d:%02d:%02d.%03d", h, m, s, ms); | ^~~~~~~~~~~~~~~~~~~~~ src/libavformat/vorbiscomment.c:104:58: note: directive argument in the range [-999, 999] src/libavformat/vorbiscomment.c:104:13: note: ‘snprintf’ output between 13 and 21 bytes into a destination of size 13 104 | snprintf(chapter_time, sizeof(chapter_time), "%02d:%02d:%02d.%03d", h, m, s, ms); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/libavfilter/af_afftfilt.c: In function ‘filter_channel’: src/libavfilter/af_afftfilt.c:297:9: warning: ‘memmove’ specified bound between 18446744065119617024 and 18446744073709551608 exceeds maximum object size 9223372036854775807 [-Wstringop-overflow=] 297 | memmove(buf, buf + s->hop_size, window_size * sizeof(float)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function ‘generate_min_phase_kernel’, inlined from ‘generate_kernel’ at src/libavfilter/af_firequalizer.c:691:13: src/libavfilter/af_firequalizer.c:559:5: warning: ‘memset’ specified bound between 18446744069414584316 and 18446744073709551608 exceeds maximum object size 9223372036854775807 [-Wstringop-overflow=] 559 | memset(s->cepstrum_buf + cepstrum_len/2 + 1, 0, (cepstrum_len/2 - 1) * sizeof(*s->cepstrum_buf)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/libavcodec/aac/aacdec.c: In function ‘decode_close’: src/libavcodec/aac/aacdec.c:1107:9: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 1107 | AACUSACConfig *usac = &oc->usac; | ^~~~~~~~~~~~~ src/libavcodec/aac_ac3_parser.c: In function ‘ff_aac_ac3_parse’: src/libavcodec/aac_ac3_parser.c:151:17: warning: unused variable ‘profile’ [-Wunused-variable] 151 | int profile; | ^~~~~~~ In file included from src/libavcodec/ac3dec_float.c:38: In function ‘spx_strategy’, inlined from ‘decode_audio_block’ at src/libavcodec/ac3dec.c:1142:24: In file included from src/libavcodec/aacsbr.c:383: src/libavcodec/aacsbr_template.c: In function ‘read_sbr_grid’: src/libavcodec/ac3dec.c:854:37: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 854 | s->channel_uses_spx[ch] = get_bits1(bc); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ In file included from src/libavcodec/ac3dec_float.c:34: src/libavcodec/ac3dec.h: In function ‘decode_audio_block’: src/libavcodec/ac3dec.h:144:13: note: at offset 7 into destination object ‘channel_uses_spx’ of size 7 144 | uint8_t channel_uses_spx[AC3_MAX_CHANNELS]; ///< channel uses spectral extension (chinspx) | ^~~~~~~~~~~~~~~~ src/libavcodec/aacsbr_template.c:729:57: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 729 | ch_data->t_env[ch_data->bs_num_env - 1 - i] = | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 730 | ch_data->t_env[ch_data->bs_num_env - i] - 2 * get_bits(gb, 2) - 2; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/libavcodec/aacsbr.c:31: src/libavcodec/sbr.h:106:24: note: at offset [2147483649, 4294967295] into destination object ‘t_env’ of size 9 106 | uint8_t t_env[9]; | ^~~~~ src/libavcodec/aacsbr_template.c:729:57: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 729 | ch_data->t_env[ch_data->bs_num_env - 1 - i] = | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 730 | ch_data->t_env[ch_data->bs_num_env - i] - 2 * get_bits(gb, 2) - 2; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/libavcodec/sbr.h:106:24: note: at offset [2147483649, 4294967294] into destination object ‘t_env’ of size 9 106 | uint8_t t_env[9]; | ^~~~~ src/libavcodec/aacsbr_template.c:729:57: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 729 | ch_data->t_env[ch_data->bs_num_env - 1 - i] = | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 730 | ch_data->t_env[ch_data->bs_num_env - i] - 2 * get_bits(gb, 2) - 2; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/libavcodec/sbr.h:106:24: note: at offset [2147483649, 4294967293] into destination object ‘t_env’ of size 9 106 | uint8_t t_env[9]; | ^~~~~ src/libavcodec/aacsbr_template.c:729:57: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 729 | ch_data->t_env[ch_data->bs_num_env - 1 - i] = | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 730 | ch_data->t_env[ch_data->bs_num_env - i] - 2 * get_bits(gb, 2) - 2; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/libavcodec/sbr.h:106:24: note: at offset [2147483649, 4294967292] into destination object ‘t_env’ of size 9 106 | uint8_t t_env[9]; | ^~~~~ In file included from src/libavcodec/ac3dec_fixed.c:156: In function ‘spx_strategy’, inlined from ‘decode_audio_block’ at src/libavcodec/ac3dec.c:1142:24: src/libavcodec/ac3dec.c:854:37: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 854 | s->channel_uses_spx[ch] = get_bits1(bc); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ In file included from src/libavcodec/ac3dec_fixed.c:51: src/libavcodec/ac3dec.h: In function ‘decode_audio_block’: src/libavcodec/ac3dec.h:144:13: note: at offset 7 into destination object ‘channel_uses_spx’ of size 7 144 | uint8_t channel_uses_spx[AC3_MAX_CHANNELS]; ///< channel uses spectral extension (chinspx) | ^~~~~~~~~~~~~~~~ In file included from src/libavcodec/aacsbr_fixed.c:610: src/libavcodec/aacsbr_template.c: In function ‘read_sbr_grid’: src/libavcodec/aacsbr_template.c:729:57: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 729 | ch_data->t_env[ch_data->bs_num_env - 1 - i] = | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 730 | ch_data->t_env[ch_data->bs_num_env - i] - 2 * get_bits(gb, 2) - 2; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/libavcodec/aacsbr_fixed.c:60: src/libavcodec/sbr.h:106:24: note: at offset [-2147483647, -1] into destination object ‘t_env’ of size 9 106 | uint8_t t_env[9]; | ^~~~~ src/libavcodec/aacsbr_template.c:729:57: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 729 | ch_data->t_env[ch_data->bs_num_env - 1 - i] = | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 730 | ch_data->t_env[ch_data->bs_num_env - i] - 2 * get_bits(gb, 2) - 2; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/libavcodec/sbr.h:106:24: note: at offset [-2147483647, -2] into destination object ‘t_env’ of size 9 106 | uint8_t t_env[9]; | ^~~~~ src/libavcodec/aacsbr_template.c:729:57: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 729 | ch_data->t_env[ch_data->bs_num_env - 1 - i] = | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 730 | ch_data->t_env[ch_data->bs_num_env - i] - 2 * get_bits(gb, 2) - 2; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/libavcodec/sbr.h:106:24: note: at offset [-2147483647, -3] into destination object ‘t_env’ of size 9 106 | uint8_t t_env[9]; | ^~~~~ src/libavcodec/aacsbr_template.c:729:57: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 729 | ch_data->t_env[ch_data->bs_num_env - 1 - i] = | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 730 | ch_data->t_env[ch_data->bs_num_env - i] - 2 * get_bits(gb, 2) - 2; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/libavcodec/sbr.h:106:24: note: at offset [-2147483647, -4] into destination object ‘t_env’ of size 9 106 | uint8_t t_env[9]; | ^~~~~ src/libavcodec/hevc/hevcdec.c: In function ‘pred_weight_table’: src/libavcodec/hevc/hevcdec.c:199:32: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 199 | luma_weight_l0_flag[i] = get_bits1(gb); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ src/libavcodec/hevc/hevcdec.c:177:13: note: at offset 16 into destination object ‘luma_weight_l0_flag’ of size 16 177 | uint8_t luma_weight_l0_flag[16]; | ^~~~~~~~~~~~~~~~~~~ src/libavcodec/hevc/hevcdec.c:207:38: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 207 | chroma_weight_l0_flag[i] = get_bits1(gb); | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ src/libavcodec/hevc/hevcdec.c:178:13: note: at offset 16 into destination object ‘chroma_weight_l0_flag’ of size 16 178 | uint8_t chroma_weight_l0_flag[16]; | ^~~~~~~~~~~~~~~~~~~~~ src/libavcodec/hevc/hevcdec.c:243:36: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 243 | luma_weight_l1_flag[i] = get_bits1(gb); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ src/libavcodec/hevc/hevcdec.c:179:13: note: at offset 16 into destination object ‘luma_weight_l1_flag’ of size 16 179 | uint8_t luma_weight_l1_flag[16]; | ^~~~~~~~~~~~~~~~~~~ src/libavcodec/hevc/hevcdec.c:251:42: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 251 | chroma_weight_l1_flag[i] = get_bits1(gb); | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ src/libavcodec/hevc/hevcdec.c:180:13: note: at offset 16 into destination object ‘chroma_weight_l1_flag’ of size 16 180 | uint8_t chroma_weight_l1_flag[16]; | ^~~~~~~~~~~~~~~~~~~~~ src/libavcodec/jrevdct.c:215:28: warning: argument 1 of type ‘int16_t[64]’ {aka ‘short int[64]’} with mismatched bound [-Warray-parameter=] 215 | void ff_j_rev_dct(DCTBLOCK data) | ~~~~~~~~~^~~~ In file included from src/libavcodec/jrevdct.c:70: src/libavcodec/dct.h:30:28: note: previously declared as ‘int16_t *’ {aka ‘short int *’} 30 | void ff_j_rev_dct(int16_t *data); | ~~~~~~~~~^~~~ src/libavcodec/jrevdct.c:953:29: warning: argument 1 of type ‘int16_t[64]’ {aka ‘short int[64]’} with mismatched bound [-Warray-parameter=] 953 | void ff_j_rev_dct4(DCTBLOCK data) | ~~~~~~~~~^~~~ src/libavcodec/dct.h:31:29: note: previously declared as ‘int16_t *’ {aka ‘short int *’} 31 | void ff_j_rev_dct4(int16_t *data); | ~~~~~~~~~^~~~ src/libavcodec/jrevdct.c:1140:29: warning: argument 1 of type ‘int16_t[64]’ {aka ‘short int[64]’} with mismatched bound [-Warray-parameter=] 1140 | void ff_j_rev_dct2(DCTBLOCK data){ | ~~~~~~~~~^~~~ src/libavcodec/dct.h:32:29: note: previously declared as ‘int16_t *’ {aka ‘short int *’} 32 | void ff_j_rev_dct2(int16_t *data); | ~~~~~~~~~^~~~ src/libavcodec/jrevdct.c:1155:29: warning: argument 1 of type ‘int16_t[64]’ {aka ‘short int[64]’} with mismatched bound [-Warray-parameter=] 1155 | void ff_j_rev_dct1(DCTBLOCK data){ | ~~~~~~~~~^~~~ src/libavcodec/dct.h:33:29: note: previously declared as ‘int16_t *’ {aka ‘short int *’} 33 | void ff_j_rev_dct1(int16_t *data); | ~~~~~~~~~^~~~ src/libavcodec/pcm.c: In function ‘pcm_decode_init’: src/libavcodec/pcm.c:287:5: warning: ‘sample_fmts’ is deprecated [-Wdeprecated-declarations] 287 | avctx->sample_fmt = avctx->codec->sample_fmts[0]; | ^~~~~ In file included from src/libavcodec/avcodec.h:41, from src/libavcodec/pcm.c:34: src/libavcodec/codec.h:219:32: note: declared here 219 | const enum AVSampleFormat *sample_fmts; ///< @deprecated use avcodec_get_supported_config() | ^~~~~~~~~~~ src/libavcodec/sbcenc.c: In function ‘sbc_encode_init’: src/libavcodec/sbcenc.c:263:5: warning: ‘supported_samplerates’ is deprecated [-Wdeprecated-declarations] 263 | for (int i = 0; avctx->codec->supported_samplerates[i]; i++) | ^~~ In file included from src/libavcodec/avcodec.h:41, from src/libavcodec/sbcenc.c:36: src/libavcodec/codec.h:217:16: note: declared here 217 | const int *supported_samplerates; ///< @deprecated use avcodec_get_supported_config() | ^~~~~~~~~~~~~~~~~~~~~ src/libavcodec/sbcenc.c:264:9: warning: ‘supported_samplerates’ is deprecated [-Wdeprecated-declarations] 264 | if (avctx->sample_rate == avctx->codec->supported_samplerates[i]) | ^~ src/libavcodec/codec.h:217:16: note: declared here 217 | const int *supported_samplerates; ///< @deprecated use avcodec_get_supported_config() | ^~~~~~~~~~~~~~~~~~~~~ src/libavcodec/sga.c: In function ‘decode_palmapdata’: src/libavcodec/sga.c:257:9: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable] 257 | int ret; | ^~~ src/libavcodec/sga.c: In function ‘decode_tiledata’: src/libavcodec/sga.c:282:9: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable] 282 | int ret; | ^~~ In function ‘add_level’, inlined from ‘add_level’ at src/libavcodec/vlc.c:457:17, inlined from ‘add_level’ at src/libavcodec/vlc.c:457:17, inlined from ‘add_level’ at src/libavcodec/vlc.c:457:17, inlined from ‘vlc_multi_gen’ at src/libavcodec/vlc.c:508:5, inlined from ‘ff_vlc_init_multi_from_lengths’ at src/libavcodec/vlc.c:564:11: src/libavcodec/vlc.c:443:36: warning: array subscript 3 is above array bounds of ‘uint16_t[3]’ {aka ‘short unsigned int[3]’} [-Warray-bounds=] 443 | if (is16bit) info.val16[curlevel] = sym; | ~~~~~~~~~~^~~~~~~~~~ In file included from src/libavcodec/vlc.c:39: src/libavcodec/vlc.h: In function ‘ff_vlc_init_multi_from_lengths’: src/libavcodec/vlc.h:45:18: note: while referencing ‘val16’ 45 | uint16_t val16[VLC_MULTI_MAX_SYMBOLS / 2]; | ^~~~~ In function ‘add_level’, inlined from ‘add_level’ at src/libavcodec/vlc.c:457:17, inlined from ‘add_level’ at src/libavcodec/vlc.c:457:17, inlined from ‘add_level’ at src/libavcodec/vlc.c:457:17, inlined from ‘add_level’ at src/libavcodec/vlc.c:457:17, inlined from ‘vlc_multi_gen’ at src/libavcodec/vlc.c:508:5, inlined from ‘ff_vlc_init_multi_from_lengths’ at src/libavcodec/vlc.c:564:11: src/libavcodec/vlc.c:443:36: warning: array subscript 4 is above array bounds of ‘uint16_t[3]’ {aka ‘short unsigned int[3]’} [-Warray-bounds=] 443 | if (is16bit) info.val16[curlevel] = sym; | ~~~~~~~~~~^~~~~~~~~~ src/libavcodec/vlc.h: In function ‘ff_vlc_init_multi_from_lengths’: src/libavcodec/vlc.h:45:18: note: while referencing ‘val16’ 45 | uint16_t val16[VLC_MULTI_MAX_SYMBOLS / 2]; | ^~~~~ In function ‘add_level’, inlined from ‘add_level’ at src/libavcodec/vlc.c:457:17, inlined from ‘add_level’ at src/libavcodec/vlc.c:457:17, inlined from ‘add_level’ at src/libavcodec/vlc.c:457:17, inlined from ‘add_level’ at src/libavcodec/vlc.c:457:17, inlined from ‘add_level’ at src/libavcodec/vlc.c:457:17, inlined from ‘vlc_multi_gen’ at src/libavcodec/vlc.c:508:5, inlined from ‘ff_vlc_init_multi_from_lengths’ at src/libavcodec/vlc.c:564:11: src/libavcodec/vlc.c:443:36: warning: array subscript 5 is above array bounds of ‘uint16_t[3]’ {aka ‘short unsigned int[3]’} [-Warray-bounds=] 443 | if (is16bit) info.val16[curlevel] = sym; | ~~~~~~~~~~^~~~~~~~~~ src/libavcodec/vlc.h: In function ‘ff_vlc_init_multi_from_lengths’: src/libavcodec/vlc.h:45:18: note: while referencing ‘val16’ 45 | uint16_t val16[VLC_MULTI_MAX_SYMBOLS / 2]; | ^~~~~ src/libavcodec/wmadec.c: In function ‘wma_decode_block’: src/libavcodec/wmadec.c:519:30: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 519 | s->channel_coded[ch] = a; | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from src/libavcodec/wmadec.c:45: src/libavcodec/wma.h:112:13: note: at offset 2 into destination object ‘channel_coded’ of size 2 112 | uint8_t channel_coded[MAX_CHANNELS]; ///< true if channel is coded | ^~~~~~~~~~~~~