ffmpeg-7.0.2-6.fc42

List of Findings

Error: COMPILER_WARNING: [#def1]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/common.h:48: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/avutil.h:301: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/opt.h:31: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavdevice/sdl2.c:31: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/config.h:335:9: warning: "HAVE_PTHREAD_SETNAME_NP" redefined
#  335 | #define HAVE_PTHREAD_SETNAME_NP 0
#      |         ^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/SDL2/SDL_config.h:58: included_from: Included from here.
/usr/include/SDL2/SDL_stdinc.h:31: included_from: Included from here.
/usr/include/SDL2/SDL_main.h:25: included_from: Included from here.
/usr/include/SDL2/SDL.h:32: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavdevice/sdl2.c:26: included_from: Included from here.
/usr/include/SDL2/SDL_config-x86_64.h:206:9: note: this is the location of the previous definition
#  206 | #define HAVE_PTHREAD_SETNAME_NP 1
#      |         ^~~~~~~~~~~~~~~~~~~~~~~
#  333|   #define HAVE_PTHREAD_CANCEL 1
#  334|   #define HAVE_PTHREAD_SET_NAME_NP 0
#  335|-> #define HAVE_PTHREAD_SETNAME_NP 0
#  336|   #define HAVE_SCHED_GETAFFINITY 1
#  337|   #define HAVE_SECITEMIMPORT 0

Error: COMPILER_WARNING: [#def2]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/common.h:48: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/avutil.h:301: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/opt.h:31: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavdevice/sdl2.c:31: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/config.h:335:9: warning: ‘HAVE_PTHREAD_SETNAME_NP’ redefined
/usr/include/SDL2/SDL_config.h:58: included_from: Included from here.
/usr/include/SDL2/SDL_stdinc.h:31: included_from: Included from here.
/usr/include/SDL2/SDL_main.h:25: included_from: Included from here.
/usr/include/SDL2/SDL.h:32: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavdevice/sdl2.c:26: included_from: Included from here.
/usr/include/SDL2/SDL_config-x86_64.h:206:9: note: this is the location of the previous definition
#  333|   #define HAVE_PTHREAD_CANCEL 1
#  334|   #define HAVE_PTHREAD_SET_NAME_NP 0
#  335|-> #define HAVE_PTHREAD_SETNAME_NP 0
#  336|   #define HAVE_SCHED_GETAFFINITY 1
#  337|   #define HAVE_SECITEMIMPORT 0

Error: GCC_ANALYZER_WARNING (CWE-457): [#def3]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/fftools/ffmpeg_dec.c:1128:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘type’
# 1126|   
# 1127|       if (!dev) {
# 1128|->         av_log(dp, AV_LOG_ERROR, "No device available "
# 1129|                  "for decoder: device type %s needed for codec %s.\n",
# 1130|                  av_hwdevice_get_type_name(type), codec->name);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def4]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/fftools/ffmpeg_demux.c: scope_hint: In function ‘do_send’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/fftools/ffmpeg_demux.c:512:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pkt’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/fftools/ffmpeg_demux.c:26: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/fftools/ffmpeg_demux.c:543:5: note: in expansion of macro ‘av_assert0’
#  510|       int ret;
#  511|   
#  512|->     pkt->stream_index = ds->sch_idx_stream;
#  513|   
#  514|       ret = sch_demux_send(d->sch, d->f.index, pkt, flags);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def5]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/fftools/ffmpeg_enc.c: scope_hint: In function ‘enc_open’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/fftools/ffmpeg_enc.c:201:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘frame’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/fftools/ffmpeg_enc.c:26: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/fftools/ffmpeg_enc.c:185:5: note: in expansion of macro ‘av_assert0’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/fftools/ffmpeg_enc.c:185:5: note: in expansion of macro ‘av_assert0’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/avassert.h:41:11: note: in definition of macro ‘av_assert0’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/fftools/ffmpeg_enc.c:185:5: note: in expansion of macro ‘av_assert0’
#  199|       // the timebase is chosen by filtering code
#  200|       if (ost->type == AVMEDIA_TYPE_AUDIO || ost->type == AVMEDIA_TYPE_VIDEO) {
#  201|->         enc_ctx->time_base      = frame->time_base;
#  202|           enc_ctx->framerate      = fd->frame_rate_filter;
#  203|           ost->st->avg_frame_rate = fd->frame_rate_filter;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def6]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/fftools/ffmpeg_enc.c:208:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘frame’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/avassert.h:41:11: note: in definition of macro ‘av_assert0’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/fftools/ffmpeg_enc.c:185:5: note: in expansion of macro ‘av_assert0’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/fftools/ffmpeg_enc.c:185:5: note: in expansion of macro ‘av_assert0’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/avassert.h:41:11: note: in definition of macro ‘av_assert0’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/fftools/ffmpeg_enc.c:185:5: note: in expansion of macro ‘av_assert0’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/avassert.h:41:11: note: in definition of macro ‘av_assert0’
#  206|       switch (enc_ctx->codec_type) {
#  207|       case AVMEDIA_TYPE_AUDIO:
#  208|->         av_assert0(frame->format != AV_SAMPLE_FMT_NONE &&
#  209|                      frame->sample_rate > 0 &&
#  210|                      frame->ch_layout.nb_channels > 0);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def7]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/fftools/ffmpeg_enc.c:225:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘frame’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/avassert.h:41:11: note: in definition of macro ‘av_assert0’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/fftools/ffmpeg_enc.c:185:5: note: in expansion of macro ‘av_assert0’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/fftools/ffmpeg_enc.c:185:5: note: in expansion of macro ‘av_assert0’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/avassert.h:41:11: note: in definition of macro ‘av_assert0’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/fftools/ffmpeg_enc.c:185:5: note: in expansion of macro ‘av_assert0’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/avassert.h:41:11: note: in definition of macro ‘av_assert0’
#  223|   
#  224|       case AVMEDIA_TYPE_VIDEO: {
#  225|->         av_assert0(frame->format != AV_PIX_FMT_NONE &&
#  226|                      frame->width > 0 &&
#  227|                      frame->height > 0);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def8]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/012v.c: scope_hint: In function ‘zero12v_decode_frame’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/012v.c:133:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘&y_temp’
#  131|               u = x/2 + (uint16_t *)(pic->data[1] + line * pic->linesize[1]);
#  132|               v = x/2 + (uint16_t *)(pic->data[2] + line * pic->linesize[2]);
#  133|->             memcpy(y, y_temp, sizeof(*y) * (width - x));
#  134|               memcpy(u, u_temp, sizeof(*u) * ((width - x + 1) / 2));
#  135|               memcpy(v, v_temp, sizeof(*v) * ((width - x + 1) / 2));

Error: GCC_ANALYZER_WARNING (CWE-457): [#def9]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/4xm.c: scope_hint: In function ‘read_huffman_tables’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/4xm.c:695:25: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘flag[node]’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/4xm.c:29: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/avassert.h:41:11: note: in definition of macro ‘av_assert0’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/4xm.c:846:5: note: in expansion of macro ‘av_assert0’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/4xm.c:32: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:362:23: note: in expansion of macro ‘AV_RN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:389:27: note: in expansion of macro ‘AV_RN32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:421:26: note: in expansion of macro ‘AV_RL’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/4xm.c:848:20: note: in expansion of macro ‘AV_RL32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:362:23: note: in expansion of macro ‘AV_RN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:389:27: note: in expansion of macro ‘AV_RN32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:421:26: note: in expansion of macro ‘AV_RL’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/4xm.c:854:17: note: in expansion of macro ‘AV_RL32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:222:57: note: in definition of macro ‘AV_RN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:389:27: note: in expansion of macro ‘AV_RN32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:421:26: note: in expansion of macro ‘AV_RL’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/4xm.c:788:26: note: in expansion of macro ‘AV_RL32’
#  693|   
#  694|           for (node = j; up[node] != -1; node = up[node]) {
#  695|->             bits += flag[node] << len;
#  696|               len++;
#  697|               if (len > 31)

Error: GCC_ANALYZER_WARNING: [#def10]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/aacenc_ltp.c: scope_hint: In function ‘ff_aac_ltp_insert_new_frame’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/aacenc_ltp.c:66:13: warning[-Wanalyzer-overlapping-buffers]: overlapping buffers passed as arguments to ‘memcpy’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/common.h:40: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/avutil.h:301: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/avcodec.h:32: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/aacenc.h:32: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/aacenc_ltp.h:31: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/aacenc_ltp.c:28: included_from: Included from here.
/usr/include/string.h:43:14: note: the behavior of ‘memcpy’ is undefined for overlapping buffers
#   64|               cur_channel = start_ch + ch;
#   65|               /* New sample + overlap */
#   66|->             memcpy(&sce->ltp_state[0],    &sce->ltp_state[1024], 1024*sizeof(sce->ltp_state[0]));
#   67|               memcpy(&sce->ltp_state[1024], &s->planar_samples[cur_channel][2048], 1024*sizeof(sce->ltp_state[0]));
#   68|               memcpy(&sce->ltp_state[2048], &sce->ret_buf[0], 1024*sizeof(sce->ltp_state[0]));

Error: GCC_ANALYZER_WARNING: [#def11]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/aacenc_ltp.c:68:13: warning[-Wanalyzer-overlapping-buffers]: overlapping buffers passed as arguments to ‘memcpy’
/usr/include/string.h:43:14: note: the behavior of ‘memcpy’ is undefined for overlapping buffers
#   66|               memcpy(&sce->ltp_state[0],    &sce->ltp_state[1024], 1024*sizeof(sce->ltp_state[0]));
#   67|               memcpy(&sce->ltp_state[1024], &s->planar_samples[cur_channel][2048], 1024*sizeof(sce->ltp_state[0]));
#   68|->             memcpy(&sce->ltp_state[2048], &sce->ret_buf[0], 1024*sizeof(sce->ltp_state[0]));
#   69|               sce->ics.ltp.lag = 0;
#   70|           }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def12]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/aacpsy.c: scope_hint: In function ‘psy_lame_window’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/aacpsy.c:929:36: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘energy_subshort[<unknown>]’
#  927|                *       previous block.
#  928|                */
#  929|->             if (p > energy_subshort[i + 1])
#  930|                   p = p / energy_subshort[i + 1];
#  931|               else if (energy_subshort[i + 1] > p * 10.0f)

Error: GCC_ANALYZER_WARNING: [#def13]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/ac3dec_float.c:38: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/ac3dec.c: scope_hint: In function ‘ac3_decode_frame’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/ac3dec.c:1658:17: warning[-Wanalyzer-overlapping-buffers]: overlapping buffers passed as arguments to ‘memcpy’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h: scope_hint: In function ‘ac3_decode_frame’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/ac3dec.c: scope_hint: In function ‘ac3_decode_frame’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/common.h:40: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/mathops.h:28: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/fixed_dsp.h:53: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/ac3dec.h:55: included_from: Included from here.
/usr/include/string.h:43:14: note: the behavior of ‘memcpy’ is undefined for overlapping buffers
# 1656|           if (err)
# 1657|               for (ch = 0; ch < s->out_channels; ch++)
# 1658|->                 memcpy(s->output_buffer[ch + offset] + AC3_BLOCK_SIZE*blk, output[ch], AC3_BLOCK_SIZE*sizeof(SHORTFLOAT));
# 1659|           for (ch = 0; ch < s->out_channels; ch++)
# 1660|               output[ch] = s->outptr[channel_map[ch]];

Error: GCC_ANALYZER_WARNING (CWE-476): [#def14]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/ac3enc.c: scope_hint: In function ‘ac3_apply_rematrixing’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/ac3enc.c:387:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘flags’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/version.h:30: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/log.h:26: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/avassert.h:34: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/ac3enc.c:32: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/macros.h:49:22: note: in definition of macro ‘FFMIN’
#  385|           nb_coefs = FFMIN(block->end_freq[1], block->end_freq[2]);
#  386|           for (bnd = 0; bnd < block->num_rematrixing_bands; bnd++) {
#  387|->             if (flags[bnd]) {
#  388|                   start = ff_ac3_rematrix_band_tab[bnd];
#  389|                   end   = FFMIN(nb_coefs, ff_ac3_rematrix_band_tab[bnd+1]);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def15]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/amfenc.c: scope_hint: In function ‘ff_amf_receive_packet’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/amfenc.c:771:83: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘res_query’
#  769|   
#  770|           if (query_output_data_flag == 0) {
#  771|->             if (res_resubmit == AMF_INPUT_FULL || ctx->delayed_drain || (ctx->eof && res_query != AMF_EOF) || (ctx->hwsurfaces_in_queue >= ctx->hwsurfaces_in_queue_max)) {
#  772|                   block_and_wait = 1;
#  773|                   av_usleep(1000);

Error: GCC_ANALYZER_WARNING: [#def16]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/apedec.c: scope_hint: In function ‘long_filter_high_3800.part.0’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/apedec.c:981:13: warning[-Wanalyzer-overlapping-buffers]: overlapping buffers passed as arguments to ‘memcpy’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/common.h:40: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/avutil.h:301: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/opt.h:31: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/apedec.c:28: included_from: Included from here.
/usr/include/string.h:43:14: note: the behavior of ‘memcpy’ is undefined for overlapping buffers
#  979|           delayp[order - 1] = buffer[i];
#  980|           if (delayp - delay == 256) {
#  981|->             memcpy(delay, delayp, sizeof(*delay)*256);
#  982|               delayp = delay;
#  983|           }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def17]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bfi.c: scope_hint: In function ‘bfi_decode_frame’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bfi.c:146:30: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘offset’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/common.h:42: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bfi.c:29: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/attributes.h:154:26: note: in definition of macro ‘av_uninit’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/attributes.h:154:26: note: in definition of macro ‘av_uninit’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bytestream.h:141:5: note: in expansion of macro ‘av_assert0’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bfi.c: scope_hint: In function ‘bfi_decode_frame’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bytestream.h:99:1: note: in expansion of macro ‘DEF’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bfi.c: scope_hint: In function ‘bfi_decode_frame’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bytestream.h:99:1: note: in expansion of macro ‘DEF’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bfi.c: scope_hint: In function ‘bfi_decode_frame’
#  144|               break;
#  145|           case 1:                // back chain
#  146|->             dst_offset = dst - offset;
#  147|               length    *= 4;     // Convert dwords to bytes.
#  148|               if (dst_offset < bfi->dst)

Error: GCC_ANALYZER_WARNING (CWE-1335): [#def18]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:83:49: warning[-Wanalyzer-shift-count-overflow]: shift by count (‘64’) >= precision of type (‘64’)
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/utvideodec.c: scope_hint: In function ‘bits_read_nz_le’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bytestream.h:141:5: note: in expansion of macro ‘av_assert0’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bytestream.h:141:5: note: in expansion of macro ‘av_assert0’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/utvideodec.c: scope_hint: In function ‘bits_read_nz_le’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bytestream.h:92:1: note: in expansion of macro ‘DEF’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:362:23: note: in expansion of macro ‘AV_RN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:389:27: note: in expansion of macro ‘AV_RN32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:421:26: note: in expansion of macro ‘AV_RL’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bytestream.h:46:12: note: in expansion of macro ‘AV_RL32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bytestream.h:92:1: note: in expansion of macro ‘DEF’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/utvideodec.c: scope_hint: In function ‘bits_read_nz_le’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:98:95: note: in definition of macro ‘init_get_bits8_le’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/utvideodec.c:257:19: note: in expansion of macro ‘init_get_bits8_le’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:29:26: note: in definition of macro ‘BS_JOIN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:31:20: note: in expansion of macro ‘BS_JOIN3’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:140:12: note: in expansion of macro ‘BS_FUNC’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:29:26: note: in definition of macro ‘BS_JOIN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:31:20: note: in expansion of macro ‘BS_JOIN3’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:140:12: note: in expansion of macro ‘BS_FUNC’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h: scope_hint: In function ‘bits_read_nz_le’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:29:26: note: in definition of macro ‘BS_JOIN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:31:20: note: in expansion of macro ‘BS_JOIN3’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:101:19: note: in expansion of macro ‘BS_FUNC’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/utvideodec.c:257:19: note: in expansion of macro ‘init_get_bits8_le’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:29:26: note: in definition of macro ‘BS_JOIN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:31:20: note: in expansion of macro ‘BS_JOIN3’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:140:12: note: in expansion of macro ‘BS_FUNC’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/utvideodec.c: scope_hint: In function ‘bits_read_nz_le’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:98:95: note: in definition of macro ‘init_get_bits8_le’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/utvideodec.c:261:19: note: in expansion of macro ‘init_get_bits8_le’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:29:26: note: in definition of macro ‘BS_JOIN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:31:20: note: in expansion of macro ‘BS_JOIN3’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:140:12: note: in expansion of macro ‘BS_FUNC’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:29:26: note: in definition of macro ‘BS_JOIN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:31:20: note: in expansion of macro ‘BS_JOIN3’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:140:12: note: in expansion of macro ‘BS_FUNC’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h: scope_hint: In function ‘bits_read_nz_le’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:29:26: note: in definition of macro ‘BS_JOIN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:31:20: note: in expansion of macro ‘BS_JOIN3’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:101:19: note: in expansion of macro ‘BS_FUNC’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/utvideodec.c:261:19: note: in expansion of macro ‘init_get_bits8_le’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:29:26: note: in definition of macro ‘BS_JOIN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:31:20: note: in expansion of macro ‘BS_JOIN3’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:140:12: note: in expansion of macro ‘BS_FUNC’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/utvideodec.c: scope_hint: In function ‘bits_read_nz_le’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/utvideodec.c:273:28: note: in expansion of macro ‘get_bits_le’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:29:26: note: in definition of macro ‘BS_JOIN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:31:20: note: in expansion of macro ‘BS_JOIN3’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:238:12: note: in expansion of macro ‘BS_FUNC’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:29:26: note: in definition of macro ‘BS_JOIN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:31:20: note: in expansion of macro ‘BS_JOIN3’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:238:12: note: in expansion of macro ‘BS_FUNC’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h: scope_hint: In function ‘bits_read_nz_le’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:29:26: note: in definition of macro ‘BS_JOIN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:31:20: note: in expansion of macro ‘BS_JOIN3’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:216:24: note: in expansion of macro ‘BS_FUNC’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:29:26: note: in definition of macro ‘BS_JOIN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:31:20: note: in expansion of macro ‘BS_JOIN3’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:225:12: note: in expansion of macro ‘BS_FUNC’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:29:26: note: in definition of macro ‘BS_JOIN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:31:20: note: in expansion of macro ‘BS_JOIN3’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:194:11: note: in expansion of macro ‘BS_FUNC’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/utvideodec.c: scope_hint: In function ‘bits_read_nz_le’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/utvideodec.c:273:28: note: in expansion of macro ‘get_bits_le’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:29:26: note: in definition of macro ‘BS_JOIN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:31:20: note: in expansion of macro ‘BS_JOIN3’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:238:12: note: in expansion of macro ‘BS_FUNC’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/utvideodec.c: scope_hint: In function ‘bits_read_nz_le’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/utvideodec.c:286:32: note: in expansion of macro ‘get_bits_le’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/utvideodec.c:286:32: note: in expansion of macro ‘get_bits_le’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:29:26: note: in definition of macro ‘BS_JOIN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:31:20: note: in expansion of macro ‘BS_JOIN3’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:238:12: note: in expansion of macro ‘BS_FUNC’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:29:26: note: in definition of macro ‘BS_JOIN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:31:20: note: in expansion of macro ‘BS_JOIN3’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:238:12: note: in expansion of macro ‘BS_FUNC’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h: scope_hint: In function ‘bits_read_nz_le’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:29:26: note: in definition of macro ‘BS_JOIN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:31:20: note: in expansion of macro ‘BS_JOIN3’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:216:24: note: in expansion of macro ‘BS_FUNC’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:29:26: note: in definition of macro ‘BS_JOIN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:31:20: note: in expansion of macro ‘BS_JOIN3’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:221:13: note: in expansion of macro ‘BS_FUNC’
#   81|   
#   82|   #ifdef BITSTREAM_TEMPLATE_LE
#   83|->     bc->bits      |= (uint64_t)AV_RL32(bc->ptr) << bc->bits_valid;
#   84|   #else
#   85|       bc->bits      |= (uint64_t)AV_RB32(bc->ptr) << (32 - bc->bits_valid);

Error: GCC_ANALYZER_WARNING (CWE-1335): [#def19]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream.h:193: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h: scope_hint: In function ‘bits_priv_refill_32_be’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:85:49: warning[-Wanalyzer-shift-count-overflow]: shift by count (‘4294967275’) >= precision of type (‘64’)
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bytestream.h:141:5: note: in expansion of macro ‘av_assert0’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bytestream.h:141:5: note: in expansion of macro ‘av_assert0’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/utvideodec.c: scope_hint: In function ‘bits_priv_refill_32_be’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bytestream.h:92:1: note: in expansion of macro ‘DEF’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:362:23: note: in expansion of macro ‘AV_RN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:389:27: note: in expansion of macro ‘AV_RN32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:421:26: note: in expansion of macro ‘AV_RL’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bytestream.h:46:12: note: in expansion of macro ‘AV_RL32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bytestream.h:92:1: note: in expansion of macro ‘DEF’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/utvideodec.c: scope_hint: In function ‘bits_priv_refill_32_be’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:222:57: note: in definition of macro ‘AV_RN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:389:27: note: in expansion of macro ‘AV_RN32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:421:26: note: in expansion of macro ‘AV_RL’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/utvideodec.c:195:28: note: in expansion of macro ‘AV_RL32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:92:29: note: in expansion of macro ‘bits_init’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/utvideodec.c:208:9: note: in expansion of macro ‘init_get_bits’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:29:26: note: in definition of macro ‘BS_JOIN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:31:20: note: in expansion of macro ‘BS_JOIN3’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:101:19: note: in expansion of macro ‘BS_FUNC’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:92:29: note: in expansion of macro ‘bits_init’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/utvideodec.c:208:9: note: in expansion of macro ‘init_get_bits’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/utvideodec.c:212:13: note: in expansion of macro ‘READ_PLANE’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/utvideodec.c:212:13: note: in expansion of macro ‘READ_PLANE’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:79:29: note: in expansion of macro ‘bits_left’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/utvideodec.c:121:56: note: in expansion of macro ‘get_bits_left’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/utvideodec.c:212:13: note: in expansion of macro ‘READ_PLANE’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/utvideodec.c: scope_hint: In function ‘bits_priv_refill_32_be’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/utvideodec.c:212:13: note: in expansion of macro ‘READ_PLANE’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/utvideodec.c:212:13: note: in expansion of macro ‘READ_PLANE’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:96:29: note: in expansion of macro ‘bits_read_vlc_multi’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/utvideodec.c:122:15: note: in expansion of macro ‘get_vlc_multi’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/utvideodec.c:212:13: note: in expansion of macro ‘READ_PLANE’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:29:26: note: in definition of macro ‘BS_JOIN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:31:20: note: in expansion of macro ‘BS_JOIN3’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:536:19: note: in expansion of macro ‘BS_FUNC’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:29:26: note: in definition of macro ‘BS_JOIN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:31:20: note: in expansion of macro ‘BS_JOIN3’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:542:20: note: in expansion of macro ‘BS_FUNC’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:29:26: note: in definition of macro ‘BS_JOIN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:31:20: note: in expansion of macro ‘BS_JOIN3’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:542:20: note: in expansion of macro ‘BS_FUNC’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h: scope_hint: In function ‘bits_priv_refill_32_be’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:29:26: note: in definition of macro ‘BS_JOIN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:31:20: note: in expansion of macro ‘BS_JOIN3’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:336:24: note: in expansion of macro ‘BS_FUNC’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:29:26: note: in definition of macro ‘BS_JOIN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:31:20: note: in expansion of macro ‘BS_JOIN3’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:343:12: note: in expansion of macro ‘BS_FUNC’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h: scope_hint: In function ‘bits_priv_refill_32_be’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:29:26: note: in definition of macro ‘BS_JOIN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:31:20: note: in expansion of macro ‘BS_JOIN3’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:329:12: note: in expansion of macro ‘BS_FUNC’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h: scope_hint: In function ‘bits_priv_refill_32_be’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:29:26: note: in definition of macro ‘BS_JOIN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:31:20: note: in expansion of macro ‘BS_JOIN3’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:542:20: note: in expansion of macro ‘BS_FUNC’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h: scope_hint: In function ‘bits_priv_refill_32_be’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:29:26: note: in definition of macro ‘BS_JOIN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:31:20: note: in expansion of macro ‘BS_JOIN3’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:551:13: note: in expansion of macro ‘BS_FUNC’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h: scope_hint: In function ‘bits_priv_refill_32_be’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:29:26: note: in definition of macro ‘BS_JOIN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:31:20: note: in expansion of macro ‘BS_JOIN3’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:552:20: note: in expansion of macro ‘BS_FUNC’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:29:26: note: in definition of macro ‘BS_JOIN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:31:20: note: in expansion of macro ‘BS_JOIN3’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:479:19: note: in expansion of macro ‘BS_FUNC’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:29:26: note: in definition of macro ‘BS_JOIN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:31:20: note: in expansion of macro ‘BS_JOIN3’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:485:11: note: in expansion of macro ‘BS_FUNC’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:29:26: note: in definition of macro ‘BS_JOIN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:31:20: note: in expansion of macro ‘BS_JOIN3’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:485:11: note: in expansion of macro ‘BS_FUNC’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h: scope_hint: In function ‘bits_priv_refill_32_be’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:29:26: note: in definition of macro ‘BS_JOIN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:31:20: note: in expansion of macro ‘BS_JOIN3’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:336:24: note: in expansion of macro ‘BS_FUNC’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:29:26: note: in definition of macro ‘BS_JOIN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:31:20: note: in expansion of macro ‘BS_JOIN3’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:343:12: note: in expansion of macro ‘BS_FUNC’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:29:26: note: in definition of macro ‘BS_JOIN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:31:20: note: in expansion of macro ‘BS_JOIN3’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:327:9: note: in expansion of macro ‘BS_FUNC’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:29:26: note: in definition of macro ‘BS_JOIN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:31:20: note: in expansion of macro ‘BS_JOIN3’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:327:9: note: in expansion of macro ‘BS_FUNC’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h: scope_hint: In function ‘bits_priv_refill_32_be’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:29:26: note: in definition of macro ‘BS_JOIN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:31:20: note: in expansion of macro ‘BS_JOIN3’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:75:19: note: in expansion of macro ‘BS_FUNC’
#   83|       bc->bits      |= (uint64_t)AV_RL32(bc->ptr) << bc->bits_valid;
#   84|   #else
#   85|->     bc->bits      |= (uint64_t)AV_RB32(bc->ptr) << (32 - bc->bits_valid);
#   86|   #endif
#   87|       bc->ptr        += 4;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def20]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:164:43: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘gb.size_in_bits’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/utvideodec.c: scope_hint: In function ‘decode_plane10’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bytestream.h:141:5: note: in expansion of macro ‘av_assert0’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bytestream.h:141:5: note: in expansion of macro ‘av_assert0’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/utvideodec.c: scope_hint: In function ‘decode_plane10’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bytestream.h:92:1: note: in expansion of macro ‘DEF’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:362:23: note: in expansion of macro ‘AV_RN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:389:27: note: in expansion of macro ‘AV_RN32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:421:26: note: in expansion of macro ‘AV_RL’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bytestream.h:46:12: note: in expansion of macro ‘AV_RL32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bytestream.h:92:1: note: in expansion of macro ‘DEF’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/utvideodec.c: scope_hint: In function ‘decode_plane10’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:222:57: note: in definition of macro ‘AV_RN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:389:27: note: in expansion of macro ‘AV_RN32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:421:26: note: in expansion of macro ‘AV_RL’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/utvideodec.c:195:28: note: in expansion of macro ‘AV_RL32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:92:29: note: in expansion of macro ‘bits_init’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/utvideodec.c:208:9: note: in expansion of macro ‘init_get_bits’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:29:26: note: in definition of macro ‘BS_JOIN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:31:20: note: in expansion of macro ‘BS_JOIN3’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bitstream_template.h:101:19: note: in expansion of macro ‘BS_FUNC’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:92:29: note: in expansion of macro ‘bits_init’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/utvideodec.c:208:9: note: in expansion of macro ‘init_get_bits’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/utvideodec.c:212:13: note: in expansion of macro ‘READ_PLANE’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/utvideodec.c:212:13: note: in expansion of macro ‘READ_PLANE’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:79:29: note: in expansion of macro ‘bits_left’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/utvideodec.c:121:56: note: in expansion of macro ‘get_bits_left’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/utvideodec.c:212:13: note: in expansion of macro ‘READ_PLANE’
#  162|   static inline int BS_FUNC(left)(const BSCTX *bc)
#  163|   {
#  164|->     return (bc->buffer - bc->ptr) * 8 + bc->size_in_bits + bc->bits_valid;
#  165|   }
#  166|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def21]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bsf/extract_extradata.c: scope_hint: In function ‘extract_extradata_av1’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bsf/extract_extradata.c:140:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘filtered_buf’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bsf/extract_extradata.c: scope_hint: In function ‘extract_extradata_av1’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bytestream.h:151:5: note: in expansion of macro ‘av_assert0’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bsf/extract_extradata.c: scope_hint: In function ‘extract_extradata_av1’
#  138|           bytestream2_init_writer(&pb_extradata, extradata, extradata_size);
#  139|           if (s->remove)
#  140|->             bytestream2_init_writer(&pb_filtered_data, filtered_buf->data, filtered_size);
#  141|   
#  142|           for (i = 0; i < s->av1_pkt.nb_obus; i++) {

Error: GCC_ANALYZER_WARNING (CWE-457): [#def22]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/ccaption_dec.c: scope_hint: In function ‘handle_edm’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/ccaption_dec.c:687:12: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘ret’
#  685|           ret = capture_screen(ctx);
#  686|   
#  687|->     return ret;
#  688|   }
#  689|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def23]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/fixed_dsp.h:53: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/dca_core.h:25: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/dcaadpcm.c:25: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/dcaadpcm.c: scope_hint: In function ‘calc_corr’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/dcaadpcm.c:36:21: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/mathops.h:55:34: note: in definition of macro ‘MUL64’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/dcaadpcm.c: scope_hint: In function ‘calc_corr’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/mathops.h:55:34: note: in definition of macro ‘MUL64’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/mathops.h:55:34: note: in definition of macro ‘MUL64’
#   34|       int64_t s = 0;
#   35|       for (n = 0; n < len; n++)
#   36|->         s += MUL64(x[n-j], x[n-k]);
#   37|       return s;
#   38|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def24]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/decode.c: scope_hint: In function ‘ff_decode_preinit’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/decode.c:1720:20: warning[-Wanalyzer-malloc-leak]: leak of ‘iconv_open("UTF-8", *avctx.sub_charenc)’
# 1718|   #if CONFIG_ICONV
# 1719|                   iconv_t cd = iconv_open("UTF-8", avctx->sub_charenc);
# 1720|->                 if (cd == (iconv_t)-1) {
# 1721|                       ret = AVERROR(errno);
# 1722|                       av_log(avctx, AV_LOG_ERROR, "Unable to open iconv context "

Error: GCC_ANALYZER_WARNING (CWE-476): [#def25]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/diracdec.c: scope_hint: In function ‘dirac_decode_picture_header’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/diracdec.c:2066:74: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:32: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/diracdec.c:33: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:222:57: note: in definition of macro ‘AV_RN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:387:39: note: in expansion of macro ‘AV_RN32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:414:26: note: in expansion of macro ‘AV_RB’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/diracdec.c:2303:26: note: in expansion of macro ‘AV_RB32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:33: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/diracdec.c:328:5: note: in expansion of macro ‘av_assert0’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/diracdec.c:36: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/diracdec.c: scope_hint: In function ‘dirac_decode_picture_header’
# 2064|           while (add_frame(s->ref_frames, MAX_REFERENCE_FRAMES, s->current_picture)) {
# 2065|               av_log(s->avctx, AV_LOG_ERROR, "Reference frame overflow\n");
# 2066|->             remove_frame(s->ref_frames, s->ref_frames[0]->picture_number)->reference &= DELAYED_PIC_REF;
# 2067|           }
# 2068|       }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def26]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/dpx.c: scope_hint: In function ‘decode_frame’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/dpx.c:289:12: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘i’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/dpx.c:23: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:362:23: note: in expansion of macro ‘AV_RN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:387:39: note: in expansion of macro ‘AV_RN32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:414:26: note: in expansion of macro ‘AV_RB’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/dpx.c:177:17: note: in expansion of macro ‘AV_RB32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:362:23: note: in expansion of macro ‘AV_RN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:389:27: note: in expansion of macro ‘AV_RN32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:421:26: note: in expansion of macro ‘AV_RL’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/dpx.c:81:16: note: in expansion of macro ‘AV_RL32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/dpx.c: scope_hint: In function ‘decode_frame’
#  287|           tc = av_bswap32(read32(&buf, endian));
#  288|   
#  289|->         if (i != 0xFFFFFFFF) {
#  290|               AVFrameSideData *tcside;
#  291|               ret = ff_frame_new_side_data(avctx, p, AV_FRAME_DATA_S12M_TIMECODE,

Error: GCC_ANALYZER_WARNING (CWE-476): [#def27]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/encode.c: scope_hint: In function ‘ff_encode_reordered_opaque’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/encode.c:238:60: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘frame’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/encode.c:22: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/avassert.h:41:11: note: in definition of macro ‘av_assert0’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/encode.c:369:5: note: in expansion of macro ‘av_assert0’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/encode.c:333:5: note: in expansion of macro ‘av_assert0’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/encode.c:255:5: note: in expansion of macro ‘av_assert0’
#  236|   {
#  237|       if (avctx->flags & AV_CODEC_FLAG_COPY_OPAQUE) {
#  238|->         int ret = av_buffer_replace(&pkt->opaque_ref, frame->opaque_ref);
#  239|           if (ret < 0)
#  240|               return ret;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def28]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/encode.c: scope_hint: In function ‘ff_encode_encode_cb’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/encode.c:271:35: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘frame’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/avassert.h:41:11: note: in definition of macro ‘av_assert0’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/encode.c:369:5: note: in expansion of macro ‘av_assert0’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/encode.c:333:5: note: in expansion of macro ‘av_assert0’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/encode.c:255:5: note: in expansion of macro ‘av_assert0’
#  269|               (frame && (codec->caps_internal & FF_CODEC_CAP_EOF_FLUSH))) {
#  270|               if (avpkt->pts == AV_NOPTS_VALUE)
#  271|->                 avpkt->pts = frame->pts;
#  272|   
#  273|               if (!avpkt->duration) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def29]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/encode.c:274:26: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘frame’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/avassert.h:41:11: note: in definition of macro ‘av_assert0’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/encode.c:369:5: note: in expansion of macro ‘av_assert0’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/encode.c:333:5: note: in expansion of macro ‘av_assert0’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/encode.c:255:5: note: in expansion of macro ‘av_assert0’
#  272|   
#  273|               if (!avpkt->duration) {
#  274|->                 if (frame->duration)
#  275|                       avpkt->duration = frame->duration;
#  276|                   else if (avctx->codec->type == AVMEDIA_TYPE_AUDIO) {

Error: GCC_ANALYZER_WARNING (CWE-457): [#def30]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/flacdec.c: scope_hint: In function ‘decode_subframe_fixed’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/flacdec.c:324:15: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘b’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:32: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/flacdec.c:41: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:362:23: note: in expansion of macro ‘AV_RN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:387:39: note: in expansion of macro ‘AV_RN32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:414:26: note: in expansion of macro ‘AV_RB’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/flacdec.c:752:9: note: in expansion of macro ‘AV_RB32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h: scope_hint: In function ‘decode_subframe_fixed’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/flacdec.c: scope_hint: In function ‘decode_subframe_fixed’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/log.h:25: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/avassert.h:34: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/flacdec.c:36: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/attributes.h:154:26: note: in definition of macro ‘av_uninit’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/attributes.h:154:26: note: in definition of macro ‘av_uninit’
#  322|           b = a - decoded[pred_order-2];
#  323|       if (pred_order > 2)
#  324|->         c = b - decoded[pred_order-2] + decoded[pred_order-3];
#  325|       if (pred_order > 3)
#  326|           d = c - decoded[pred_order-2] + 2U*decoded[pred_order-3] - decoded[pred_order-4];

Error: GCC_ANALYZER_WARNING (CWE-457): [#def31]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/flacdec.c:333:28: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘a’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:362:23: note: in expansion of macro ‘AV_RN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:387:39: note: in expansion of macro ‘AV_RN32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:414:26: note: in expansion of macro ‘AV_RB’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/flacdec.c:752:9: note: in expansion of macro ‘AV_RB32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h: scope_hint: In function ‘decode_subframe_fixed’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/flacdec.c: scope_hint: In function ‘decode_subframe_fixed’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/attributes.h:154:26: note: in definition of macro ‘av_uninit’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/attributes.h:154:26: note: in definition of macro ‘av_uninit’
#  331|       case 1:
#  332|           for (i = pred_order; i < blocksize; i++)
#  333|->             decoded[i] = a += decoded[i];
#  334|           break;
#  335|       case 2:

Error: GCC_ANALYZER_WARNING (CWE-457): [#def32]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/flacdec.c:337:33: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘b’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:362:23: note: in expansion of macro ‘AV_RN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:387:39: note: in expansion of macro ‘AV_RN32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:414:26: note: in expansion of macro ‘AV_RB’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/flacdec.c:752:9: note: in expansion of macro ‘AV_RB32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h: scope_hint: In function ‘decode_subframe_fixed’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/flacdec.c: scope_hint: In function ‘decode_subframe_fixed’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/attributes.h:154:26: note: in definition of macro ‘av_uninit’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/attributes.h:154:26: note: in definition of macro ‘av_uninit’
#  335|       case 2:
#  336|           for (i = pred_order; i < blocksize; i++)
#  337|->             decoded[i] = a += b += decoded[i];
#  338|           break;
#  339|       case 3:

Error: GCC_ANALYZER_WARNING (CWE-457): [#def33]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/flacdec.c:341:38: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘c’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:362:23: note: in expansion of macro ‘AV_RN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:387:39: note: in expansion of macro ‘AV_RN32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:414:26: note: in expansion of macro ‘AV_RB’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/flacdec.c:752:9: note: in expansion of macro ‘AV_RB32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h: scope_hint: In function ‘decode_subframe_fixed’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/flacdec.c: scope_hint: In function ‘decode_subframe_fixed’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/attributes.h:154:26: note: in definition of macro ‘av_uninit’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/attributes.h:154:26: note: in definition of macro ‘av_uninit’
#  339|       case 3:
#  340|           for (i = pred_order; i < blocksize; i++)
#  341|->             decoded[i] = a += b += c += decoded[i];
#  342|           break;
#  343|       case 4:

Error: GCC_ANALYZER_WARNING (CWE-457): [#def34]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/flacdec.c:345:43: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘d’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:362:23: note: in expansion of macro ‘AV_RN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:387:39: note: in expansion of macro ‘AV_RN32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:414:26: note: in expansion of macro ‘AV_RB’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/flacdec.c:752:9: note: in expansion of macro ‘AV_RB32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h: scope_hint: In function ‘decode_subframe_fixed’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/flacdec.c: scope_hint: In function ‘decode_subframe_fixed’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/attributes.h:154:26: note: in definition of macro ‘av_uninit’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/attributes.h:154:26: note: in definition of macro ‘av_uninit’
#  343|       case 4:
#  344|           for (i = pred_order; i < blocksize; i++)
#  345|->             decoded[i] = a += b += c += d += decoded[i];
#  346|           break;
#  347|       default:

Error: GCC_ANALYZER_WARNING (CWE-457): [#def35]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/g723_1enc.c: scope_hint: In function ‘lsp_quantize’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/g723_1enc.c:344:30: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘weight[<unknown>]’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/g723_1enc.c:398:5: note: in expansion of macro ‘get_index’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/version.h:30: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/channel_layout.h:28: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/g723_1enc.c:30: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/macros.h:49:22: note: in definition of macro ‘FFMIN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/macros.h:47:22: note: in definition of macro ‘FFMAX’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/g723_1enc.c:397:5: note: in expansion of macro ‘get_index’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/g723_1enc.c:397:5: note: in expansion of macro ‘get_index’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/g723_1enc.c:397:5: note: in expansion of macro ‘get_index’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/g723_1enc.c:397:5: note: in expansion of macro ‘get_index’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/g723_1enc.c:398:5: note: in expansion of macro ‘get_index’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/g723_1enc.c:398:5: note: in expansion of macro ‘get_index’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/g723_1enc.c:398:5: note: in expansion of macro ‘get_index’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/g723_1enc.c:398:5: note: in expansion of macro ‘get_index’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/g723_1enc.c:398:5: note: in expansion of macro ‘get_index’
#  342|       for (i = 0; i < LSP_CB_SIZE; i++) {                                       \
#  343|           for (j = 0; j < size; j++){                                           \
#  344|->             temp[j] = (weight[j + (offset)] * ff_g723_1_lsp_band##num[i][j] + \
#  345|                         (1 << 14)) >> 15;                                       \
#  346|           }                                                                     \

Error: GCC_ANALYZER_WARNING (CWE-457): [#def36]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/g723_1enc.c: scope_hint: In function ‘synth_percept_filter’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/g723_1enc.c:671:5: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘&*(int16_t (*)[70])(&buf_16[60])’
#  669|                                    (1 << 15)) >> 16;
#  670|       }
#  671|->     memcpy(perf_fir, buf_16 + SUBFRAME_LEN, sizeof(int16_t) * LPC_ORDER);
#  672|       memcpy(perf_iir, dest + SUBFRAME_LEN - LPC_ORDER,
#  673|              sizeof(int16_t) * LPC_ORDER);

Error: GCC_ANALYZER_WARNING: [#def37]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/gdv.c: scope_hint: In function ‘rescale’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/gdv.c:166:13: warning[-Wanalyzer-overlapping-buffers]: overlapping buffers passed as arguments to ‘memcpy’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bytestream.h:141:5: note: in expansion of macro ‘av_assert0’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/gdv.c: scope_hint: In function ‘rescale’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bytestream.h:151:5: note: in expansion of macro ‘av_assert0’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/gdv.c: scope_hint: In function ‘rescale’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/common.h:40: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/gdv.c:23: included_from: Included from here.
/usr/include/string.h:43:14: note: the behavior of ‘memcpy’ is undefined for overlapping buffers
#  164|               uint8_t *dst1 = dst + PREAMBLE_SIZE + y * w;
#  165|               uint8_t *src1 = dst + PREAMBLE_SIZE + y*2 * w;
#  166|->             memcpy(dst1, src1, w);
#  167|           }
#  168|       } else if (scale_v) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def38]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/mimic.c:31: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h: scope_hint: In function ‘get_bits1’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:391:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/mimic.c: scope_hint: In function ‘get_bits1’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/avutil.h:301: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/avcodec.h:32: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/mimic.c:27: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/mimic.c:267:31: note: in expansion of macro ‘av_clip’
#  389|   {
#  390|       unsigned int index = s->index;
#  391|->     uint8_t result     = s->buffer[index >> 3];
#  392|   #ifdef BITSTREAM_READER_LE
#  393|       result >>= index & 7;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def39]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/bit.c:28: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h: scope_hint: In function ‘get_bits1’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:391:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘gb.buffer_end’
#  389|   {
#  390|       unsigned int index = s->index;
#  391|->     uint8_t result     = s->buffer[index >> 3];
#  392|   #ifdef BITSTREAM_READER_LE
#  393|       result >>= index & 7;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def40]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/rdt.c:38: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h: scope_hint: In function ‘get_bits1’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:391:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘gb.buffer’
#  389|   {
#  390|       unsigned int index = s->index;
#  391|->     uint8_t result     = s->buffer[index >> 3];
#  392|   #ifdef BITSTREAM_READER_LE
#  393|       result >>= index & 7;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def41]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_buffer.c: scope_hint: In function ‘update_frame_pool’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_buffer.c:144:15: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘ch’
#  142|           }
#  143|       case AVMEDIA_TYPE_AUDIO: {
#  144|->         ret = av_samples_get_buffer_size(&pool->linesize[0], ch,
#  145|                                            frame->nb_samples, frame->format, 0);
#  146|           if (ret < 0)

Error: GCC_ANALYZER_WARNING (CWE-457): [#def42]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/ilbcdec.c:633:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/ilbcdec.c: scope_hint: In function ‘create_augmented_vector’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/ilbcdec.c: scope_hint: In function ‘create_augmented_vector’
#  631|   {
#  632|       for (int i = 0; i < length; i++)
#  633|->         out[i] = (in1[i] + in2[i]) >> shift;
#  634|   }
#  635|   

Error: GCC_ANALYZER_WARNING (CWE-127): [#def43]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/jpeg2000dec.c: scope_hint: In function ‘tag_tree_decode.part.0’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/jpeg2000dec.c:102:23: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/jpeg2000dec.c:102:23: note: valid subscripts for ‘stack’ are ‘[0]’ to ‘[29]’
#  100|           curval = node->val;
#  101|       else
#  102|->         curval = stack[sp]->val;
#  103|   
#  104|       while (curval < threshold && sp >= 0) {

Error: GCC_ANALYZER_WARNING (CWE-457): [#def44]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/jpeg2000dec.c: scope_hint: In function ‘get_plt’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/jpeg2000dec.c:863:11: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘v’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bytestream.h:141:5: note: in expansion of macro ‘av_assert0’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/jpeg2000dec.c:38: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/jpeg2000dec.c: scope_hint: In function ‘get_plt’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bytestream.h:98:1: note: in expansion of macro ‘DEF’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bytestream.h:98:1: note: in expansion of macro ‘DEF’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/jpeg2000dec.c: scope_hint: In function ‘get_plt’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bytestream.h:98:1: note: in expansion of macro ‘DEF’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bytestream.h:98:1: note: in expansion of macro ‘DEF’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bytestream.h: scope_hint: In function ‘get_plt’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bytestream.h:98:1: note: in expansion of macro ‘DEF’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bytestream.h:98:1: note: in expansion of macro ‘DEF’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bytestream.h:98:1: note: in expansion of macro ‘DEF’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/jpeg2000dec.c: scope_hint: In function ‘get_plt’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/jpeg2000dec.c: scope_hint: In function ‘get_plt’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bytestream.h:99:1: note: in expansion of macro ‘DEF’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/jpeg2000dec.c: scope_hint: In function ‘get_plt’
#  861|           v = bytestream2_get_byte(&s->g);
#  862|       }
#  863|->     if (v & 0x80)
#  864|           return AVERROR_INVALIDDATA;
#  865|   

Error: COMPILER_WARNING: [#def45]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/jrevdct.c:215:28: warning[-Warray-parameter=]: argument 1 of type ‘int16_t[64]’ {aka ‘short int[64]’} with mismatched bound
#  215 | void ff_j_rev_dct(DCTBLOCK data)
#      |                   ~~~~~~~~~^~~~
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/jrevdct.c:70: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/dct.h:30:28: note: previously declared as ‘int16_t *’ {aka ‘short int *’}
#   30 | void ff_j_rev_dct(int16_t *data);
#      |                   ~~~~~~~~~^~~~
#  213|    */
#  214|   
#  215|-> void ff_j_rev_dct(DCTBLOCK data)
#  216|   {
#  217|     int32_t tmp0, tmp1, tmp2, tmp3;

Error: COMPILER_WARNING: [#def46]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/jrevdct.c:953:29: warning[-Warray-parameter=]: argument 1 of type ‘int16_t[64]’ {aka ‘short int[64]’} with mismatched bound
#  953 | void ff_j_rev_dct4(DCTBLOCK data)
#      |                    ~~~~~~~~~^~~~
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/dct.h:31:29: note: previously declared as ‘int16_t *’ {aka ‘short int *’}
#   31 | void ff_j_rev_dct4(int16_t *data);
#      |                    ~~~~~~~~~^~~~
#  951|   #define DCTSTRIDE 8
#  952|   
#  953|-> void ff_j_rev_dct4(DCTBLOCK data)
#  954|   {
#  955|     int32_t tmp0, tmp1, tmp2, tmp3;

Error: COMPILER_WARNING: [#def47]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/jrevdct.c:1140:29: warning[-Warray-parameter=]: argument 1 of type ‘int16_t[64]’ {aka ‘short int[64]’} with mismatched bound
# 1140 | void ff_j_rev_dct2(DCTBLOCK data){
#      |                    ~~~~~~~~~^~~~
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/dct.h:32:29: note: previously declared as ‘int16_t *’ {aka ‘short int *’}
#   32 | void ff_j_rev_dct2(int16_t *data);
#      |                    ~~~~~~~~~^~~~
# 1138|   }
# 1139|   
# 1140|-> void ff_j_rev_dct2(DCTBLOCK data){
# 1141|     int d00, d01, d10, d11;
# 1142|   

Error: COMPILER_WARNING: [#def48]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/jrevdct.c:1155:29: warning[-Warray-parameter=]: argument 1 of type ‘int16_t[64]’ {aka ‘short int[64]’} with mismatched bound
# 1155 | void ff_j_rev_dct1(DCTBLOCK data){
#      |                    ~~~~~~~~~^~~~
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/dct.h:33:29: note: previously declared as ‘int16_t *’ {aka ‘short int *’}
#   33 | void ff_j_rev_dct1(int16_t *data);
#      |                    ~~~~~~~~~^~~~
# 1153|   }
# 1154|   
# 1155|-> void ff_j_rev_dct1(DCTBLOCK data){
# 1156|     data[0] = (data[0] + 4)>>3;
# 1157|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def49]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/kbdwin.c: scope_hint: In function ‘kbd_window_init’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/kbdwin.c:45:42: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘int_window’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/kbdwin.c:19: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/kbdwin.c:33:4: note: in expansion of macro ‘av_assert0’
#   43|          sum += temp[i];
#   44|          if (float_window) float_window[i] = sqrt(sum * scale);
#   45|->        else                int_window[i] = lrint(2147483647 * sqrt(sum * scale));
#   46|      }
#   47|      for (; i < n; i++) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def50]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/kbdwin.c:50:42: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘int_window’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/kbdwin.c:33:4: note: in expansion of macro ‘av_assert0’
#   48|          sum += temp[n - i];
#   49|          if (float_window) float_window[i] = sqrt(sum * scale);
#   50|->        else                int_window[i] = lrint(2147483647 * sqrt(sum * scale));
#   51|      }
#   52|   }

Error: COMPILER_WARNING (CWE-477): [#def51]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/libopenjpegenc.c: scope_hint: In function ‘mj2_create_image’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/libopenjpegenc.c:256:9: warning[-Wdeprecated-declarations]: ‘bpp’ is deprecated: Use prec instead
#  256 |         cmptparm[i].bpp  = desc->comp[i].depth;
#      |         ^~~~~~~~
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/libopenjpegenc.c:34: included_from: Included from here.
/usr/include/openjpeg-2.5/openjpeg.h:752:45: note: declared here
#  752 |     OPJ_DEPRECATED_STRUCT_MEMBER(OPJ_UINT32 bpp, "Use prec instead");
#      |                                             ^~~
/usr/include/openjpeg-2.5/openjpeg.h:80:83: note: in definition of macro ‘OPJ_DEPRECATED_STRUCT_MEMBER’
#   80 | #define OPJ_DEPRECATED_STRUCT_MEMBER(memb, msg) __attribute__ ((deprecated(msg))) memb
#      |                                                                                   ^~~~
#  254|       for (i = 0; i < numcomps; i++) {
#  255|           cmptparm[i].prec = desc->comp[i].depth;
#  256|->         cmptparm[i].bpp  = desc->comp[i].depth;
#  257|           cmptparm[i].sgnd = 0;
#  258|           cmptparm[i].dx = sub_dx[i];

Error: GCC_ANALYZER_WARNING (CWE-457): [#def52]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/libvpxdec.c: scope_hint: In function ‘vpx_decode’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/libvpxdec.c:290:41: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘img_alpha’
#  288|   
#  289|           if (ctx->has_alpha_channel &&
#  290|->             (img->d_w != img_alpha->d_w ||
#  291|                img->d_h != img_alpha->d_h ||
#  292|                img->bit_depth != img_alpha->bit_depth)) {

Error: GCC_ANALYZER_WARNING (CWE-457): [#def53]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/libvpxdec.c:319:58: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘img_alpha’
#  317|                   return AVERROR(ENOMEM);
#  318|               if (ctx->has_alpha_channel) {
#  319|->                 picture->buf[1] = av_buffer_ref(img_alpha->fb_priv);
#  320|                   if (!picture->buf[1])
#  321|                       return AVERROR(ENOMEM);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def54]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/motionpixels.c: scope_hint: In function ‘mp_decode_frame_helper’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/motionpixels.c:264:14: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘p.y’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/motionpixels.c: scope_hint: In function ‘mp_decode_frame_helper’
#  262|               p = mp_get_yuv_from_rgb(mp, 0, y);
#  263|           } else {
#  264|->             p.y += mp_gradient(mp, 0, mp_get_vlc(mp, gb));
#  265|               p.y = av_clip_uintp2(p.y, 5);
#  266|               if ((y & 3) == 0) {

Error: GCC_ANALYZER_WARNING (CWE-126): [#def55]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/mpegaudiodec_fixed.c:61: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/mpegaudiodec_template.c: scope_hint: In function ‘mp_decode_layer1’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/mpegaudiodec_template.c:435:35: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:32: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/mpegaudiodec_template.c:40: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:358:23: note: in expansion of macro ‘AV_RN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:387:39: note: in expansion of macro ‘AV_RN16’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:400:26: note: in expansion of macro ‘AV_RB’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/mpegaudiodec_template.c:1844:17: note: in expansion of macro ‘AV_RB16’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:362:23: note: in expansion of macro ‘AV_RN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:387:39: note: in expansion of macro ‘AV_RN32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:414:26: note: in expansion of macro ‘AV_RB’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/mpegaudiodec_template.c:1853:19: note: in expansion of macro ‘AV_RB32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/mpegaudiodec_template.c:435:35: note: read of 1 byte from after the end of ‘allocation’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/mpegaudiodec_template.c:435:35: note: valid subscripts for ‘allocation’ are ‘[0]’ to ‘[1]’
#  433|           for (i = 0; i < bound; i++) {
#  434|               for (ch = 0; ch < s->nb_channels; ch++) {
#  435|->                 n = allocation[ch][i];
#  436|                   if (n) {
#  437|                       mant = get_bits(&s->gb, n + 1);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def56]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/mpegaudiodec_template.c: scope_hint: In function ‘reorder_block’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/mpegaudiodec_template.c:932:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘&tmp’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:358:23: note: in expansion of macro ‘AV_RN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:387:39: note: in expansion of macro ‘AV_RN16’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:400:26: note: in expansion of macro ‘AV_RB’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/mpegaudiodec_template.c:1844:17: note: in expansion of macro ‘AV_RB16’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:362:23: note: in expansion of macro ‘AV_RN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:387:39: note: in expansion of macro ‘AV_RN32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:414:26: note: in expansion of macro ‘AV_RB’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/mpegaudiodec_template.c:1853:19: note: in expansion of macro ‘AV_RB32’
#  930|           }
#  931|           ptr += 2 * len;
#  932|->         memcpy(ptr1, tmp, len * 3 * sizeof(*ptr1));
#  933|       }
#  934|   }

Error: GCC_ANALYZER_WARNING (CWE-127): [#def57]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/mpegaudioenc_fixed.c:24: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/mpegaudioenc_template.c: scope_hint: In function ‘idct32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/mpegaudioenc_template.c:209:18: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/mpegaudioenc_template.c:209:18: note: valid subscripts for ‘tmp1’ are ‘[0]’ to ‘[31]’
#  207|       t1 = tab + 2;
#  208|       do {
#  209|->         t[0] += t[-4];
#  210|           t[1] += t[1 - 4];
#  211|           t -= 4;

Error: GCC_ANALYZER_WARNING (CWE-127): [#def58]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/mpegaudioenc_template.c:210:18: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/mpegaudioenc_template.c:210:18: note: valid subscripts for ‘tmp1’ are ‘[0]’ to ‘[31]’
#  208|       do {
#  209|           t[0] += t[-4];
#  210|->         t[1] += t[1 - 4];
#  211|           t -= 4;
#  212|       } while (t != t1);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def59]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/mpegaudioenc_template.c: scope_hint: In function ‘compute_bit_allocation’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/mpegaudioenc_template.c:516:5: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘smr1’
#  514|       const unsigned char *alloc;
#  515|   
#  516|->     memcpy(smr, smr1, s->nb_channels * sizeof(short) * SBLIMIT);
#  517|       memset(subband_status, SB_NOTALLOCATED, s->nb_channels * SBLIMIT);
#  518|       memset(bit_alloc, 0, s->nb_channels * SBLIMIT);

Error: GCC_ANALYZER_WARNING (CWE-835): [#def60]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/opus_celt.c: scope_hint: In function ‘ff_celt_quant_bands’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/opus_celt.c:87:52: warning[-Wanalyzer-infinite-loop]: infinite loop
#   85|                                         ff_celt_freq_bands[lowband_offset] - ff_celt_freq_range[i]);
#   86|               foldstart = lowband_offset;
#   87|->             while (ff_celt_freq_bands[--foldstart] > effective_lowband);
#   88|               foldend = lowband_offset - 1;
#   89|               while (++foldend < i && ff_celt_freq_bands[foldend] < effective_lowband + ff_celt_freq_range[i]);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def61]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/opusenc.c: scope_hint: In function ‘celt_frame_setup_input’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/opusenc.c:147:36: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘cur’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/opusenc.h:30: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/opusenc.c:25: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/bufferqueue.h:44: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/bufferqueue.h:101:5: note: in expansion of macro ‘av_assert0’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/opusenc.c: scope_hint: In function ‘celt_frame_setup_input’
#  145|           for (int ch = 0; ch < f->channels; ch++) {
#  146|               CeltBlock *b = &f->block[ch];
#  147|->             const void *input = cur->extended_data[ch];
#  148|               const size_t bps  = av_get_bytes_per_sample(cur->format);
#  149|               const size_t left = (subframesize - cur->nb_samples)*bps;

Error: GCC_ANALYZER_WARNING: [#def62]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/opusenc.c: scope_hint: In function ‘opus_encode_init’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/opusenc.c:694:16: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/bufferqueue.h:90:39: note: in expansion of macro ‘BUCKET’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/opusenc.c: scope_hint: In function ‘opus_encode_init’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/error.h:30: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/common.h:43: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/avutil.h:301: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/frame.h:31: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/encode.h:24: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/opusenc.c:24: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/macros.h:49:22: note: in definition of macro ‘FFMIN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/opusenc.c:694:16: note: only use operands of an integer type inside the size argument
#  692|       /* Frame structs and range coder buffers */
#  693|       max_frames = ceilf(FFMIN(s->options.max_delay_ms, 120.0f)/2.5f);
#  694|->     s->frame = av_malloc(max_frames*sizeof(CeltFrame));
#  695|       if (!s->frame)
#  696|           return AVERROR(ENOMEM);

Error: GCC_ANALYZER_WARNING: [#def63]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/opusenc.c:697:13: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/bufferqueue.h:90:39: note: in expansion of macro ‘BUCKET’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/opusenc.c: scope_hint: In function ‘opus_encode_init’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/macros.h:49:22: note: in definition of macro ‘FFMIN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/opusenc.c:697:13: note: only use operands of an integer type inside the size argument
#  695|       if (!s->frame)
#  696|           return AVERROR(ENOMEM);
#  697|->     s->rc = av_malloc(max_frames*sizeof(OpusRangeCoder));
#  698|       if (!s->rc)
#  699|           return AVERROR(ENOMEM);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def64]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/opusenc_psy.c: scope_hint: In function ‘step_collect_psy_metrics’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/opusenc_psy.c:93:68: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/opusenc_psy.c: scope_hint: In function ‘step_collect_psy_metrics’
#   91|               const int offset = i*120;
#   92|               AVFrame *cur = ff_bufqueue_peek(s->bufqueue, index - i);
#   93|->             memcpy(&s->scratch[offset], cur->extended_data[ch], cur->nb_samples*sizeof(float));
#   94|           }
#   95|           for (i = 0; i < lap_size; i++) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def65]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/opusenc_psy.c:98:68: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/opusenc_psy.c: scope_hint: In function ‘step_collect_psy_metrics’
#   96|               const int offset = i*120 + lap_size;
#   97|               AVFrame *cur = ff_bufqueue_peek(s->bufqueue, index + i);
#   98|->             memcpy(&s->scratch[offset], cur->extended_data[ch], cur->nb_samples*sizeof(float));
#   99|           }
#  100|   

Error: GCC_ANALYZER_WARNING: [#def66]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/opusenc_psy.c: scope_hint: In function ‘ff_opus_psy_init’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/opusenc_psy.c:529:28: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/opusenc_psy.c:529:28: note: only use operands of an integer type inside the size argument
#  527|       s->inflection_points_count = 0;
#  528|   
#  529|->     s->inflection_points = av_mallocz(sizeof(*s->inflection_points)*s->max_steps);
#  530|       if (!s->inflection_points) {
#  531|           ret = AVERROR(ENOMEM);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def67]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/pcm-dvd.c: scope_hint: In function ‘pcm_dvd_decode_samples’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/pcm-dvd.c:165:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘dst16’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bytestream.h:141:5: note: in expansion of macro ‘av_assert0’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/pcm-dvd.c: scope_hint: In function ‘pcm_dvd_decode_samples’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bytestream.h:141:5: note: in expansion of macro ‘av_assert0’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/pcm-dvd.c: scope_hint: In function ‘pcm_dvd_decode_samples’
#  163|           int samples = blocks * avctx->ch_layout.nb_channels;
#  164|           do {
#  165|->             *dst16++ = bytestream2_get_be16u(&gb);
#  166|           } while (--samples);
#  167|   #endif

Error: GCC_ANALYZER_WARNING (CWE-476): [#def68]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/pcm-dvd.c:174:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘dst32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bytestream.h:141:5: note: in expansion of macro ‘av_assert0’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/pcm-dvd.c: scope_hint: In function ‘pcm_dvd_decode_samples’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bytestream.h:141:5: note: in expansion of macro ‘av_assert0’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/pcm-dvd.c: scope_hint: In function ‘pcm_dvd_decode_samples’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bytestream.h:98:1: note: in expansion of macro ‘DEF’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bytestream.h:98:1: note: in expansion of macro ‘DEF’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/pcm-dvd.c: scope_hint: In function ‘pcm_dvd_decode_samples’
#  172|               do {
#  173|                   for (i = 2; i; i--) {
#  174|->                     dst32[0] = bytestream2_get_be16u(&gb) << 16;
#  175|                       dst32[1] = bytestream2_get_be16u(&gb) << 16;
#  176|                       t = bytestream2_get_byteu(&gb);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def69]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/pcm-dvd.c:184:26: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘dst32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bytestream.h:141:5: note: in expansion of macro ‘av_assert0’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/pcm-dvd.c: scope_hint: In function ‘pcm_dvd_decode_samples’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bytestream.h:141:5: note: in expansion of macro ‘av_assert0’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/pcm-dvd.c: scope_hint: In function ‘pcm_dvd_decode_samples’
#  182|           do {
#  183|               for (i = s->groups_per_block; i; i--) {
#  184|->                 dst32[0] = bytestream2_get_be16u(&gb) << 16;
#  185|                   dst32[1] = bytestream2_get_be16u(&gb) << 16;
#  186|                   dst32[2] = bytestream2_get_be16u(&gb) << 16;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def70]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/pcm-dvd.c:202:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘dst32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bytestream.h:141:5: note: in expansion of macro ‘av_assert0’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/pcm-dvd.c: scope_hint: In function ‘pcm_dvd_decode_samples’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bytestream.h:141:5: note: in expansion of macro ‘av_assert0’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/pcm-dvd.c: scope_hint: In function ‘pcm_dvd_decode_samples’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bytestream.h:98:1: note: in expansion of macro ‘DEF’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bytestream.h:98:1: note: in expansion of macro ‘DEF’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/pcm-dvd.c: scope_hint: In function ‘pcm_dvd_decode_samples’
#  200|               do {
#  201|                   for (i = 2; i; i--) {
#  202|->                     dst32[0] = bytestream2_get_be16u(&gb) << 16;
#  203|                       dst32[1] = bytestream2_get_be16u(&gb) << 16;
#  204|                       *dst32++ += bytestream2_get_byteu(&gb) << 8;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def71]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/pcm-dvd.c:211:26: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘dst32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bytestream.h:141:5: note: in expansion of macro ‘av_assert0’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/pcm-dvd.c: scope_hint: In function ‘pcm_dvd_decode_samples’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bytestream.h:141:5: note: in expansion of macro ‘av_assert0’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/pcm-dvd.c: scope_hint: In function ‘pcm_dvd_decode_samples’
#  209|           do {
#  210|               for (i = s->groups_per_block; i; i--) {
#  211|->                 dst32[0] = bytestream2_get_be16u(&gb) << 16;
#  212|                   dst32[1] = bytestream2_get_be16u(&gb) << 16;
#  213|                   dst32[2] = bytestream2_get_be16u(&gb) << 16;

Error: GCC_ANALYZER_WARNING (CWE-1335): [#def72]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/sbcenc.c:40: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/put_bits.h: scope_hint: In function ‘put_bits_no_assert’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/put_bits.h:225:19: warning[-Wanalyzer-shift-count-overflow]: shift by count (‘64’) >= precision of type (‘64’)
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/sbcenc.c: scope_hint: In function ‘put_bits_no_assert’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/put_bits.h: scope_hint: In function ‘put_bits_no_assert’
#  223|           bit_left   -= n;
#  224|       } else {
#  225|->         bit_buf   <<= bit_left;
#  226|           bit_buf    |= value >> (n - bit_left);
#  227|           if (s->buf_end - s->buf_ptr >= sizeof(BitBuf)) {

Error: GCC_ANALYZER_WARNING (CWE-457): [#def73]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/qsvenc.c: scope_hint: In function ‘qsv_retrieve_enc_params’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/qsvenc.c:1521:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘&vps_buf’
# 1519|   
# 1520|       if (q->hevc_vps) {
# 1521|->         memcpy(avctx->extradata, vps_buf, extradata_vps.VPSBufSize);
# 1522|           extradata_offset += extradata_vps.VPSBufSize;
# 1523|       }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def74]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/qsvenc.c:1525:5: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘&sps_buf’
# 1523|       }
# 1524|   
# 1525|->     memcpy(avctx->extradata + extradata_offset, sps_buf, extradata.SPSBufSize);
# 1526|       extradata_offset += extradata.SPSBufSize;
# 1527|       if (need_pps) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def75]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/ra144.c: scope_hint: In function ‘add_wav’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/ra144.c:1519:32: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘s1’
# 1517|       if (v[0]) {
# 1518|           for (i=0; i < BLOCKSIZE; i++)
# 1519|->             dest[i] = (int)((s1[i]*(unsigned)v[0]) + s2[i]*v[1] + s3[i]*v[2]) >> 12;
# 1520|       } else {
# 1521|           for (i=0; i < BLOCKSIZE; i++)

Error: GCC_ANALYZER_WARNING (CWE-457): [#def76]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/ra144.c: scope_hint: In function ‘ff_rms’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/ra144.c:1643:34: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
# 1641|   
# 1642|       for (i = 0; i < LPC_ORDER; i++) {
# 1643|->         res = (((0x1000000 - data[i]*data[i]) >> 12) * res) >> 12;
# 1644|   
# 1645|           if (res == 0)

Error: GCC_ANALYZER_WARNING (CWE-688): [#def77]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/ratecontrol.c: scope_hint: In function ‘ff_rate_control_init’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/ratecontrol.c:588:20: warning[-Wanalyzer-null-argument]: use of NULL ‘p’ where non-null expected
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:33: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/mpegvideo.h:35: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/mpegvideoenc.h:34: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/ratecontrol.c:35: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/ratecontrol.c:595:13: note: in expansion of macro ‘av_assert0’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/avassert.h:41:11: note: in definition of macro ‘av_assert0’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/ratecontrol.c:596:13: note: in expansion of macro ‘av_assert0’
<built-in>: note: argument 1 of ‘__builtin_strchr’ must be non-null
#  586|               char *next;
#  587|   
#  588|->             next = strchr(p, ';');
#  589|               if (next) {
#  590|                   (*next) = 0; // sscanf is unbelievably slow on looong strings // FIXME copy / do not write

Error: GCC_ANALYZER_WARNING (CWE-457): [#def78]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/rka.c: scope_hint: In function ‘amdl_decode_int’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/rka.c:474:8: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘val’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bytestream.h:141:5: note: in expansion of macro ‘av_assert0’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/rka.c: scope_hint: In function ‘amdl_decode_int’
#  472|       freq = 0;
#  473|       dst[0] = 0;
#  474|->     if (val > 0 && am->buf_size > 0) {
#  475|           for (dst[0] = 0; dst[0] < size & freq < val; dst[0]++) {
#  476|               if (!am->prob[1][dst[0]])

Error: GCC_ANALYZER_WARNING (CWE-476): [#def79]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/roqaudioenc.c: scope_hint: In function ‘roq_dpcm_encode_frame’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/roqaudioenc.c:179:71: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘frame’
#  177|           *out++ = dpcm_predict(&context->lastSample[(i & 1) & stereo], *in++);
#  178|   
#  179|->     avpkt->pts      = context->input_frames <= 7 ? context->first_pts : frame->pts;
#  180|       avpkt->duration = data_size / channels;
#  181|   

Error: GCC_ANALYZER_WARNING (CWE-835): [#def80]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/sbc.c: scope_hint: In function ‘ff_sbc_calculate_bits’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/sbc.c:118:25: warning[-Wanalyzer-infinite-loop]: infinite loop
#  116|               bitslice = max_bitneed + 1;
#  117|               do {
#  118|->                 bitslice--;
#  119|                   bitcount += slicecount;
#  120|                   slicecount = 0;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def81]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/speexdec.c: scope_hint: In function ‘lsp_interpolate’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/speexdec.c:817:18: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/speexdec.c:54: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/avassert.h:41:11: note: in definition of macro ‘av_assert0’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/speexdec.c:1294:9: note: in expansion of macro ‘av_assert0’
#  815|       }
#  816|       for (int i = 1; i < len - 1; i++) {
#  817|->         lsp[i] = fmaxf(lsp[i], lsp[i - 1] + margin);
#  818|           if (lsp[i] > lsp[i + 1] - margin)
#  819|               lsp[i] = .5f * (lsp[i] + lsp[i + 1] - margin);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def82]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/speexdec.c: scope_hint: In function ‘lsp_to_lpc’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/speexdec.c:855:26: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘n0’
#  853|               xin2 = xout2;
#  854|           }
#  855|->         xout1 = xin1 + n0[4];
#  856|           xout2 = xin2 - n0[5];
#  857|           if (j > 0)

Error: GCC_ANALYZER_WARNING (CWE-457): [#def83]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/speexdec.c: scope_hint: In function ‘sb_decode’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/speexdec.c:1316:67: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘low_innov_alias’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/avassert.h:41:11: note: in definition of macro ‘av_assert0’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/speexdec.c:1294:9: note: in expansion of macro ‘av_assert0’
# 1314|   
# 1315|               for (int i = 0; i < st->subframe_size; i += 2) {
# 1316|->                 exc[i    ] =  mode->folding_gain * low_innov_alias[offset + i    ] * g;
# 1317|                   exc[i + 1] = -mode->folding_gain * low_innov_alias[offset + i + 1] * g;
# 1318|               }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def84]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/speexdec.c:1347:35: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘innov_save’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/avassert.h:41:11: note: in definition of macro ‘av_assert0’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/speexdec.c:1294:9: note: in expansion of macro ‘av_assert0’
# 1345|           if (st->innov_save) {
# 1346|               for (int i = 0; i < st->subframe_size; i++)
# 1347|->                 innov_save[2 * i] = exc[i];
# 1348|           }
# 1349|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def85]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/speexdec.c:1352:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘&ak’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/avassert.h:41:11: note: in definition of macro ‘av_assert0’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/speexdec.c:1294:9: note: in expansion of macro ‘av_assert0’
# 1350|           iir_mem(st->exc_buf, st->interp_qlpc, sp, st->subframe_size, st->lpc_size, st->mem_sp);
# 1351|           memcpy(st->exc_buf, exc, sizeof(exc));
# 1352|->         memcpy(st->interp_qlpc, ak, sizeof(st->interp_qlpc));
# 1353|           st->exc_rms[sub] = compute_rms(st->exc_buf, st->subframe_size);
# 1354|       }

Error: GCC_ANALYZER_WARNING (CWE-126): [#def86]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/speexdec.c: scope_hint: In function ‘decoder_init’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/speexdec.c:1367:22: warning[-Wanalyzer-out-of-bounds]: buffer over-read
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/speexdec.c:1367:22: note: read of 4 bytes from after the end of ‘speex_modes’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/speexdec.c:1367:22: note: valid subscripts for ‘speex_modes’ are ‘[0]’ to ‘[2]’
# 1365|   {
# 1366|       st->mode = mode;
# 1367|->     st->modeID = mode->modeID;
# 1368|   
# 1369|       st->first = 1;

Error: GCC_ANALYZER_WARNING (CWE-126): [#def87]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/speexdec.c:1375:25: warning[-Wanalyzer-out-of-bounds]: buffer over-read
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/speexdec.c:1375:25: note: read of 4 bytes from after the end of ‘speex_modes’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/speexdec.c:1375:25: note: valid subscripts for ‘speex_modes’ are ‘[0]’ to ‘[2]’
# 1373|   
# 1374|       st->submodes = mode->submodes;
# 1375|->     st->submodeID = mode->default_submode;
# 1376|       st->subframe_size = mode->subframe_size;
# 1377|       st->lpc_size = mode->lpc_size;

Error: GCC_ANALYZER_WARNING (CWE-126): [#def88]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/speexdec.c:1376:29: warning[-Wanalyzer-out-of-bounds]: buffer over-read
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/speexdec.c:1376:29: note: read of 4 bytes from after the end of ‘speex_modes’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/speexdec.c:1376:29: note: valid subscripts for ‘speex_modes’ are ‘[0]’ to ‘[2]’
# 1374|       st->submodes = mode->submodes;
# 1375|       st->submodeID = mode->default_submode;
# 1376|->     st->subframe_size = mode->subframe_size;
# 1377|       st->lpc_size = mode->lpc_size;
# 1378|       st->full_frame_size = (1 + (st->modeID > 0)) * mode->frame_size;

Error: GCC_ANALYZER_WARNING (CWE-126): [#def89]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/speexdec.c:1377:24: warning[-Wanalyzer-out-of-bounds]: buffer over-read
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/speexdec.c:1377:24: note: read of 4 bytes from after the end of ‘speex_modes’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/speexdec.c:1377:24: note: valid subscripts for ‘speex_modes’ are ‘[0]’ to ‘[2]’
# 1375|       st->submodeID = mode->default_submode;
# 1376|       st->subframe_size = mode->subframe_size;
# 1377|->     st->lpc_size = mode->lpc_size;
# 1378|       st->full_frame_size = (1 + (st->modeID > 0)) * mode->frame_size;
# 1379|       st->nb_subframes = mode->frame_size / mode->subframe_size;

Error: GCC_ANALYZER_WARNING (CWE-126): [#def90]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/speexdec.c:1378:56: warning[-Wanalyzer-out-of-bounds]: buffer over-read
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/speexdec.c:1378:56: note: read of 4 bytes from after the end of ‘speex_modes’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/speexdec.c:1378:56: note: valid subscripts for ‘speex_modes’ are ‘[0]’ to ‘[2]’
# 1376|       st->subframe_size = mode->subframe_size;
# 1377|       st->lpc_size = mode->lpc_size;
# 1378|->     st->full_frame_size = (1 + (st->modeID > 0)) * mode->frame_size;
# 1379|       st->nb_subframes = mode->frame_size / mode->subframe_size;
# 1380|       st->frame_size = mode->frame_size;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def91]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/tiertexseqv.c: scope_hint: In function ‘seq_decode_op1’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/tiertexseqv.c:96:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*(long unsigned int *)&block[_3]’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/tiertexseqv.c: scope_hint: In function ‘seq_decode_op1’
#   94|               src = seq_unpack_rle_block(src, src_end, block, sizeof(block));
#   95|               for (b = 0; b < 8; b++) {
#   96|->                 memcpy(dst, &block[b * 8], 8);
#   97|                   dst += seq->frame->linesize[0];
#   98|               }

Error: COMPILER_WARNING (CWE-563): [#def92]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/tiff.c: scope_hint: In function ‘horizontal_fill’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/tiff.c:424:17: warning[-Wunused-variable]: unused variable ‘ret’
#  424 |             int ret = init_get_bits8(&gb, src, width);
#      |                 ^~~
#  422|               GetBitContext gb;
#  423|   
#  424|->             int ret = init_get_bits8(&gb, src, width);
#  425|               av_assert1(ret >= 0);
#  426|               for (int i = 0; i < s->width; i++) {

Error: COMPILER_WARNING (CWE-563): [#def93]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/tiff.c: scope_hint: In function ‘unpack_gray’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/tiff.c:459:9: warning[-Wunused-variable]: unused variable ‘ret’
#  459 |     int ret = init_get_bits8(&gb, src, width);
#      |         ^~~
#  457|       uint16_t *dst = (uint16_t *)(p->data[0] + lnum * p->linesize[0]);
#  458|   
#  459|->     int ret = init_get_bits8(&gb, src, width);
#  460|       av_assert1(ret >= 0);
#  461|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def94]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/v210enc.c:36: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/v210_template.c: scope_hint: In function ‘v210_enc_8’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/v210_template.c:65:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘val’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/v210enc.c:30: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/v210enc_init.h:36:32: note: in definition of macro ‘CLIP’
#   63|           }
#   64|           if (w < avctx->width - 3) {
#   65|->             val |= (CLIP(*u++, DEPTH) << (20-DEPTH)) | (CLIP(*y++, DEPTH) << (30-DEPTH));
#   66|               AV_WL32(dst, val);
#   67|               dst += 4;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def95]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/v4l2_context.c: scope_hint: In function ‘v4l2_getfree_v4l2buf’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/v4l2_context.c:436:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘*ctx.buffers’
#  434|   
#  435|       for (i = 0; i < ctx->num_buffers; i++) {
#  436|->         if (ctx->buffers[i].status == V4L2BUF_AVAILABLE)
#  437|               return &ctx->buffers[i];
#  438|       }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def96]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/vaapi_decode.c: scope_hint: In function ‘vaapi_decode_find_best_format’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/vaapi_decode.c:363:5: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘best_fourcc’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/vaapi_decode.c:21: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/vaapi_decode.c:307:5: note: in expansion of macro ‘av_assert0’
#  361|       }
#  362|   
#  363|->     av_log(avctx, AV_LOG_DEBUG, "Picked %s (%#x) as best match for %s.\n",
#  364|              av_get_pix_fmt_name(best_format), best_fourcc,
#  365|              av_get_pix_fmt_name(source_format));

Error: GCC_ANALYZER_WARNING (CWE-476): [#def97]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/vaapi_encode.c: scope_hint: In function ‘vaapi_encode_add_ref’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/vaapi_encode.c:948:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘target’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/vaapi_encode.c:24: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/avassert.h:41:11: note: in definition of macro ‘av_assert0’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/vaapi_encode.c:956:9: note: in expansion of macro ‘av_assert0’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/vaapi_encode.c:945:9: note: in expansion of macro ‘av_assert0’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/vaapi_encode.c:945:9: note: in expansion of macro ‘av_assert0’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/avassert.h:41:11: note: in definition of macro ‘av_assert0’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/vaapi_encode.c:946:9: note: in expansion of macro ‘av_assert0’
#  946|           av_assert0(pic->nb_refs[0] < MAX_PICTURE_REFERENCES &&
#  947|                      pic->nb_refs[1] < MAX_PICTURE_REFERENCES);
#  948|->         if (target->display_order < pic->display_order)
#  949|               pic->refs[0][pic->nb_refs[0]++] = target;
#  950|           else

Error: GCC_ANALYZER_WARNING (CWE-457): [#def98]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/vaapi_encode.c: scope_hint: In function ‘vaapi_encode_profile_entrypoint’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/vaapi_encode.c:1651:30: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘profile’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/avassert.h:41:11: note: in definition of macro ‘av_assert0’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/vaapi_encode.c:1610:5: note: in expansion of macro ‘av_assert0’
# 1649|       }
# 1650|   
# 1651|->     avctx->profile  = profile->av_profile;
# 1652|       ctx->va_profile = profile->va_profile;
# 1653|       av_log(avctx, AV_LOG_VERBOSE, "Using VAAPI profile %s (%d).\n",

Error: GCC_ANALYZER_WARNING (CWE-457): [#def99]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/vaapi_encode.c:1653:5: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘profile_string’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/avassert.h:41:11: note: in definition of macro ‘av_assert0’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/vaapi_encode.c:1610:5: note: in expansion of macro ‘av_assert0’
# 1651|       avctx->profile  = profile->av_profile;
# 1652|       ctx->va_profile = profile->va_profile;
# 1653|->     av_log(avctx, AV_LOG_VERBOSE, "Using VAAPI profile %s (%d).\n",
# 1654|              profile_string, ctx->va_profile);
# 1655|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def100]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/vaapi_encode.c: scope_hint: In function ‘vaapi_encode_init_rate_control’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/vaapi_encode.c:2059:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘rc_window_size’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/vaapi_encode.c:1872:9: note: in expansion of macro ‘TRY_RC_MODE’
# 2057|       if (rc_mode->va_mode != VA_RC_CQP) {
# 2058|           if (rc_mode->mode == RC_MODE_AVBR) {
# 2059|->             av_log(avctx, AV_LOG_VERBOSE, "RC target: %"PRId64" bps "
# 2060|                      "converging in %d frames with %d%% accuracy.\n",
# 2061|                      rc_bits_per_second, rc_window_size,

Error: GCC_ANALYZER_WARNING (CWE-457): [#def101]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/vmdaudio.c: scope_hint: In function ‘decode_audio_s16’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/vmdaudio.c:126:22: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘predictor[ch]’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/vmdaudio.c:38: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/vmdaudio.c:213:9: note: in expansion of macro ‘av_assert0’
#  124|           uint8_t b = *buf++;
#  125|           if (b & 0x80)
#  126|->             predictor[ch] -= vmdaudio_table[b & 0x7F];
#  127|           else
#  128|               predictor[ch] += vmdaudio_table[b];

Error: GCC_ANALYZER_WARNING (CWE-457): [#def102]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/vmdaudio.c:128:22: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘predictor[ch]’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/vmdaudio.c:213:9: note: in expansion of macro ‘av_assert0’
#  126|               predictor[ch] -= vmdaudio_table[b & 0x7F];
#  127|           else
#  128|->             predictor[ch] += vmdaudio_table[b];
#  129|           predictor[ch] = av_clip_int16(predictor[ch]);
#  130|           *out++ = predictor[ch];

Error: GCC_ANALYZER_WARNING (CWE-476): [#def103]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/vorbisdec.c: scope_hint: In function ‘vorbis_parse_setup_hdr_codebooks’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/vorbisdec.c:411:66: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h: scope_hint: In function ‘vorbis_parse_setup_hdr_codebooks’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/vorbisdec.c: scope_hint: In function ‘vorbis_parse_setup_hdr_codebooks’
#  409|                       for (k = 0; k < dim; ++k) {
#  410|                           unsigned multiplicand_offset = lookup_offset % codebook_lookup_values;
#  411|->                         codebook_setup->codevectors[j * dim + k] = codebook_multiplicands[multiplicand_offset] * codebook_delta_value + codebook_minimum_value + last;
#  412|                           if (codebook_sequence_p)
#  413|                               last = codebook_setup->codevectors[j * dim + k];

Error: GCC_ANALYZER_WARNING (CWE-457): [#def104]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/vorbisdec.c: scope_hint: In function ‘vorbis_parse_audio_packet’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/vorbisdec.c:1675:25: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘no_residue[<unknown>]’
# 1673|   
# 1674|       for (i = mapping->coupling_steps - 1; i >= 0; --i) {
# 1675|->         if (!(no_residue[mapping->magnitude[i]] & no_residue[mapping->angle[i]])) {
# 1676|               no_residue[mapping->magnitude[i]] = 0;
# 1677|               no_residue[mapping->angle[i]]     = 0;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def105]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/vorbisdec.c:1734:55: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘res_chan[j]’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h: scope_hint: In function ‘vorbis_parse_audio_packet’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/vorbisdec.c: scope_hint: In function ‘vorbis_parse_audio_packet’
# 1732|   
# 1733|       for (j = vc->audio_channels-1;j >= 0; j--) {
# 1734|->         ch_res_ptr   = vc->channel_residues + res_chan[j] * blocksize / 2;
# 1735|           vc->fdsp->vector_fmul(floor_ptr[j], floor_ptr[j], ch_res_ptr, blocksize / 2);
# 1736|           mdct_fn(mdct, ch_res_ptr, floor_ptr[j], sizeof(float));

Error: GCC_ANALYZER_WARNING (CWE-476): [#def106]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/vulkan_decode.c: scope_hint: In function ‘vulkan_decode_get_profile’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/vulkan_decode.c:784:18: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
#  782|       uint32_t nb_out_fmts = 0;
#  783|   
#  784|->     if (!(vk_desc->decode_extension & ctx->s.extensions)) {
#  785|           av_log(avctx, AV_LOG_ERROR, "Device does not support decoding %s!\n",
#  786|                  avcodec_get_name(avctx->codec_id));

Error: GCC_ANALYZER_WARNING (CWE-476): [#def107]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/vulkan_decode.c: scope_hint: In function ‘ff_vk_decode_init’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/vulkan_decode.c:1178:60: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/vulkan_decode.c: scope_hint: In function ‘ff_vk_decode_init’
# 1176|       vk_desc = get_codecdesc(avctx->codec_id);
# 1177|       /* Check for support */
# 1178|->     if (!(s->video_props[qf].videoCodecOperations & vk_desc->decode_op)) {
# 1179|           av_log(avctx, AV_LOG_ERROR, "Decoding %s not supported on the given "
# 1180|                  "queue family %i!\n", avcodec_get_name(avctx->codec_id), qf);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def108]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavdevice/kmsgrab.c: scope_hint: In function ‘kmsgrab_read_header’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavdevice/kmsgrab.c:502:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘plane’
#  500|           }
#  501|   
#  502|->         av_log(avctx, AV_LOG_INFO, "Using plane %"PRIu32" to "
#  503|                  "locate framebuffers.\n", plane->plane_id);
#  504|       }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def109]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavdevice/pulse_audio_dec.c: scope_hint: In function ‘pulse_read_packet’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavdevice/pulse_audio_dec.c:356:20: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘dts’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavdevice/pulse_audio_dec.c:302:5: note: in expansion of macro ‘CHECK_DEAD_GOTO’
#  354|   
#  355|       if (pd->wallclock)
#  356|->         pkt->pts = ff_timefilter_update(pd->timefilter, dts, pd->last_period);
#  357|       pd->last_period = pkt->size / pd->pa_frame_size;
#  358|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def110]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavdevice/xcbgrab.c: scope_hint: In function ‘xcbgrab_read_packet’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavdevice/xcbgrab.c:460:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘p’
#  458|       }
#  459|   
#  460|->     if (c->follow_mouse && p->same_screen)
#  461|           xcbgrab_reposition(s, p, geo);
#  462|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def111]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavdevice/xcbgrab.c:478:39: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘p’
#  476|   
#  477|   #if CONFIG_LIBXCB_XFIXES
#  478|->     if (ret >= 0 && c->draw_mouse && p->same_screen)
#  479|           xcbgrab_draw_mouse(s, pkt, p, geo, win_x, win_y);
#  480|   #endif

Error: GCC_ANALYZER_WARNING: [#def112]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/af_adecorrelate.c: scope_hint: In function ‘ap_init’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/af_adecorrelate.c:70:14: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/af_adecorrelate.c:70:14: note: only use operands of an integer type inside the size argument
#   68|       ap->len = delay_samples + 1;
#   69|       ap->p = 0;
#   70|->     ap->mx = av_calloc(ap->len, sizeof(*ap->mx));
#   71|       ap->my = av_calloc(ap->len, sizeof(*ap->my));
#   72|       if (!ap->mx || !ap->my)

Error: GCC_ANALYZER_WARNING (CWE-457): [#def113]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/af_aecho.c: scope_hint: In function ‘echo_samples_dblp’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/af_aecho.c:195:22: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘index’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/af_aecho.c:198:1: note: in expansion of macro ‘ECHO’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/log.h:25: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/avassert.h:34: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/af_aecho.c:21: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/attributes.h:154:26: note: in definition of macro ‘av_uninit’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/af_aecho.c:198:1: note: in expansion of macro ‘ECHO’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/attributes.h:154:26: note: in definition of macro ‘av_uninit’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/af_aecho.c:198:1: note: in expansion of macro ‘ECHO’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/af_aecho.c:198:1: note: in expansion of macro ‘ECHO’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/af_aecho.c:198:1: note: in expansion of macro ‘ECHO’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/af_aecho.c:198:1: note: in expansion of macro ‘ECHO’
#  193|           }                                                                   \
#  194|       }                                                                       \
#  195|->     ctx->delay_index = index;                                               \
#  196|   }
#  197|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def114]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/af_afftdn.c: scope_hint: In function ‘process_frame’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/af_afftdn.c:383:15: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘mag’
#  381|           }
#  382|   
#  383|->         power = mag * mag;
#  384|           mag_abs_var = power / abs_var[i];
#  385|           new_mag_abs_var = ratio * prior[i] + rratio * fmax(mag_abs_var - 1.0, 0.0);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def115]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/af_afftdn.c: scope_hint: In function ‘config_input’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/af_afftdn.c:759:15: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘tx_type’
#  757|           dnch->fft_in = av_calloc(s->fft_length2, s->sample_size);
#  758|           dnch->fft_out = av_calloc(s->fft_length2 + 1, s->complex_sample_size);
#  759|->         ret = av_tx_init(&dnch->fft, &dnch->tx_fn, tx_type, 0, s->fft_length2, scale, 0);
#  760|           if (ret < 0)
#  761|               return ret;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def116]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/af_afftdn.c: scope_hint: In function ‘sample_noise_block’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/af_afftdn.c:979:16: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘mag2’
#  977|           }
#  978|   
#  979|->         mag2 = fmax(mag2, s->sample_floor);
#  980|   
#  981|           var += mag2;

Error: COMPILER_WARNING: [#def117]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/af_afftfilt.c: scope_hint: In function ‘filter_channel’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/af_afftfilt.c:297:9: warning[-Wstringop-overflow=]: ‘memmove’ specified bound between 18446744065119617024 and 18446744073709551608 exceeds maximum object size 9223372036854775807
#  295|           s->itx_fn(s->ifft[ch], fft_out, fft_temp, sizeof(*fft_temp));
#  296|   
#  297|->         memmove(buf, buf + s->hop_size, window_size * sizeof(float));
#  298|           for (int i = 0; i < window_size; i++)
#  299|               buf[i] += fft_out[i].re * window_lut[i] * f;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def118]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/af_afir.c: scope_hint: In function ‘init_segment’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/af_afir.c:163:15: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘tx_type’
#  161|   
#  162|       for (int ch = 0; ch < ctx->inputs[0]->ch_layout.nb_channels && part_size >= 1; ch++) {
#  163|->         ret = av_tx_init(&seg->ctx[ch], &seg->ctx_fn, tx_type,
#  164|                            0, 2 * part_size, &cscale,  0);
#  165|           if (ret < 0)

Error: GCC_ANALYZER_WARNING (CWE-457): [#def119]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/af_afreqshift.c: scope_hint: In function ‘pfilter_channel_dbl’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/af_afreqshift.c:98:21: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘I’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/af_afreqshift.c:103:1: note: in expansion of macro ‘PFILTER’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/af_afreqshift.c:103:1: note: in expansion of macro ‘PFILTER’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/af_afreqshift.c:103:1: note: in expansion of macro ‘PFILTER’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/af_afreqshift.c:103:1: note: in expansion of macro ‘PFILTER’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/af_afreqshift.c:103:1: note: in expansion of macro ‘PFILTER’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/af_afreqshift.c:103:1: note: in expansion of macro ‘PFILTER’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/af_afreqshift.c:103:1: note: in expansion of macro ‘PFILTER’
#   96|           Q = o2[nb_coeffs * 2 - 1];                            \
#   97|                                                                 \
#   98|->         dst[n] = (I * cos_theta - Q * sin_theta) * level;     \
#   99|       }                                                         \
#  100|   }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def120]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/af_afreqshift.c: scope_hint: In function ‘ffilter_channel_flt’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/af_afreqshift.c:149:21: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘I’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/af_afreqshift.c:153:1: note: in expansion of macro ‘FFILTER’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/af_afreqshift.c:153:1: note: in expansion of macro ‘FFILTER’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/af_afreqshift.c:153:1: note: in expansion of macro ‘FFILTER’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/af_afreqshift.c:153:1: note: in expansion of macro ‘FFILTER’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/af_afreqshift.c:153:1: note: in expansion of macro ‘FFILTER’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/af_afreqshift.c:153:1: note: in expansion of macro ‘FFILTER’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/af_afreqshift.c:153:1: note: in expansion of macro ‘FFILTER’
#  147|                                                                 \
#  148|           theta = 2. * M_PI * fmod(shift * (N + n) * ts, 1.);   \
#  149|->         dst[n] = (I * cos(theta) - Q * sin(theta)) * level;   \
#  150|       }                                                         \
#  151|   }

Error: GCC_ANALYZER_WARNING: [#def121]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/af_alimiter.c: scope_hint: In function ‘config_input’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/af_alimiter.c:368:17: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/af_alimiter.c:368:17: note: only use operands of an integer type inside the size argument
#  366|           return AVERROR(EINVAL);
#  367|   
#  368|->     s->buffer = av_calloc(obuffer_size, sizeof(*s->buffer));
#  369|       s->nextdelta = av_calloc(obuffer_size, sizeof(*s->nextdelta));
#  370|       s->nextpos = av_malloc_array(obuffer_size, sizeof(*s->nextpos));

Error: GCC_ANALYZER_WARNING: [#def122]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/af_alimiter.c:369:20: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/af_alimiter.c:369:20: note: only use operands of an integer type inside the size argument
#  367|   
#  368|       s->buffer = av_calloc(obuffer_size, sizeof(*s->buffer));
#  369|->     s->nextdelta = av_calloc(obuffer_size, sizeof(*s->nextdelta));
#  370|       s->nextpos = av_malloc_array(obuffer_size, sizeof(*s->nextpos));
#  371|       if (!s->buffer || !s->nextdelta || !s->nextpos)

Error: GCC_ANALYZER_WARNING: [#def123]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/af_alimiter.c:370:18: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/af_alimiter.c:370:18: note: only use operands of an integer type inside the size argument
#  368|       s->buffer = av_calloc(obuffer_size, sizeof(*s->buffer));
#  369|       s->nextdelta = av_calloc(obuffer_size, sizeof(*s->nextdelta));
#  370|->     s->nextpos = av_malloc_array(obuffer_size, sizeof(*s->nextpos));
#  371|       if (!s->buffer || !s->nextdelta || !s->nextpos)
#  372|           return AVERROR(ENOMEM);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def124]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/af_axcorrelate.c: scope_hint: In function ‘xcorrelate_slow_f’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/af_axcorrelate.c:143:12: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘used’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/af_axcorrelate.c:146:1: note: in expansion of macro ‘XCORRELATE_SLOW’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/af_axcorrelate.c:146:1: note: in expansion of macro ‘XCORRELATE_SLOW’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/af_axcorrelate.c:146:1: note: in expansion of macro ‘XCORRELATE_SLOW’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/af_axcorrelate.c:146:1: note: in expansion of macro ‘XCORRELATE_SLOW’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/af_axcorrelate.c:146:1: note: in expansion of macro ‘XCORRELATE_SLOW’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/af_axcorrelate.c:146:1: note: in expansion of macro ‘XCORRELATE_SLOW’
#  141|       }                            \
#  142|                                    \
#  143|->     return used;                 \
#  144|   }
#  145|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def125]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/af_axcorrelate.c: scope_hint: In function ‘xcorrelate_fast_f’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/af_axcorrelate.c:196:12: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘used’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/af_axcorrelate.c:199:1: note: in expansion of macro ‘XCORRELATE_FAST’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/af_axcorrelate.c:199:1: note: in expansion of macro ‘XCORRELATE_FAST’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/af_axcorrelate.c:199:1: note: in expansion of macro ‘XCORRELATE_FAST’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/af_axcorrelate.c:199:1: note: in expansion of macro ‘XCORRELATE_FAST’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/af_axcorrelate.c:199:1: note: in expansion of macro ‘XCORRELATE_FAST’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/af_axcorrelate.c:199:1: note: in expansion of macro ‘XCORRELATE_FAST’
#  194|       }                                                                          \
#  195|                                                                                  \
#  196|->     return used;                                                               \
#  197|   }
#  198|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def126]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/af_axcorrelate.c: scope_hint: In function ‘xcorrelate_best_f’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/af_axcorrelate.c:257:12: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘used’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/af_axcorrelate.c:260:1: note: in expansion of macro ‘XCORRELATE_BEST’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/af_axcorrelate.c:260:1: note: in expansion of macro ‘XCORRELATE_BEST’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/af_axcorrelate.c:260:1: note: in expansion of macro ‘XCORRELATE_BEST’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/af_axcorrelate.c:260:1: note: in expansion of macro ‘XCORRELATE_BEST’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/af_axcorrelate.c:260:1: note: in expansion of macro ‘XCORRELATE_BEST’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/af_axcorrelate.c:260:1: note: in expansion of macro ‘XCORRELATE_BEST’
#  255|       }                                                                          \
#  256|                                                                                  \
#  257|->     return used;                                                               \
#  258|   }
#  259|   

Error: COMPILER_WARNING: [#def127]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/af_channelsplit.c: scope_hint: In function ‘filter_frame’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/af_channelsplit.c:161:5: warning[-Wdeclaration-after-statement]: ISO C90 forbids mixed declarations and code
#  161 |     AVFrame *buf_out = av_frame_clone(buf);
#      |     ^~~~~~~
#  159|       av_assert1(channel >= 0);
#  160|   
#  161|->     AVFrame *buf_out = av_frame_clone(buf);
#  162|       if (!buf_out)
#  163|           return AVERROR(ENOMEM);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def128]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/af_compand.c: scope_hint: In function ‘compand_delay’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/af_compand.c:250:20: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘count’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/log.h:25: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/avassert.h:34: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/af_compand.c:30: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/attributes.h:154:26: note: in definition of macro ‘av_uninit’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/attributes.h:154:26: note: in definition of macro ‘av_uninit’
#  248|       }
#  249|   
#  250|->     s->delay_count = count;
#  251|       s->delay_index = dindex;
#  252|   

Error: COMPILER_WARNING: [#def129]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/af_firequalizer.c:558:5: warning[-Wstringop-overflow=]: ‘memset’ specified bound between 18446744069414584316 and 18446744073709551608 exceeds maximum object size 9223372036854775807
#  556|       s->cepstrum_irdft_fn(s->cepstrum_irdft, s->cepstrum_buf, s->cepstrum_tbuf, sizeof(AVComplexFloat));
#  557|   
#  558|->     memset(s->cepstrum_buf + cepstrum_len/2 + 1, 0, (cepstrum_len/2 - 1) * sizeof(*s->cepstrum_buf));
#  559|       for (k = 1; k <= cepstrum_len/2; k++)
#  560|           s->cepstrum_buf[k] *= 2;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def130]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/af_haas.c: scope_hint: In function ‘filter_frame’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/af_haas.c:166:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘mid’
#  164|           }
#  165|   
#  166|->         mid *= level_in;
#  167|   
#  168|           buffer[s->write_ptr] = mid;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def131]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/af_loudnorm.c: scope_hint: In function ‘filter_frame’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/af_loudnorm.c:458:19: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘true_peak’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/af_loudnorm.c:25: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/af_loudnorm.c:687:5: note: in expansion of macro ‘FF_FILTER_FORWARD_STATUS_BACK’
#  456|   
#  457|           offset    = pow(10., (s->target_i - global) / 20.);
#  458|->         offset_tp = true_peak * offset;
#  459|           s->offset = offset_tp < s->target_tp ? offset : s->target_tp / true_peak;
#  460|           s->frame_type = LINEAR_MODE;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def132]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/af_loudnorm.c: scope_hint: In function ‘uninit’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/af_loudnorm.c:875:19: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘tp_out’
#  873|               thresh_in,
#  874|               i_out,
#  875|->             20. * log10(tp_out),
#  876|               lra_out,
#  877|               thresh_out,

Error: GCC_ANALYZER_WARNING (CWE-457): [#def133]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/af_loudnorm.c:903:19: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘tp_out’
#  901|               thresh_in,
#  902|               i_out,
#  903|->             20. * log10(tp_out),
#  904|               lra_out,
#  905|               thresh_out,

Error: GCC_ANALYZER_WARNING (CWE-457): [#def134]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/avf_abitscope.c: scope_hint: In function ‘filter_frame’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/avf_abitscope.c:244:20: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘outpicref’
#  242|       }
#  243|   
#  244|->     outpicref->pts = av_rescale_q(insamples->pts, inlink->time_base, outlink->time_base);
#  245|       outpicref->duration = 1;
#  246|       outpicref->sample_aspect_ratio = (AVRational){1,1};

Error: GCC_ANALYZER_WARNING (CWE-457): [#def135]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/avf_ahistogram.c:409:30: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yf’
#  407|                   }
#  408|   
#  409|->                 out[0] += aa * yf;
#  410|                   out[1] += aa * uf;
#  411|                   out[2] += aa * vf;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def136]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/avf_aphasemeter.c: scope_hint: In function ‘filter_frame’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/avf_aphasemeter.c:332:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘outlink’
#  330|   
#  331|       if (s->do_video)
#  332|->         new_pts = av_rescale_q(in->pts, inlink->time_base, outlink->time_base);
#  333|       if (s->do_video && new_pts != s->last_pts) {
#  334|           AVFrame *clone;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def137]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/avf_avectorscope.c: scope_hint: In function ‘filter_frame’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/avf_avectorscope.c:378:39: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘src[0]’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/version.h:30: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/log.h:26: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/avassert.h:34: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/avf_avectorscope.c:26: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/macros.h:49:22: note: in definition of macro ‘FFMIN’
#  376|           switch (s->scale) {
#  377|           case SQRT:
#  378|->             src[0] = FFSIGN(src[0]) * sqrtf(FFABS(src[0]));
#  379|               src[1] = FFSIGN(src[1]) * sqrtf(FFABS(src[1]));
#  380|               break;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def138]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/avf_avectorscope.c:382:39: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘src[0]’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/macros.h:49:22: note: in definition of macro ‘FFMIN’
#  380|               break;
#  381|           case CBRT:
#  382|->             src[0] = FFSIGN(src[0]) * cbrtf(FFABS(src[0]));
#  383|               src[1] = FFSIGN(src[1]) * cbrtf(FFABS(src[1]));
#  384|               break;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def139]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/avf_avectorscope.c:392:22: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘src[0]’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/macros.h:49:22: note: in definition of macro ‘FFMIN’
#  390|   
#  391|           if (s->mirror & 1)
#  392|->             src[0] = -src[0];
#  393|   
#  394|           if (s->mirror & 2)

Error: GCC_ANALYZER_WARNING (CWE-457): [#def140]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/avf_avectorscope.c:395:22: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘src[1]’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/macros.h:49:22: note: in definition of macro ‘FFMIN’
#  393|   
#  394|           if (s->mirror & 2)
#  395|->             src[1] = -src[1];
#  396|   
#  397|           if (s->swap)

Error: GCC_ANALYZER_WARNING (CWE-457): [#def141]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/avf_avectorscope.c:401:26: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘src[0]’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/avf_avectorscope.c:446:5: note: in expansion of macro ‘FF_FILTER_FORWARD_STATUS_BACK’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/macros.h:49:22: note: in definition of macro ‘FFMIN’
#  399|   
#  400|           if (s->mode == LISSAJOUS) {
#  401|->             x = ((src[1] - src[0]) * zoom / 2 + 1) * hw;
#  402|               y = (1.0 - (src[0] + src[1]) * zoom / 2) * hh;
#  403|           } else if (s->mode == LISSAJOUS_XY) {

Error: GCC_ANALYZER_WARNING (CWE-457): [#def142]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/avf_avectorscope.c:401:26: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘src[1]’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/avf_avectorscope.c:446:5: note: in expansion of macro ‘FF_FILTER_FORWARD_STATUS_BACK’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/macros.h:49:22: note: in definition of macro ‘FFMIN’
#  399|   
#  400|           if (s->mode == LISSAJOUS) {
#  401|->             x = ((src[1] - src[0]) * zoom / 2 + 1) * hw;
#  402|               y = (1.0 - (src[0] + src[1]) * zoom / 2) * hh;
#  403|           } else if (s->mode == LISSAJOUS_XY) {

Error: GCC_ANALYZER_WARNING (CWE-457): [#def143]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/avf_avectorscope.c:404:21: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘src[1]’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/avf_avectorscope.c:446:5: note: in expansion of macro ‘FF_FILTER_FORWARD_STATUS_BACK’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/macros.h:49:22: note: in definition of macro ‘FFMIN’
#  402|               y = (1.0 - (src[0] + src[1]) * zoom / 2) * hh;
#  403|           } else if (s->mode == LISSAJOUS_XY) {
#  404|->             x = (src[1] * zoom + 1) * hw;
#  405|               y = (src[0] * zoom + 1) * hh;
#  406|           } else {

Error: GCC_ANALYZER_WARNING (CWE-457): [#def144]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/avf_avectorscope.c:409:21: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘src[1]’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/avf_avectorscope.c:446:5: note: in expansion of macro ‘FF_FILTER_FORWARD_STATUS_BACK’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/macros.h:49:22: note: in definition of macro ‘FFMIN’
#  407|               float sx, sy, cx, cy;
#  408|   
#  409|->             sx = src[1] * zoom;
#  410|               sy = src[0] * zoom;
#  411|               cx = sx * sqrtf(1 - 0.5 * sy * sy);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def145]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/avf_avectorscope.c:428:15: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘x’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/avf_avectorscope.c:446:5: note: in expansion of macro ‘FF_FILTER_FORWARD_STATUS_BACK’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/macros.h:49:22: note: in definition of macro ‘FFMIN’
#  426|       }
#  427|   
#  428|->     s->prev_x = x, s->prev_y = y;
#  429|       av_frame_free(&insamples);
#  430|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def146]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/avf_showcwt.c: scope_hint: In function ‘draw’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/avf_showcwt.c:591:29: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘dstY’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/avf_showcwt.c:591:31: note: in expansion of macro ‘av_clip_uint8’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/avf_showcwt.c: scope_hint: In function ‘draw’
#  589|   
#  590|                   if (sono_size > 0) {
#  591|->                     dstY[0] = av_clip_uint8(lrintf(Y * 255.f));
#  592|                       dstU[0] = av_clip_uint8(lrintf(U * 255.f));
#  593|                       dstV[0] = av_clip_uint8(lrintf(V * 255.f));

Error: GCC_ANALYZER_WARNING (CWE-457): [#def147]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/avf_showcwt.c:610:25: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘dstY’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/avf_showcwt.c:610:27: note: in expansion of macro ‘av_clip_uint8’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/avf_showcwt.c: scope_hint: In function ‘draw’
#  608|   
#  609|               if (sono_size > 0) {
#  610|->                 dstY[0] = av_clip_uint8(lrintf(Y * 255.f));
#  611|                   dstU[0] = av_clip_uint8(lrintf(U * 255.f));
#  612|                   dstV[0] = av_clip_uint8(lrintf(V * 255.f));

Error: GCC_ANALYZER_WARNING (CWE-457): [#def148]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/avf_showcwt.c:625:25: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘dstY’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/avf_showcwt.c:625:27: note: in expansion of macro ‘av_clip_uint8’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/avf_showcwt.c: scope_hint: In function ‘draw’
#  623|   
#  624|               if (sono_size > 0) {
#  625|->                 dstY[0] = av_clip_uint8(lrintf(Y * 255.f));
#  626|                   if (dstA)
#  627|                       dstA[0] = dstY[0];

Error: GCC_ANALYZER_WARNING (CWE-457): [#def149]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/avf_showspectrum.c: scope_hint: In function ‘plot_spectrum_column’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/avf_showspectrum.c:1552:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘x’
# 1550|   
# 1551|               if (s->legend) {
# 1552|->                 char *units = get_time(ctx, insamples->pts /(float)inlink->sample_rate, x);
# 1553|                   if (!units)
# 1554|                       return AVERROR(ENOMEM);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def150]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/avfilter.c: scope_hint: In function ‘ff_inlink_make_frame_writable’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/avfilter.c:1507:15: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘frame’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/avfilter.c: scope_hint: In function ‘ff_inlink_make_frame_writable’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/avfilter.c: scope_hint: In function ‘ff_inlink_make_frame_writable’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/avfilter.c: scope_hint: In function ‘ff_inlink_make_frame_writable’
# 1505|           break;
# 1506|       case AVMEDIA_TYPE_AUDIO:
# 1507|->         out = ff_get_audio_buffer(link, frame->nb_samples);
# 1508|           break;
# 1509|       default:

Error: GCC_ANALYZER_WARNING (CWE-476): [#def151]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/avfilter.c: scope_hint: In function ‘ff_inlink_process_commands’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/avfilter.c:1536:36: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘frame’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/avfilter.c: scope_hint: In function ‘ff_inlink_process_commands’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/avfilter.c: scope_hint: In function ‘ff_inlink_process_commands’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/avfilter.c: scope_hint: In function ‘ff_inlink_process_commands’
# 1534|       AVFilterCommand *cmd = link->dst->command_queue;
# 1535|   
# 1536|->     while(cmd && cmd->time <= frame->pts * av_q2d(link->time_base)){
# 1537|           av_log(link->dst, AV_LOG_DEBUG,
# 1538|                  "Processing command time:%f command:%s arg:%s\n",

Error: GCC_ANALYZER_WARNING (CWE-476): [#def152]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/avfilter.c: scope_hint: In function ‘ff_inlink_evaluate_timeline_at_frame’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/avfilter.c:1550:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘frame’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/avfilter.c: scope_hint: In function ‘ff_inlink_evaluate_timeline_at_frame’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/avfilter.c: scope_hint: In function ‘ff_inlink_evaluate_timeline_at_frame’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/avfilter.c: scope_hint: In function ‘ff_inlink_evaluate_timeline_at_frame’
# 1548|   {
# 1549|       AVFilterContext *dstctx = link->dst;
# 1550|->     int64_t pts = frame->pts;
# 1551|   #if FF_API_FRAME_PKT
# 1552|   FF_DISABLE_DEPRECATION_WARNINGS

Error: GCC_ANALYZER_WARNING (CWE-674): [#def153]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/avfiltergraph.c: scope_hint: In function ‘avfilter_graph_send_command’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/avfiltergraph.c:1269:13: warning[-Wanalyzer-infinite-recursion]: infinite recursion
# 1267|   
# 1268|       if ((flags & AVFILTER_CMD_FLAG_ONE) && !(flags & AVFILTER_CMD_FLAG_FAST)) {
# 1269|->         r = avfilter_graph_send_command(graph, target, cmd, arg, res, res_len, flags | AVFILTER_CMD_FLAG_FAST);
# 1270|           if (r != AVERROR(ENOSYS))
# 1271|               return r;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def154]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vaf_spectrumsynth.c: scope_hint: In function ‘try_push_frame’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vaf_spectrumsynth.c:412:14: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘start’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vaf_spectrumsynth.c:38: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vaf_spectrumsynth.c:464:5: note: in expansion of macro ‘FF_FILTER_FORWARD_STATUS_BACK_ALL’
/usr/include/CL/cl.h:20: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/hwcontext_opencl.h:25: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/opencl.h:31: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vf_avgblur_opencl.c:30: included_from: Included from here.
/usr/include/CL/cl_version.h:22:9: note: ‘#pragma message: cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 300 (OpenCL 3.0)’
#   22 | #pragma message("cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 300 (OpenCL 3.0)")
#      |         ^~~~~~~
/usr/include/CL/cl.h:20: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/hwcontext_opencl.h:25: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/opencl.h:31: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vf_avgblur_opencl.c:30: included_from: Included from here.
/usr/include/CL/cl_version.h:22:9: note: ‘#pragma message: cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 300 (OpenCL 3.0)’
#  410|       }
#  411|   
#  412|->     s->start = start;
#  413|       s->end = end;
#  414|   

Error: GCC_ANALYZER_WARNING: [#def155]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vf_colorconstancy.c: scope_hint: In function ‘set_gauss’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vf_colorconstancy.c:117:23: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vf_colorconstancy.c:117:23: note: only use operands of an integer type inside the size argument
/usr/include/CL/cl.h:20: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/hwcontext_opencl.h:25: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/opencl.h:31: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vf_colorkey_opencl.c:22: included_from: Included from here.
/usr/include/CL/cl_version.h:22:9: note: ‘#pragma message: cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 300 (OpenCL 3.0)’
/usr/include/CL/cl.h:20: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/hwcontext_opencl.h:25: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/opencl.h:31: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vf_colorkey_opencl.c:22: included_from: Included from here.
/usr/include/CL/cl_version.h:22:9: note: ‘#pragma message: cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 300 (OpenCL 3.0)’
#   22 | #pragma message("cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 300 (OpenCL 3.0)")
#      |         ^~~~~~~
/usr/include/CL/cl.h:20: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/hwcontext_opencl.h:25: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/opencl.h:31: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vf_convolution_opencl.c:34: included_from: Included from here.
/usr/include/CL/cl_version.h:22:9: note: ‘#pragma message: cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 300 (OpenCL 3.0)’
#   22 | #pragma message("cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 300 (OpenCL 3.0)")
#      |         ^~~~~~~
/usr/include/CL/cl.h:20: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/hwcontext_opencl.h:25: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/opencl.h:31: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vf_convolution_opencl.c:34: included_from: Included from here.
/usr/include/CL/cl_version.h:22:9: note: ‘#pragma message: cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 300 (OpenCL 3.0)’
#  115|   
#  116|       for (i = 0; i <= difford; ++i) {
#  117|->         s->gauss[i] = av_calloc(filtersize, sizeof(*s->gauss[i]));
#  118|           if (!s->gauss[i]) {
#  119|               for (; i >= 0; --i) {

Error: GCC_ANALYZER_WARNING (CWE-457): [#def156]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vf_convolution_opencl.c: scope_hint: In function ‘convolution_opencl_make_filter_params’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vf_convolution_opencl.c:157:40: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘input_matrix[j][i]’
#  155|   
#  156|           for (i = 0; i < ctx->matrix_sizes[j]; i++)
#  157|->             matrix[i] = input_matrix[j][i];
#  158|   
#  159|           buffer = clCreateBuffer(ctx->ocf.hwctx->context,

Error: GCC_ANALYZER_WARNING: [#def157]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vf_datascope.c: scope_hint: In function ‘oscilloscope_config_input’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vf_datascope.c:971:17: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vf_datascope.c:971:17: note: only use operands of an integer type inside the size argument
/usr/include/CL/cl.h:20: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/hwcontext_opencl.h:25: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/opencl.h:31: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vf_deshake_opencl.c:62: included_from: Included from here.
/usr/include/CL/cl_version.h:22:9: note: ‘#pragma message: cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 300 (OpenCL 3.0)’
#   22 | #pragma message("cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 300 (OpenCL 3.0)")
#      |         ^~~~~~~
/usr/include/CL/cl.h:20: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/hwcontext_opencl.h:25: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/opencl.h:31: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vf_deshake_opencl.c:62: included_from: Included from here.
/usr/include/CL/cl_version.h:22:9: note: ‘#pragma message: cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 300 (OpenCL 3.0)’
#  969|       size = hypot(inlink->w, inlink->h);
#  970|   
#  971|->     s->values = av_calloc(size, sizeof(*s->values));
#  972|       if (!s->values)
#  973|           return AVERROR(ENOMEM);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def158]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vf_fftdnoiz.c: scope_hint: In function ‘import_block’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vf_fftdnoiz.c:319:29: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘ddst’
#  317|       for (int i = rh; i < block; i++) {
#  318|           for (int j = 0; j < block; j++) {
#  319|->             dst[j].re = ddst[j].re;
#  320|               dst[j].im = ddst[j].im;
#  321|           }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def159]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vf_fftdnoiz.c: scope_hint: In function ‘filter_block3d2’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vf_fftdnoiz.c:431:33: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘factor’
#  429|                   }
#  430|   
#  431|->                 outbuffer[z].re *= factor;
#  432|                   outbuffer[z].im *= factor;
#  433|               }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def160]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vf_fftdnoiz.c: scope_hint: In function ‘filter_block3d1’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vf_fftdnoiz.c:489:33: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘factor’
#  487|                   }
#  488|   
#  489|->                 outbuffer[z].re *= factor;
#  490|                   outbuffer[z].im *= factor;
#  491|               }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def161]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vf_fftdnoiz.c: scope_hint: In function ‘filter_block2d’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vf_fftdnoiz.c:532:29: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘factor’
#  530|               }
#  531|   
#  532|->             buff[j * 2    ] *= factor;
#  533|               buff[j * 2 + 1] *= factor;
#  534|           }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def162]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vf_find_rect.c: scope_hint: In function ‘downscale’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vf_find_rect.c:71:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘in’
#   69|           return NULL;
#   70|   
#   71|->     frame->format = in->format;
#   72|       frame->width  = (in->width + 1) / 2;
#   73|       frame->height = (in->height+ 1) / 2;

Error: GCC_ANALYZER_WARNING (CWE-674): [#def163]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vf_geq.c: scope_hint: In function ‘getpix_integrate_internal’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vf_geq.c:209:29: warning[-Wanalyzer-infinite-recursion]: infinite recursion
#  207|   {
#  208|       if (x > w - 1) {
#  209|->         double boundary =   getpix_integrate_internal(geq, w - 1, y, plane, w, h);
#  210|           return 2*boundary - getpix_integrate_internal(geq, 2*(w - 1) - x, y, plane, w, h);
#  211|       } else if (y > h - 1) {

Error: GCC_ANALYZER_WARNING (CWE-674): [#def164]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vf_geq.c:212:29: warning[-Wanalyzer-infinite-recursion]: infinite recursion
#  210|           return 2*boundary - getpix_integrate_internal(geq, 2*(w - 1) - x, y, plane, w, h);
#  211|       } else if (y > h - 1) {
#  212|->         double boundary =   getpix_integrate_internal(geq, x, h - 1, plane, w, h);
#  213|           return 2*boundary - getpix_integrate_internal(geq, x, 2*(h - 1) - y, plane, w, h);
#  214|       } else if (x < 0) {

Error: COMPILER_WARNING (CWE-477): [#def165]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vf_libplacebo.c: scope_hint: In function ‘output_frame’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vf_libplacebo.c:884:5: warning[-Wdeprecated-declarations]: ‘skip_target_clearing’ is deprecated
#  884 |     opts->params.skip_target_clearing = false;
#      |     ^~~~
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vf_libplacebo.c:32: included_from: Included from here.
/usr/include/libplacebo/renderer.h:365:35: note: declared here
#  365 |     PL_DEPRECATED_IN(v7.346) bool skip_target_clearing; // `border_background = PL_BACKGROUND_NONE`
#      |                                   ^~~~~~~~~~~~~~~~~~~~
#  882|   
#  883|       /* Draw first frame opaque, others with blending */
#  884|->     opts->params.skip_target_clearing = false;
#  885|       opts->params.blend_params = NULL;
#  886|       for (int i = 0; i < s->nb_inputs; i++) {

Error: COMPILER_WARNING (CWE-477): [#def166]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vf_libplacebo.c:894:9: warning[-Wdeprecated-declarations]: ‘skip_target_clearing’ is deprecated
#  894 |         opts->params.skip_target_clearing = true;
#      |         ^~~~
/usr/include/libplacebo/renderer.h:365:35: note: declared here
#  365 |     PL_DEPRECATED_IN(v7.346) bool skip_target_clearing; // `border_background = PL_BACKGROUND_NONE`
#      |                                   ^~~~~~~~~~~~~~~~~~~~
#  892|           update_crops(ctx, in, &target, out->pts * av_q2d(outlink->time_base));
#  893|           pl_render_image_mix(in->renderer, &in->mix, &target, &opts->params);
#  894|->         opts->params.skip_target_clearing = true;
#  895|           opts->params.blend_params = &pl_alpha_overlay;
#  896|       }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def167]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vf_neighbor_opencl.c: scope_hint: In function ‘neighbor_opencl_init’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vf_neighbor_opencl.c:73:19: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘kernel_name’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vf_neighbor_opencl.c:65:5: note: in expansion of macro ‘CL_FAIL_ON_ERROR’
#   71|           kernel_name = "dilation_global";
#   72|       }
#   73|->     ctx->kernel = clCreateKernel(ctx->ocf.program, kernel_name, &cle);
#   74|       CL_FAIL_ON_ERROR(AVERROR(EIO), "Failed to create "
#   75|                        "kernel %d.\n", cle);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def168]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vf_nnedi.c: scope_hint: In function ‘transform_softmax_exp’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vf_nnedi.c:370:20: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
#  368|   {
#  369|       for (int i = 0; i < size; i++)
#  370|->         input[i] = softmax_exp(input[i]);
#  371|   }
#  372|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def169]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vf_nnedi.c: scope_hint: In function ‘wae5’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vf_nnedi.c:379:24: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
/usr/include/CL/cl.h:20: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/hwcontext_opencl.h:25: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/opencl.h:31: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vf_overlay_opencl.c:26: included_from: Included from here.
/usr/include/CL/cl_version.h:22:9: note: ‘#pragma message: cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 300 (OpenCL 3.0)’
/usr/include/CL/cl.h:20: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/hwcontext_opencl.h:25: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/opencl.h:31: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vf_overlay_opencl.c:26: included_from: Included from here.
/usr/include/CL/cl_version.h:22:9: note: ‘#pragma message: cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 300 (OpenCL 3.0)’
#   22 | #pragma message("cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 300 (OpenCL 3.0)")
#      |         ^~~~~~~
/usr/include/CL/cl.h:20: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/hwcontext_opencl.h:25: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/opencl.h:31: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vf_pad_opencl.c:26: included_from: Included from here.
/usr/include/CL/cl_version.h:22:9: note: ‘#pragma message: cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 300 (OpenCL 3.0)’
#   22 | #pragma message("cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 300 (OpenCL 3.0)")
#      |         ^~~~~~~
/usr/include/CL/cl.h:20: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/hwcontext_opencl.h:25: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/opencl.h:31: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vf_pad_opencl.c:26: included_from: Included from here.
/usr/include/CL/cl_version.h:22:9: note: ‘#pragma message: cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 300 (OpenCL 3.0)’
#  377|   
#  378|       for (int i = 0; i < n; i++) {
#  379|->         vsum += softmax[i] * elliott(el[i]);
#  380|           wsum += softmax[i];
#  381|       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def170]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vf_palettegen.c: scope_hint: In function ‘filter_frame’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vf_palettegen.c:487:18: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
/usr/include/CL/cl.h:20: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/hwcontext_opencl.h:25: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/opencl.h:31: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vf_program_opencl.c:30: included_from: Included from here.
/usr/include/CL/cl_version.h:22:9: note: ‘#pragma message: cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 300 (OpenCL 3.0)’
#   22 | #pragma message("cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 300 (OpenCL 3.0)")
#      |         ^~~~~~~
/usr/include/CL/cl.h:20: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/hwcontext_opencl.h:25: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/opencl.h:31: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vf_program_opencl.c:30: included_from: Included from here.
/usr/include/CL/cl_version.h:22:9: note: ‘#pragma message: cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 300 (OpenCL 3.0)’
#  485|   
#  486|           out = get_palette_frame(ctx);
#  487|->         out->pts = in->pts;
#  488|           av_frame_free(&in);
#  489|           ret = ff_filter_frame(ctx->outputs[0], out);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def171]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vf_pullup.c: scope_hint: In function ‘pullup_release_frame’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vf_pullup.c:511:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘f’
/usr/include/CL/cl.h:20: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/hwcontext_opencl.h:25: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/opencl.h:31: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vf_remap_opencl.c:28: included_from: Included from here.
/usr/include/CL/cl_version.h:22:9: note: ‘#pragma message: cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 300 (OpenCL 3.0)’
#   22 | #pragma message("cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 300 (OpenCL 3.0)")
#      |         ^~~~~~~
/usr/include/CL/cl.h:20: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/hwcontext_opencl.h:25: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/opencl.h:31: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vf_remap_opencl.c:28: included_from: Included from here.
/usr/include/CL/cl_version.h:22:9: note: ‘#pragma message: cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 300 (OpenCL 3.0)’
#  509|       int i;
#  510|   
#  511|->     for (i = 0; i < f->length; i++)
#  512|           pullup_release_buffer(f->ifields[i], f->parity ^ (i & 1));
#  513|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def172]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vulkan.h:22: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vulkan_filter.h:26: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vf_scale_vulkan.c:23: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vf_scale_vulkan.c: scope_hint: In function ‘init_filter’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vf_scale_vulkan.c:148:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘sampler_mode’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/vulkan.h:69:21: note: in definition of macro ‘RET’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vf_scale_vulkan.c:24: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vf_scale_vulkan.c:140:11: note: in expansion of macro ‘ff_vk_spirv_init’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vf_scale_vulkan.c:147:5: note: in expansion of macro ‘RET’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/vulkan.h:69:21: note: in definition of macro ‘RET’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/vulkan.h:69:21: note: in definition of macro ‘RET’
#  146|       ff_vk_qf_init(vkctx, &s->qf, VK_QUEUE_COMPUTE_BIT);
#  147|       RET(ff_vk_exec_pool_init(vkctx, &s->qf, &s->e, s->qf.nb_queues*4, 0, 0, 0, NULL));
#  148|->     RET(ff_vk_init_sampler(vkctx, &s->sampler, 0, sampler_mode));
#  149|       RET(ff_vk_shader_init(&s->pl, &s->shd, "scale_compute",
#  150|                             VK_SHADER_STAGE_COMPUTE_BIT, 0));

Error: GCC_ANALYZER_WARNING (CWE-476): [#def173]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vf_tpad.c: scope_hint: In function ‘activate’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vf_tpad.c:186:20: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vf_tpad.c:25: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vf_tpad.c:98:5: note: in expansion of macro ‘FF_FILTER_FORWARD_STATUS_BACK’
/usr/include/CL/cl.h:20: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/hwcontext_opencl.h:25: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/opencl.h:31: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vf_unsharp_opencl.c:27: included_from: Included from here.
/usr/include/CL/cl_version.h:22:9: note: ‘#pragma message: cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 300 (OpenCL 3.0)’
#   22 | #pragma message("cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 300 (OpenCL 3.0)")
#      |         ^~~~~~~
/usr/include/CL/cl.h:20: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/hwcontext_opencl.h:25: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/opencl.h:31: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vf_transpose_opencl.c:27: included_from: Included from here.
/usr/include/CL/cl_version.h:22:9: note: ‘#pragma message: cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 300 (OpenCL 3.0)’
#  184|           }
#  185|           duration = av_rescale_q(1, av_inv_q(outlink->frame_rate), outlink->time_base);
#  186|->         frame->pts = s->pts;
#  187|           frame->duration = duration;
#  188|           s->pts += duration;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def174]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vf_unsharp.c: scope_hint: In function ‘unsharp_slice_16’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vf_unsharp.c:114:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘src2’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vf_unsharp.c:141:1: note: in expansion of macro ‘DEF_UNSHARP_SLICE_FUNC’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vf_unsharp.c:141:1: note: in expansion of macro ‘DEF_UNSHARP_SLICE_FUNC’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vf_unsharp.c:141:1: note: in expansion of macro ‘DEF_UNSHARP_SLICE_FUNC’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vf_unsharp.c:141:1: note: in expansion of macro ‘DEF_UNSHARP_SLICE_FUNC’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vf_unsharp.c:141:1: note: in expansion of macro ‘DEF_UNSHARP_SLICE_FUNC’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vf_unsharp.c:141:1: note: in expansion of macro ‘DEF_UNSHARP_SLICE_FUNC’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vf_unsharp.c:141:1: note: in expansion of macro ‘DEF_UNSHARP_SLICE_FUNC’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vf_unsharp.c:141:1: note: in expansion of macro ‘DEF_UNSHARP_SLICE_FUNC’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vf_unsharp.c:141:1: note: in expansion of macro ‘DEF_UNSHARP_SLICE_FUNC’
#  112|           memset(sr + sr_offset, 0, sizeof(sr[0]) * (2 * steps_x - 1));                                 \
#  113|           for (x = -steps_x; x < width + steps_x; x++) {                                                \
#  114|->             tmp1 = x <= 0 ? src2[0] : x >= width ? src2[width-1] : src2[x];                           \
#  115|               for (z = 0; z < steps_x * 2; z += 2) {                                                    \
#  116|                   tmp2 = sr[sr_offset + z + 0] + tmp1; sr[sr_offset + z + 0] = tmp1;                    \

Error: GCC_ANALYZER_WARNING: [#def175]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vf_unsharp_opencl.c: scope_hint: In function ‘unsharp_opencl_make_filter_params’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vf_unsharp_opencl.c:136:18: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vf_unsharp_opencl.c:171:13: note: in expansion of macro ‘CL_FAIL_ON_ERROR’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vf_unsharp_opencl.c:136:18: note: only use operands of an integer type inside the size argument
#  134|           matrix_bytes = size_x * size_y * sizeof(float);
#  135|   
#  136|->         matrix = av_malloc(matrix_bytes);
#  137|           if (!matrix) {
#  138|               err = AVERROR(ENOMEM);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def176]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vf_v360.c: scope_hint: In function ‘barrelsplit_to_xyz’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vf_v360.c:3793:19: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘vf’
/usr/include/CL/cl.h:20: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/hwcontext_opencl.h:25: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/opencl.h:31: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vf_xfade_opencl.c:26: included_from: Included from here.
/usr/include/CL/cl_version.h:22:9: note: ‘#pragma message: cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 300 (OpenCL 3.0)’
/usr/include/CL/cl.h:20: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/hwcontext_opencl.h:25: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/opencl.h:31: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vf_xfade_opencl.c:26: included_from: Included from here.
/usr/include/CL/cl_version.h:22:9: note: ‘#pragma message: cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 300 (OpenCL 3.0)’
#   22 | #pragma message("cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 300 (OpenCL 3.0)")
#      |         ^~~~~~~
# 3791|           l_x = (0.5f - uf) / scalew;
# 3792|           l_y =  0.5f * dir_vert;
# 3793|->         l_z = (vf - 0.5f) * dir_vert / scaleh;
# 3794|           ret = (l_x * l_x * scalew * scalew + l_z * l_z * scaleh * scaleh) < 0.5f * 0.5f;
# 3795|       }

Error: COMPILER_WARNING: [#def177]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vf_vaguedenoiser.c: scope_hint: In function ‘invert_step.isra’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vf_vaguedenoiser.c:304:5: warning[-Wstringop-overflow=]: ‘memcpy’ specified bound between 18446744069414584320 and 18446744073709551604 exceeds maximum object size 9223372036854775807
#  302|       }
#  303|   
#  304|->     memcpy(temp + NPAD, input + NPAD + low_size, high_size * sizeof(float));
#  305|   
#  306|       left_ext = 2;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def178]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/asfdec_f.c: scope_hint: In function ‘asf_get_packet’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/asfdec_f.c:943:52: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘d’
#  941|   
#  942|               if (!asf->uses_std_ecc)
#  943|->                 asf->uses_std_ecc =  (c == 0x82 && !d && !e) ? 1 : -1;
#  944|   
#  945|               c = avio_r8(pb);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def179]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/avc.c: scope_hint: In function ‘avc_parse_nal_units’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/avc.c:96:46: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘list’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/avc.c:22: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:362:23: note: in expansion of macro ‘AV_RN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:387:39: note: in expansion of macro ‘AV_RN32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:414:26: note: in expansion of macro ‘AV_RB’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/avc.c:154:9: note: in expansion of macro ‘AV_RB32’
#   94|           } else {
#   95|               NALU *tmp = av_fast_realloc(list->nalus, &list->nalus_array_size,
#   96|->                                         (list->nb_nalus + 1) * sizeof(*list->nalus));
#   97|               if (!tmp)
#   98|                   return AVERROR(ENOMEM);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def180]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/avio.c: scope_hint: In function ‘url_alloc_for_protocol’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/avio.c:183:17: warning[-Wanalyzer-null-argument]: use of NULL ‘key’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_strlen’ must be non-null
#  181|                       goto fail;
#  182|                   }
#  183|->                 memmove(start, key+1, strlen(key));
#  184|               }
#  185|           }

Error: CPPCHECK_WARNING (CWE-457): [#def181]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/concat.c:158: warning[uninitvar]: Uninitialized variable: result
#  156|       }
#  157|       data->current = i;
#  158|->     return total ? total : result;
#  159|   }
#  160|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def182]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/crypto.c: scope_hint: In function ‘crypto_seek’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/crypto.c:316:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘res’
#  314|           if (len != 0) {
#  315|               char errbuf[100] = "unknown error";
#  316|->             av_strerror(res, errbuf, sizeof(errbuf));
#  317|               av_log(h, AV_LOG_ERROR,
#  318|                   "Crypto: discard read did not get all the bytes (%d remain) - read returned (%d)-%s\n",

Error: COMPILER_WARNING: [#def183]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/dashenc.c: scope_hint: In function ‘write_hls_media_playlist’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/dashenc.c:487:49: warning[-Wformat-truncation=]: ‘media_’ directive output may be truncated writing 6 bytes into a region of size between 1 and 1024
#  487 |         snprintf(playlist_name, string_size, "%smedia_%d.m3u8", base_url, id);
#      |                                                 ^~~~~~
/usr/include/bits/stdio2.h:68:10: note: ‘__snprintf_chk’ output between 13 and 1046 bytes into a destination of size 1024
#   68 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
#      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   69 |                                    __glibc_objsize (__s), __fmt,
#      |                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   70 |                                    __va_arg_pack ());
#      |                                    ~~~~~~~~~~~~~~~~~
#  485|                                     const char *base_url, int id) {
#  486|       if (base_url)
#  487|->         snprintf(playlist_name, string_size, "%smedia_%d.m3u8", base_url, id);
#  488|       else
#  489|           snprintf(playlist_name, string_size, "media_%d.m3u8", id);

Error: COMPILER_WARNING: [#def184]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/dashenc.c: scope_hint: In function ‘flush_init_segment’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/dashenc.c:593:49: warning[-Wformat-truncation=]: ‘%s’ directive output may be truncated writing up to 1023 bytes into a region of size between 1 and 1024
#  593 |         snprintf(filename, sizeof(filename), "%s%s", c->dirname, os->initfile);
#      |                                                 ^~
/usr/include/bits/stdio2.h:68:10: note: ‘__snprintf_chk’ output between 1 and 2047 bytes into a destination of size 1024
#   68 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
#      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   69 |                                    __glibc_objsize (__s), __fmt,
#      |                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   70 |                                    __va_arg_pack ());
#      |                                    ~~~~~~~~~~~~~~~~~
#  591|       if (!c->single_file) {
#  592|           char filename[1024];
#  593|->         snprintf(filename, sizeof(filename), "%s%s", c->dirname, os->initfile);
#  594|           dashenc_io_close(s, &os->out, filename);
#  595|       }

Error: COMPILER_WARNING: [#def185]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/dashenc.c: scope_hint: In function ‘dash_init’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/dashenc.c:1576:65: warning[-Wformat-truncation=]: ‘-stream’ directive output may be truncated writing 7 bytes into a region of size between 1 and 1024
# 1576 |                 snprintf(os->initfile, sizeof(os->initfile), "%s-stream%d.%s", basename, i, os->format_name);
#      |                                                                 ^~~~~~~
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/dashenc.c:1576:62: note: directive argument in the range [0, 2147483647]
# 1576 |                 snprintf(os->initfile, sizeof(os->initfile), "%s-stream%d.%s", basename, i, os->format_name);
#      |                                                              ^~~~~~~~~~~~~~~~
/usr/include/bits/stdio2.h:68:10: note: ‘__snprintf_chk’ output 10 or more bytes (assuming 1042) into a destination of size 1024
#   68 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
#      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   69 |                                    __glibc_objsize (__s), __fmt,
#      |                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   70 |                                    __va_arg_pack ());
#      |                                    ~~~~~~~~~~~~~~~~~
# 1574|                   ff_dash_fill_tmpl_params(os->initfile, sizeof(os->initfile), os->single_file_name, i, 0, os->bit_rate, 0);
# 1575|               else
# 1576|->                 snprintf(os->initfile, sizeof(os->initfile), "%s-stream%d.%s", basename, i, os->format_name);
# 1577|           } else {
# 1578|               ff_dash_fill_tmpl_params(os->initfile, sizeof(os->initfile), os->init_seg_name, i, 0, os->bit_rate, 0);

Error: COMPILER_WARNING: [#def186]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/dashenc.c: scope_hint: In function ‘dash_init’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/dashenc.c:1580:49: warning[-Wformat-truncation=]: ‘%s’ directive output may be truncated writing up to 1023 bytes into a region of size between 1 and 1024
# 1580 |         snprintf(filename, sizeof(filename), "%s%s", c->dirname, os->initfile);
#      |                                                 ^~
/usr/include/bits/stdio2.h:68:10: note: ‘__snprintf_chk’ output between 1 and 2047 bytes into a destination of size 1024
#   68 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
#      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   69 |                                    __glibc_objsize (__s), __fmt,
#      |                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   70 |                                    __va_arg_pack ());
#      |                                    ~~~~~~~~~~~~~~~~~
# 1578|               ff_dash_fill_tmpl_params(os->initfile, sizeof(os->initfile), os->init_seg_name, i, 0, os->bit_rate, 0);
# 1579|           }
# 1580|->         snprintf(filename, sizeof(filename), "%s%s", c->dirname, os->initfile);
# 1581|           set_http_options(&opts, c);
# 1582|           if (!c->single_file) {

Error: COMPILER_WARNING: [#def187]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/dashenc.c: scope_hint: In function ‘dash_flush’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/dashenc.c:1956:63: warning[-Wformat-truncation=]: ‘%s’ directive output may be truncated writing up to 1023 bytes into a region of size between 1 and 1024
# 1956 |             snprintf(os->full_path, sizeof(os->full_path), "%s%s", c->dirname, os->initfile);
#      |                                                               ^~
/usr/include/bits/stdio2.h:68:10: note: ‘__snprintf_chk’ output between 1 and 2047 bytes into a destination of size 1024
#   68 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
#      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   69 |                                    __glibc_objsize (__s), __fmt,
#      |                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   70 |                                    __va_arg_pack ());
#      |                                    ~~~~~~~~~~~~~~~~~
# 1954|   
# 1955|           if (c->single_file)
# 1956|->             snprintf(os->full_path, sizeof(os->full_path), "%s%s", c->dirname, os->initfile);
# 1957|   
# 1958|           ret = flush_dynbuf(c, os, &range_length);

Error: COMPILER_WARNING: [#def188]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/dashenc.c: scope_hint: In function ‘dash_write_packet’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/dashenc.c:2253:59: warning[-Wformat-truncation=]: ‘%s’ directive output may be truncated writing up to 1023 bytes into a region of size between 1 and 1024
# 2253 |         snprintf(os->full_path, sizeof(os->full_path), "%s%s", c->dirname,
#      |                                                           ^~
/usr/include/bits/stdio2.h:68:10: note: ‘__snprintf_chk’ output between 1 and 2047 bytes into a destination of size 1024
#   68 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
#      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   69 |                                    __glibc_objsize (__s), __fmt,
#      |                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   70 |                                    __va_arg_pack ());
#      |                                    ~~~~~~~~~~~~~~~~~
# 2251|                                    os->media_seg_name, pkt->stream_index,
# 2252|                                    os->segment_index, os->bit_rate, os->start_pts);
# 2253|->         snprintf(os->full_path, sizeof(os->full_path), "%s%s", c->dirname,
# 2254|                    os->filename);
# 2255|           snprintf(os->temp_path, sizeof(os->temp_path),

Error: GCC_ANALYZER_WARNING (CWE-476): [#def189]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/common.h:49: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/avutil.h:301: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/opt.h:31: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/demux.c:32: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/demux.c: scope_hint: In function ‘probe_codec.part.0’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/demux.c:445:71: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pkt’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intmath.h:40:44: note: in definition of macro ‘ff_log2’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/demux.c:445:45: note: in expansion of macro ‘av_log2’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/demux.c: scope_hint: In function ‘probe_codec.part.0’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intmath.h:40:44: note: in definition of macro ‘ff_log2’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/demux.c:445:45: note: in expansion of macro ‘av_log2’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intmath.h:40:44: note: in definition of macro ‘ff_log2’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/demux.c:445:45: note: in expansion of macro ‘av_log2’
#  443|                   || sti->probe_packets <= 0;
#  444|   
#  445|->         if (end || av_log2(pd->buf_size) != av_log2(pd->buf_size - pkt->size)) {
#  446|               int score = set_codec_from_probe_data(s, st, pd);
#  447|               if (    (st->codecpar->codec_id != AV_CODEC_ID_NONE && score > AVPROBE_SCORE_STREAM_RETRY)

Error: GCC_ANALYZER_WARNING (CWE-457): [#def190]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/dtshddec.c: scope_hint: In function ‘dtshd_read_header’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/dtshddec.c:137:5: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘data_start’
#  135|           return AVERROR_EOF;
#  136|   
#  137|->     avio_seek(pb, data_start, SEEK_SET);
#  138|   
#  139|   break_loop:

Error: GCC_ANALYZER_WARNING (CWE-457): [#def191]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/electronicarts.c: scope_hint: In function ‘ea_read_packet’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/electronicarts.c:665:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘num_samples’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:24: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/electronicarts.c:30: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/attributes.h:154:26: note: in definition of macro ‘av_uninit’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/attributes.h:154:26: note: in definition of macro ‘av_uninit’
#  663|               case AV_CODEC_ID_PCM_S16LE_PLANAR:
#  664|               case AV_CODEC_ID_MP3:
#  665|->                 pkt->duration = num_samples;
#  666|                   break;
#  667|               case AV_CODEC_ID_ADPCM_PSX:

Error: GCC_ANALYZER_WARNING (CWE-401): [#def192]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/file.c: scope_hint: In function ‘file_open_dir’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/file.c:334:8: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(*h.filename)’
#  332|   
#  333|       c->dir = opendir(h->filename);
#  334|->     if (!c->dir)
#  335|           return AVERROR(errno);
#  336|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def193]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/flvenc.c: scope_hint: In function ‘flv_write_codec_header’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/flvenc.c:676:33: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘data[1]’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/put_bits.h: scope_hint: In function ‘flv_write_codec_header’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/flvenc.c: scope_hint: In function ‘flv_write_codec_header’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/put_bits.h: scope_hint: In function ‘flv_write_codec_header’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/flvenc.c: scope_hint: In function ‘flv_write_codec_header’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/put_bits.h: scope_hint: In function ‘flv_write_codec_header’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/flvenc.c: scope_hint: In function ‘flv_write_codec_header’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/put_bits.h: scope_hint: In function ‘flv_write_codec_header’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/flvenc.c: scope_hint: In function ‘flv_write_codec_header’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/put_bits.h: scope_hint: In function ‘flv_write_codec_header’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/flvenc.c: scope_hint: In function ‘flv_write_codec_header’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/put_bits.h: scope_hint: In function ‘flv_write_codec_header’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/flvenc.c: scope_hint: In function ‘flv_write_codec_header’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/flvenc.c:25: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/avassert.h:41:11: note: in definition of macro ‘av_assert0’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/put_bits.h:150:9: note: in expansion of macro ‘av_assert0’
#  674|   
#  675|                   avio_w8(pb, data[0]);
#  676|->                 avio_w8(pb, data[1]);
#  677|   
#  678|                   av_log(s, AV_LOG_WARNING, "AAC sequence header: %02x %02x.\n",

Error: GCC_ANALYZER_WARNING (CWE-457): [#def194]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/gxfenc.c: scope_hint: In function ‘gxf_compare_field_nb’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/gxfenc.c:990:20: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘field_nb[1]’
#  988|       }
#  989|   
#  990|->     return field_nb[1] > field_nb[0] ||
#  991|           (field_nb[1] == field_nb[0] && sc[1]->order > sc[0]->order);
#  992|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def195]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/iamf_writer.c: scope_hint: In function ‘param_definition’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/iamf_writer.c:590:34: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘param_def’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/put_bits.h: scope_hint: In function ‘param_definition’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/iamf_writer.c: scope_hint: In function ‘param_definition’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/put_bits.h: scope_hint: In function ‘param_definition’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/iamf_writer.c: scope_hint: In function ‘param_definition’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/iamf.h:34: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/iamf_writer.c:24: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/avassert.h:41:11: note: in definition of macro ‘av_assert0’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/put_bits.h:150:9: note: in expansion of macro ‘av_assert0’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/avassert.h:41:11: note: in definition of macro ‘av_assert0’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/iamf.h:253:5: note: in expansion of macro ‘av_assert0’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/iamf_writer.c: scope_hint: In function ‘param_definition’
#  588|                               AVIOContext *dyn_bc, void *log_ctx)
#  589|   {
#  590|->     const AVIAMFParamDefinition *param = param_def->param;
#  591|   
#  592|       ffio_write_leb(dyn_bc, param->parameter_id);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def196]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/iff.c: scope_hint: In function ‘iff_read_packet’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/iff.c:882:15: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘data_size’
#  880|               }
#  881|           }
#  882|->         ret = av_get_packet(pb, pkt, data_size);
#  883|           pkt->pos = orig_pos;
#  884|           pkt->duration = get_anim_duration(pkt->data, pkt->size);

Error: COMPILER_WARNING: [#def197]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/img2enc.c: scope_hint: In function ‘write_packet’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/img2enc.c:183:55: warning[-Wformat-truncation=]: ‘.tmp’ directive output may be truncated writing 4 bytes into a region of size between 1 and 1024
#  183 |         snprintf(img->tmp[i], sizeof(img->tmp[i]), "%s.tmp", filename);
#      |                                                       ^~~~
/usr/include/bits/stdio2.h:68:10: note: ‘__snprintf_chk’ output between 5 and 1028 bytes into a destination of size 1024
#   68 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
#      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   69 |                                    __glibc_objsize (__s), __fmt,
#      |                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   70 |                                    __va_arg_pack ());
#      |                                    ~~~~~~~~~~~~~~~~~
#  181|       for (i = 0; i < 4; i++) {
#  182|           av_dict_copy(&options, img->protocol_opts, 0);
#  183|->         snprintf(img->tmp[i], sizeof(img->tmp[i]), "%s.tmp", filename);
#  184|           av_strlcpy(img->target[i], filename, sizeof(img->target[i]));
#  185|           if (s->io_open(s, &pb[i], img->use_rename ? img->tmp[i] : filename, AVIO_FLAG_WRITE, &options) < 0) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def198]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/ipmovie.c: scope_hint: In function ‘load_ipmovie_packet’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/ipmovie.c:145:27: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pkt’
#  143|               return CHUNK_EOF;
#  144|   
#  145|->         pkt->stream_index = s->audio_stream_index;
#  146|           pkt->pts = s->audio_frame_count;
#  147|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def199]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/ipmovie.c:36: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/ipmovie.c:184:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pkt’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:394:40: note: in definition of macro ‘AV_WB8’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/ipmovie.c:184:9: note: in expansion of macro ‘AV_WL8’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:394:40: note: in definition of macro ‘AV_WB8’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/ipmovie.c:184:9: note: in expansion of macro ‘AV_WL8’
#  182|           }
#  183|   
#  184|->         AV_WL8(pkt->data, s->frame_format);
#  185|           AV_WL8(pkt->data + 1, s->send_buffer);
#  186|           AV_WL16(pkt->data + 2, s->video_chunk_size);

Error: COMPILER_WARNING (CWE-477): [#def200]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/libsmbclient.c: scope_hint: In function ‘libsmbc_connect’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/libsmbclient.c:71:5: warning[-Wdeprecated-declarations]: ‘smbc_init’ is deprecated
/usr/include/samba-4.0/libsmbclient.h:1293:5: note: declared here
#   69|           smbc_setWorkgroup(libsmbc->ctx, libsmbc->workgroup);
#   70|   
#   71|->     if (smbc_init(NULL, 0) < 0) {
#   72|           int ret = AVERROR(errno);
#   73|           av_log(h, AV_LOG_ERROR, "Initialization failed: %s\n", strerror(errno));

Error: COMPILER_WARNING: [#def201]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/matroskaenc.c: scope_hint: In function ‘mkv_write_trailer’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/matroskaenc.c:3303:79: warning[-Wformat-truncation=]: ‘%012.9f’ directive output may be truncated writing between 12 and 320 bytes into a region of size between 8 and 14
# 3303 |                 snprintf(duration_string, sizeof(duration_string), "%02d:%02d:%012.9f",
#      |                                                                               ^~~~~~~
/usr/include/bits/stdio2.h:68:10: note: ‘__snprintf_chk’ output between 19 and 333 bytes into a destination of size 20
#   68 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
#      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   69 |                                    __glibc_objsize (__s), __fmt,
#      |                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   70 |                                    __va_arg_pack ());
#      |                                    ~~~~~~~~~~~~~~~~~
# 3301|                   put_ebml_string(tags_bc, MATROSKA_ID_TAGNAME, "DURATION");
# 3302|   
# 3303|->                 snprintf(duration_string, sizeof(duration_string), "%02d:%02d:%012.9f",
# 3304|                            (int) duration_sec / 3600, ((int) duration_sec / 60) % 60,
# 3305|                            fmod(duration_sec, 60));

Error: GCC_ANALYZER_WARNING (CWE-457): [#def202]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/mccdec.c:182:16: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘out[7]’
#  180|           out[j] = 0;
#  181|   
#  182|->         if (out[7] & 0x80)
#  183|               start += 4;
#  184|           count = (out[11] & 0x1f) * 3;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def203]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/moflex.c: scope_hint: In function ‘moflex_read_sync’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/moflex.c:232:38: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘codec_type’
#  230|                   return AVERROR(ENOMEM);
#  231|   
#  232|->             st->codecpar->codec_type = codec_type;
#  233|               st->codecpar->codec_id   = codec_id;
#  234|               st->codecpar->width      = width;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def204]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/mov.c: scope_hint: In function ‘get_frag_time’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/mov.c:1548:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
# 1546|       if (sc->has_sidx) {
# 1547|           frag_stream_info = get_frag_stream_info(frag_index, index, sc->id);
# 1548|->         if (frag_stream_info->sidx_pts != AV_NOPTS_VALUE)
# 1549|               return frag_stream_info->sidx_pts;
# 1550|           if (frag_stream_info->first_tfra_pts != AV_NOPTS_VALUE)

Error: GCC_ANALYZER_WARNING (CWE-457): [#def205]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/mov.c: scope_hint: In function ‘search_frag_timestamp’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/mov.c:1590:32: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘frag_time’
# 1588|               m++;
# 1589|   
# 1590|->         if (m < b && frag_time <= timestamp)
# 1591|               a = m;
# 1592|           else

Error: GCC_ANALYZER_WARNING (CWE-457): [#def206]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/mov.c: scope_hint: In function ‘mov_read_trun’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/mov.c:5758:47: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘dts’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/mov.c:40: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/mov.c:5560:5: note: in expansion of macro ‘av_assert0’
# 5756|       }
# 5757|       if (frag_stream_info)
# 5758|->         frag_stream_info->next_trun_dts = dts + sc->time_offset;
# 5759|       if (i < entries) {
# 5760|           // EOF found before reading all entries.  Fix the hole this would

Error: GCC_ANALYZER_WARNING (CWE-457): [#def207]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/mov.c: scope_hint: In function ‘get_current_encryption_info’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/mov.c:6767:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘st’
# 6765|           if (i == c->fc->nb_streams)
# 6766|               return 0;
# 6767|->         *sc = st->priv_data;
# 6768|   
# 6769|           if (!frag_stream_info->encryption_index) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def208]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/mov.c: scope_hint: In function ‘mov_read_sample_encryption_info’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/mov.c:6820:48: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘*sample’
# 6818|   
# 6819|       if (sc->cenc.per_sample_iv_size != 0) {
# 6820|->         if ((ret = ffio_read_size(pb, (*sample)->iv, sc->cenc.per_sample_iv_size)) < 0) {
# 6821|               av_log(c->fc, AV_LOG_ERROR, "failed to read the initialization vector\n");
# 6822|               av_encryption_info_free(*sample);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def209]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/rawvideodec.c: scope_hint: In function ‘rawvideo_read_header’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/rawvideodec.c:82:16: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pix_fmt’
#   80|           int tag;
#   81|   
#   82|->         desc = av_pix_fmt_desc_get(pix_fmt);
#   83|           st->codecpar->bits_per_coded_sample = av_get_bits_per_pixel(desc);
#   84|           if (pix_fmt == AV_PIX_FMT_YUV422P10) {

Error: GCC_ANALYZER_WARNING (CWE-457): [#def210]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/rawvideodec.c:107:23: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pix_fmt’
#  105|           packet_size = GET_PACKET_SIZE(s->width, s->height);
#  106|       } else {
#  107|->         packet_size = av_image_get_buffer_size(pix_fmt, s->width, s->height, 1);
#  108|           if (packet_size < 0)
#  109|               return packet_size;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def211]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/rdt.c: scope_hint: In function ‘ff_rdt_parse_header’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/rdt.c:201:27: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘buf’
#  199|   
#  200|       /* skip status packets */
#  201|->     while (len >= 5 && buf[1] == 0xFF /* status packet */) {
#  202|           int pkt_len;
#  203|   

Error: COMPILER_WARNING: [#def212]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/rtmpproto.c: scope_hint: In function ‘send_invoke_response’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/rtmpproto.c:2000:51: warning[-Wformat-truncation=]: ‘ is now published’ directive output may be truncated writing 17 bytes into a region of size between 1 and 128
# 2000 |         snprintf(statusmsg, sizeof(statusmsg), "%s is now published", filename);
#      |                                                   ^~~~~~~~~~~~~~~~~
/usr/include/bits/stdio2.h:68:10: note: ‘__snprintf_chk’ output between 18 and 145 bytes into a destination of size 128
#   68 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
#      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   69 |                                    __glibc_objsize (__s), __fmt,
#      |                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   70 |                                    __va_arg_pack ());
#      |                                    ~~~~~~~~~~~~~~~~~
# 1998|       } else if (!strcmp(command, "publish")) {
# 1999|           char statusmsg[128];
# 2000|->         snprintf(statusmsg, sizeof(statusmsg), "%s is now published", filename);
# 2001|           ret = write_begin(s);
# 2002|           if (ret < 0)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def213]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/rtpdec.c: scope_hint: In function ‘rtp_parse_one_packet’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/rtpdec.c:887:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘buf’
#  885|           return -1;
#  886|   
#  887|->     if ((buf[0] & 0xc0) != (RTP_VERSION << 6))
#  888|           return -1;
#  889|       if (RTP_PT_IS_RTCP(buf[1])) {

Error: GCC_ANALYZER_WARNING: [#def214]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/rtpdec_qcelp.c: scope_hint: In function ‘store_packet’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/rtpdec_qcelp.c:102:13: warning[-Wanalyzer-overlapping-buffers]: overlapping buffers passed as arguments to ‘memcpy’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/common.h:40: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/avutil.h:301: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/codec_id.h:24: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/rtpdec.h:26: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/rtpdec_formats.h:25: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/rtpdec_qcelp.c:22: included_from: Included from here.
/usr/include/string.h:43:14: note: the behavior of ‘memcpy’ is undefined for overlapping buffers
#  100|               if (len > sizeof(data->next_data))
#  101|                   return AVERROR_INVALIDDATA;
#  102|->             memcpy(data->next_data, buf, len);
#  103|               data->next_size = len;
#  104|               data->next_timestamp = *timestamp;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def215]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/rtsp.c: scope_hint: In function ‘sdp_parse_line’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/rtsp.c:629:27: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘start’
#  627|               // this is so that seeking on a streamed file can work.
#  628|               rtsp_parse_range_npt(p, &start, &end);
#  629|->             s->start_time = start;
#  630|               /* AV_NOPTS_VALUE means live broadcast (and can't seek) */
#  631|               s->duration   = (end == AV_NOPTS_VALUE) ?

Error: COMPILER_WARNING: [#def216]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/rtsp.c: scope_hint: In function ‘ff_rtsp_make_setup_request’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/rtsp.c:1591:30: warning[-Wformat-truncation=]: ‘%s’ directive output may be truncated writing up to 4095 bytes into a region of size 4085
# 1591 |                  "Transport: %s\r\n",
#      |                              ^~
# 1592 |                  transport);
#      |                  ~~~~~~~~~    
/usr/include/bits/stdio2.h:68:10: note: ‘__snprintf_chk’ output between 14 and 4109 bytes into a destination of size 4096
#   68 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
#      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   69 |                                    __glibc_objsize (__s), __fmt,
#      |                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   70 |                                    __va_arg_pack ());
#      |                                    ~~~~~~~~~~~~~~~~~
# 1589|               av_strlcat(transport, ";mode=play", sizeof(transport));
# 1590|           snprintf(cmd, sizeof(cmd),
# 1591|->                  "Transport: %s\r\n",
# 1592|                    transport);
# 1593|           if (rt->accept_dynamic_rate)

Error: COMPILER_WARNING: [#def217]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/smoothstreamingenc.c: scope_hint: In function ‘ism_flush’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/smoothstreamingenc.c:509:49: warning[-Wformat-truncation=]: ‘/temp’ directive output may be truncated writing 5 bytes into a region of size between 1 and 1024
#  509 |         snprintf(filename, sizeof(filename), "%s/temp", os->dirname);
#      |                                                 ^~~~~
/usr/include/bits/stdio2.h:68:10: note: ‘__snprintf_chk’ output between 6 and 1029 bytes into a destination of size 1024
#   68 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
#      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   69 |                                    __glibc_objsize (__s), __fmt,
#      |                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   70 |                                    __va_arg_pack ());
#      |                                    ~~~~~~~~~~~~~~~~~
#  507|               continue;
#  508|   
#  509|->         snprintf(filename, sizeof(filename), "%s/temp", os->dirname);
#  510|           ret = ffurl_open_whitelist(&os->out, filename, AVIO_FLAG_WRITE, &s->interrupt_callback, NULL, s->protocol_whitelist, s->protocol_blacklist, NULL);
#  511|           if (ret < 0)

Error: COMPILER_WARNING: [#def218]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/smoothstreamingenc.c: scope_hint: In function ‘ism_flush’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/smoothstreamingenc.c:537:53: warning[-Wformat-truncation=]: ‘/temp’ directive output may be truncated writing 5 bytes into a region of size between 1 and 1024
#  537 |             snprintf(filename, sizeof(filename), "%s/temp", os->dirname);
#      |                                                     ^~~~~
/usr/include/bits/stdio2.h:68:10: note: ‘__snprintf_chk’ output between 6 and 1029 bytes into a destination of size 1024
#   68 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
#      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   69 |                                    __glibc_objsize (__s), __fmt,
#      |                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   70 |                                    __va_arg_pack ());
#      |                                    ~~~~~~~~~~~~~~~~~
#  535|               memcpy(curr_dirname, os->dirname, sizeof(os->dirname));
#  536|               snprintf(os->dirname, sizeof(os->dirname), "%s/QualityLevels(%"PRId64")", s->url, s->streams[i]->codecpar->bit_rate);
#  537|->             snprintf(filename, sizeof(filename), "%s/temp", os->dirname);
#  538|   
#  539|               // rename the tmp folder back to the correct name since we now have the bitrate

Error: COMPILER_WARNING: [#def219]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/smoothstreamingenc.c: scope_hint: In function ‘ism_flush’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/smoothstreamingenc.c:544:63: warning[-Wformat-truncation=]: ‘/FragmentInfo(’ directive output may be truncated writing 14 bytes into a region of size between 1 and 1024
#  544 |         snprintf(header_filename, sizeof(header_filename), "%s/FragmentInfo(%s=%"PRIu64")", os->dirname, os->stream_type_tag, start_ts);
#      |                                                               ^~~~~~~~~~~~~~
/usr/include/bits/stdio2.h:68:10: note: ‘__snprintf_chk’ output 18 or more bytes (assuming 1041) into a destination of size 1024
#   68 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
#      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   69 |                                    __glibc_objsize (__s), __fmt,
#      |                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   70 |                                    __va_arg_pack ());
#      |                                    ~~~~~~~~~~~~~~~~~
#  542|           }
#  543|   
#  544|->         snprintf(header_filename, sizeof(header_filename), "%s/FragmentInfo(%s=%"PRIu64")", os->dirname, os->stream_type_tag, start_ts);
#  545|           snprintf(target_filename, sizeof(target_filename), "%s/Fragments(%s=%"PRIu64")", os->dirname, os->stream_type_tag, start_ts);
#  546|           copy_moof(s, filename, header_filename, moof_size);

Error: COMPILER_WARNING: [#def220]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/smoothstreamingenc.c: scope_hint: In function ‘ism_flush’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/smoothstreamingenc.c:545:63: warning[-Wformat-truncation=]: ‘/Fragments(’ directive output may be truncated writing 11 bytes into a region of size between 1 and 1024
#  545 |         snprintf(target_filename, sizeof(target_filename), "%s/Fragments(%s=%"PRIu64")", os->dirname, os->stream_type_tag, start_ts);
#      |                                                               ^~~~~~~~~~~
/usr/include/bits/stdio2.h:68:10: note: ‘__snprintf_chk’ output 15 or more bytes (assuming 1038) into a destination of size 1024
#   68 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
#      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   69 |                                    __glibc_objsize (__s), __fmt,
#      |                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   70 |                                    __va_arg_pack ());
#      |                                    ~~~~~~~~~~~~~~~~~
#  543|   
#  544|           snprintf(header_filename, sizeof(header_filename), "%s/FragmentInfo(%s=%"PRIu64")", os->dirname, os->stream_type_tag, start_ts);
#  545|->         snprintf(target_filename, sizeof(target_filename), "%s/Fragments(%s=%"PRIu64")", os->dirname, os->stream_type_tag, start_ts);
#  546|           copy_moof(s, filename, header_filename, moof_size);
#  547|           ret = ff_rename(filename, target_filename, s);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def221]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/smush.c:22: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/smush.c: scope_hint: In function ‘smush_read_header’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/smush.c:167:66: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘palette[i]’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:223:66: note: in definition of macro ‘AV_WN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:390:27: note: in expansion of macro ‘AV_WN32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:424:26: note: in expansion of macro ‘AV_WL’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/smush.c:167:13: note: in expansion of macro ‘AV_WL32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:223:55: note: in definition of macro ‘AV_WN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:390:27: note: in expansion of macro ‘AV_WN16’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:410:26: note: in expansion of macro ‘AV_WL’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/smush.c:165:9: note: in expansion of macro ‘AV_WL16’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:223:55: note: in definition of macro ‘AV_WN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:390:27: note: in expansion of macro ‘AV_WN32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:424:26: note: in expansion of macro ‘AV_WL’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/smush.c:167:13: note: in expansion of macro ‘AV_WL32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:223:66: note: in definition of macro ‘AV_WN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:390:27: note: in expansion of macro ‘AV_WN32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:424:26: note: in expansion of macro ‘AV_WL’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/smush.c:167:13: note: in expansion of macro ‘AV_WL32’
#  165|           AV_WL16(vst->codecpar->extradata, subversion);
#  166|           for (i = 0; i < 256; i++)
#  167|->             AV_WL32(vst->codecpar->extradata + 2 + i * 4, palette[i]);
#  168|       }
#  169|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def222]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/swfdec.c: scope_hint: In function ‘swf_read_packet’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/swfdec.c:418:20: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘st’
#  416|               if ((res = av_new_packet(pkt, out_len - colormapsize * colormapbpp)) < 0)
#  417|                   goto bitmap_end;
#  418|->             if (!st->codecpar->width && !st->codecpar->height) {
#  419|                   st->codecpar->width  = width;
#  420|                   st->codecpar->height = height;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def223]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/swfdec.c:540:35: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘st’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/swfdec.c:33: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:222:57: note: in definition of macro ‘AV_RN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:387:39: note: in expansion of macro ‘AV_RN32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:414:26: note: in expansion of macro ‘AV_RB’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/swfdec.c:520:17: note: in expansion of macro ‘AV_RB32’
#  538|   
#  539|               pkt->pos = pos;
#  540|->             pkt->stream_index = st->index;
#  541|               return pkt->size;
#  542|           } else {

Error: COMPILER_WARNING: [#def224]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/vorbiscomment.c: scope_hint: In function ‘ff_vorbiscomment_write’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/vorbiscomment.c:103:63: warning[-Wformat-truncation=]: ‘%03d’ directive output may be truncated writing between 3 and 10 bytes into a region of size 4
#  103 |             snprintf(chapter_number, sizeof(chapter_number), "%03d", i);
#      |                                                               ^~~~
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/vorbiscomment.c:103:62: note: directive argument in the range [0, 2147483647]
#  103 |             snprintf(chapter_number, sizeof(chapter_number), "%03d", i);
#      |                                                              ^~~~~~
/usr/include/bits/stdio2.h:68:10: note: ‘__snprintf_chk’ output between 4 and 11 bytes into a destination of size 4
#   68 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
#      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   69 |                                    __glibc_objsize (__s), __fmt,
#      |                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   70 |                                    __va_arg_pack ());
#      |                                    ~~~~~~~~~~~~~~~~~
#  101|               ms = av_rescale_q(chp->start, chp->time_base, av_make_q(   1, 1000)) % 1000;
#  102|               s  = s % 60;
#  103|->             snprintf(chapter_number, sizeof(chapter_number), "%03d", i);
#  104|               snprintf(chapter_time, sizeof(chapter_time), "%02d:%02d:%02d.%03d", h, m, s, ms);
#  105|               avio_wl32(pb, 10 + 1 + 12);

Error: COMPILER_WARNING: [#def225]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/vorbiscomment.c: scope_hint: In function ‘ff_vorbiscomment_write’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/vorbiscomment.c:104:69: warning[-Wformat-truncation=]: ‘%02d’ directive output may be truncated writing between 2 and 3 bytes into a region of size between 1 and 7
#  104 |             snprintf(chapter_time, sizeof(chapter_time), "%02d:%02d:%02d.%03d", h, m, s, ms);
#      |                                                                     ^~~~
ffmpeg-7.0.2-build/ffmpeg-7.0.2/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);
#      |                                                          ^~~~~~~~~~~~~~~~~~~~~
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/vorbiscomment.c:104:58: note: directive argument in the range [-999, 999]
/usr/include/bits/stdio2.h:68:10: note: ‘__snprintf_chk’ output between 13 and 21 bytes into a destination of size 13
#   68 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
#      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   69 |                                    __glibc_objsize (__s), __fmt,
#      |                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   70 |                                    __va_arg_pack ());
#      |                                    ~~~~~~~~~~~~~~~~~
#  102|               s  = s % 60;
#  103|               snprintf(chapter_number, sizeof(chapter_number), "%03d", i);
#  104|->             snprintf(chapter_time, sizeof(chapter_time), "%02d:%02d:%02d.%03d", h, m, s, ms);
#  105|               avio_wl32(pb, 10 + 1 + 12);
#  106|               avio_write(pb, "CHAPTER", 7);

Error: GCC_ANALYZER_WARNING (CWE-465): [#def226]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/webvttdec.c: scope_hint: In function ‘webvtt_read_header’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/webvttdec.c:111:12: warning[-Wanalyzer-deref-before-check]: check of ‘identifier’ for NULL after already dereferencing it
#  109|               }
#  110|           }
#  111|->         if (!identifier)
#  112|               identifier_len = 0;
#  113|           else {

Error: GCC_ANALYZER_WARNING (CWE-457): [#def227]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/cbs.c:23: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/cbs.c: scope_hint: In function ‘ff_cbs_write_unsigned’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/avassert.h:41:8: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘start_position’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/cbs_internal.h:258:13: note: in expansion of macro ‘av_assert0’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/cbs.c:670:5: note: in expansion of macro ‘CBS_TRACE_WRITE_END’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/cbs.c:30: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/cbs.c:651:5: note: in expansion of macro ‘CBS_TRACE_WRITE_START’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/cbs.c:651:5: note: in expansion of macro ‘CBS_TRACE_WRITE_START’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/cbs.c:651:5: note: in expansion of macro ‘CBS_TRACE_WRITE_START’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/cbs.c:653:5: note: in expansion of macro ‘av_assert0’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/cbs.c:653:5: note: in expansion of macro ‘av_assert0’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/cbs.c: scope_hint: In function ‘ff_cbs_write_unsigned’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/put_bits.h: scope_hint: In function ‘ff_cbs_write_unsigned’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/cbs.c: scope_hint: In function ‘ff_cbs_write_unsigned’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/cbs.c:670:5: note: in expansion of macro ‘CBS_TRACE_WRITE_END’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/cbs.c:670:5: note: in expansion of macro ‘CBS_TRACE_WRITE_END’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/cbs.c: scope_hint: In function ‘ff_cbs_write_unsigned’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/cbs_internal.h:258:13: note: in expansion of macro ‘av_assert0’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/cbs.c:670:5: note: in expansion of macro ‘CBS_TRACE_WRITE_END’
#   39|    */
#   40|   #define av_assert0(cond) do {                                           \
#   41|->     if (!(cond)) {                                                      \
#   42|           av_log(NULL, AV_LOG_PANIC, "Assertion %s failed at %s:%d\n",    \
#   43|                  AV_STRINGIFY(cond), __FILE__, __LINE__);                 \

Error: CPPCHECK_WARNING (CWE-457): [#def228]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/base64.c:100: error[legacyUninitvar]: Uninitialized variable: v
#   98|           BASE64_DEC_STEP(3);
#   99|           // Using AV_WB32 directly confuses compiler
#  100|->         v = av_be2ne32(v << 8);
#  101|           AV_WN32(dst, v);
#  102|           dst += 3;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def229]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/avutil.h:301: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/opt.h:31: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/avf_avectorscope.c:28: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/common.h:72:34: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘src[0]’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/avf_avectorscope.c:386:48: note: in expansion of macro ‘FFABS’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/macros.h:49:22: note: in definition of macro ‘FFMIN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/avf_avectorscope.c:386:48: note: in expansion of macro ‘FFABS’
#   70|    * @see FFNABS()
#   71|    */
#   72|-> #define FFABS(a) ((a) >= 0 ? (a) : (-(a)))
#   73|   #define FFSIGN(a) ((a) > 0 ? 1 : -1)
#   74|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def230]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/avutil.h:301: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/opt.h:31: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/avf_ahistogram.c:22: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/avf_ahistogram.c: scope_hint: In function ‘filter_frame’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/common.h:104:29: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yf’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/avf_ahistogram.c:398:31: note: in expansion of macro ‘av_clip_uint8’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/avf_ahistogram.c:398:31: note: in expansion of macro ‘av_clip_uint8’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/avf_ahistogram.c:398:31: note: in expansion of macro ‘av_clip_uint8’
#  102|   #endif
#  103|   #ifndef av_clip_uint8
#  104|-> #   define av_clip_uint8    av_clip_uint8_c
#  105|   #endif
#  106|   #ifndef av_clip_int8

Error: GCC_ANALYZER_WARNING (CWE-457): [#def231]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/avutil.h:301: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/codec_par.h:26: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/avformat.h:312: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/mccdec.c:22: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/mccdec.c: scope_hint: In function ‘mcc_read_header’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/common.h:140:29: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘rate.den’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/mccdec.c:145:14: note: in expansion of macro ‘av_sat_add64’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/mccdec.c:145:14: note: in expansion of macro ‘av_sat_add64’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/mccdec.c:145:14: note: in expansion of macro ‘av_sat_add64’
#  138|   #endif
#  139|   #ifndef av_sat_add64
#  140|-> #   define av_sat_add64     av_sat_add64_c
#  141|   #endif
#  142|   #ifndef av_sat_sub64

Error: GCC_ANALYZER_WARNING (CWE-457): [#def232]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/common.h:181:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘cpl_start’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/ac3enc.c:31: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/ac3enc.c: scope_hint: In function ‘set_bandwidth’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/attributes.h:154:26: note: in definition of macro ‘av_uninit’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/attributes.h:154:26: note: in definition of macro ‘av_uninit’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/ac3enc.c:2429:26: note: in expansion of macro ‘av_clip’
#  179|       if (amin > amax) abort();
#  180|   #endif
#  181|->     if      (a < amin) return amin;
#  182|       else if (a > amax) return amax;
#  183|       else               return a;

Error: CPPCHECK_WARNING (CWE-758): [#def233]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/common.h:210: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
#  208|   static av_always_inline av_const uint8_t av_clip_uint8_c(int a)
#  209|   {
#  210|->     if (a&(~0xFF)) return (~a)>>31;
#  211|       else           return a;
#  212|   }

Error: CPPCHECK_WARNING (CWE-758): [#def234]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/common.h:221: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
#  219|   static av_always_inline av_const int8_t av_clip_int8_c(int a)
#  220|   {
#  221|->     if ((a+0x80U) & ~0xFF) return (a>>31) ^ 0x7F;
#  222|       else                  return a;
#  223|   }

Error: CPPCHECK_WARNING (CWE-758): [#def235]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/common.h:232: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
#  230|   static av_always_inline av_const uint16_t av_clip_uint16_c(int a)
#  231|   {
#  232|->     if (a&(~0xFFFF)) return (~a)>>31;
#  233|       else             return a;
#  234|   }

Error: CPPCHECK_WARNING (CWE-758): [#def236]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/common.h:243: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
#  241|   static av_always_inline av_const int16_t av_clip_int16_c(int a)
#  242|   {
#  243|->     if ((a+0x8000U) & ~0xFFFF) return (a>>31) ^ 0x7FFF;
#  244|       else                      return a;
#  245|   }

Error: CPPCHECK_WARNING (CWE-758): [#def237]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/common.h:254: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
#  252|   static av_always_inline av_const int32_t av_clipl_int32_c(int64_t a)
#  253|   {
#  254|->     if ((a+0x80000000u) & ~UINT64_C(0xFFFFFFFF)) return (int32_t)((a>>63) ^ 0x7FFFFFFF);
#  255|       else                                         return (int32_t)a;
#  256|   }

Error: CPPCHECK_WARNING (CWE-758): [#def238]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/common.h:267: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
#  265|   {
#  266|       if (((unsigned)a + (1 << p)) & ~((2 << p) - 1))
#  267|->         return (a >> 31) ^ ((1 << p) - 1);
#  268|       else
#  269|           return a;

Error: CPPCHECK_WARNING (CWE-758): [#def239]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/common.h:280: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
#  278|   static av_always_inline av_const unsigned av_clip_uintp2_c(int a, int p)
#  279|   {
#  280|->     if (a & ~((1<<p) - 1)) return (~a) >> 31 & ((1<<p) - 1);
#  281|       else                   return  a;
#  282|   }

Error: CPPCHECK_WARNING (CWE-758): [#def240]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/common.h:357: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
#  355|       int64_t s = a+(uint64_t)b;
#  356|       if ((int64_t)(a^b | ~s^b) >= 0)
#  357|->         return INT64_MAX ^ (b >> 63);
#  358|       return s;
#  359|   #endif

Error: CPPCHECK_WARNING (CWE-758): [#def241]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/crc.c:358: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
#  356|           } else {
#  357|               for (c = i << 24, j = 0; j < 8; j++)
#  358|->                 c = (c << 1) ^ ((poly << (32 - bits)) & (((int32_t) c) >> 31));
#  359|               ctx[i] = av_bswap32(c);
#  360|           }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def242]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/mem.c: scope_hint: In function ‘av_dynarray_add_nofree’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/dynarray.h:62:12: warning[-Wanalyzer-malloc-leak]: leak of ‘tab’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/mem.c:318:5: note: in expansion of macro ‘FF_DYNARRAY_ADD’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/mem.c:318:5: note: in expansion of macro ‘FF_DYNARRAY_ADD’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/mem.c:318:5: note: in expansion of macro ‘FF_DYNARRAY_ADD’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/mem.c:318:5: note: in expansion of macro ‘FF_DYNARRAY_ADD’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/mem.c:318:5: note: in expansion of macro ‘FF_DYNARRAY_ADD’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/mem.c:318:5: note: in expansion of macro ‘FF_DYNARRAY_ADD’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/mem.c:318:5: note: in expansion of macro ‘FF_DYNARRAY_ADD’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/mem.c:318:5: note: in expansion of macro ‘FF_DYNARRAY_ADD’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/dynarray.h:66:13: note: in definition of macro ‘FF_DYNARRAY_ADD’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/mem.c:322:16: note: in expansion of macro ‘AVERROR’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/mem.c:318:5: note: in expansion of macro ‘FF_DYNARRAY_ADD’
#   60|               } \
#   61|           } \
#   62|->         if (av_size_new) { \
#   63|               { av_success } \
#   64|               (av_size)++; \

Error: GCC_ANALYZER_WARNING (CWE-688): [#def243]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/fifo.c: scope_hint: In function ‘fifo_write_common’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/fifo.c:171:13: warning[-Wanalyzer-null-argument]: use of NULL ‘buf’ where non-null expected
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/version.h:30: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/log.h:26: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/avassert.h:34: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/fifo.c:26: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/macros.h:49:22: note: in definition of macro ‘FFMIN’
<built-in>: note: argument 2 of ‘__builtin_memcpy’ must be non-null
#  169|                   break;
#  170|           } else {
#  171|->             memcpy(wptr, buf, len * f->elem_size);
#  172|               buf += len * f->elem_size;
#  173|           }

Error: GCC_ANALYZER_WARNING (CWE-688): [#def244]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/fifo.c: scope_hint: In function ‘fifo_peek_common’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/fifo.c:226:13: warning[-Wanalyzer-null-argument]: use of NULL ‘buf’ where non-null expected
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/macros.h:49:22: note: in definition of macro ‘FFMIN’
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
#  224|                   break;
#  225|           } else {
#  226|->             memcpy(buf, rptr, len * f->elem_size);
#  227|               buf += len * f->elem_size;
#  228|           }

Error: GCC_ANALYZER_WARNING (CWE-126): [#def245]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/frame.c: scope_hint: In function ‘av_frame_apply_cropping’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/frame.c:1028:34: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/frame.c:1028:34: note: read of 8 bytes from after the end of ‘offsets’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/frame.c:1028:34: note: valid subscripts for ‘offsets’ are ‘[0]’ to ‘[3]’
# 1026|   
# 1027|       for (int i = 0; frame->data[i]; i++)
# 1028|->         frame->data[i] += offsets[i];
# 1029|   
# 1030|       frame->width      -= (frame->crop_left + frame->crop_right);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def246]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/hwcontext_vaapi.c: scope_hint: In function ‘vaapi_device_derive’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/hwcontext_vaapi.c:1985:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/common.h:43: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/hwcontext_vaapi.c:54: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/hwcontext_vaapi.c:1989:20: note: in expansion of macro ‘AVERROR’
# 1983|           priv = av_mallocz(sizeof(*priv));
# 1984|           if (!priv) {
# 1985|->             if (fd != src_hwctx->fd) {
# 1986|                   // The fd was opened in this function.
# 1987|                   close(fd);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def247]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/hwcontext_vulkan.c: scope_hint: In function ‘vulkan_free_internal’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/hwcontext_vulkan.c:1796:34: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘f’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/hwcontext_vulkan.c: scope_hint: In function ‘vulkan_free_internal’
# 1794|   static void vulkan_free_internal(AVVkFrame *f)
# 1795|   {
# 1796|->     av_unused AVVkFrameInternal *internal = f->internal;
# 1797|   
# 1798|   #if CONFIG_CUDA

Error: GCC_ANALYZER_WARNING (CWE-476): [#def248]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/hwcontext_vulkan.c: scope_hint: In function ‘vulkan_map_to_drm’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/hwcontext_vulkan.c:3235:18: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
# 3233|               .aspectMask = VK_IMAGE_ASPECT_MEMORY_PLANE_0_BIT_EXT,
# 3234|           };
# 3235|->         VkFormat plane_vkfmt = av_vkfmt_from_pixfmt(hwfc->sw_format)[i];
# 3236|   
# 3237|           drm_desc->layers[i].format    = vulkan_fmt_to_drm(plane_vkfmt);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def249]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:32: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/nellymoserdec.c:44: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h: scope_hint: In function ‘get_bits’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:222:60: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘*s.gb.buffer_end’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:362:23: note: in expansion of macro ‘AV_RN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:389:27: note: in expansion of macro ‘AV_RN32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:421:26: note: in expansion of macro ‘AV_RL’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:194:30: note: in expansion of macro ‘AV_RL32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:209:36: note: in expansion of macro ‘UPDATE_CACHE_LE_EXT’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:218:33: note: in expansion of macro ‘UPDATE_CACHE_LE’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:340:5: note: in expansion of macro ‘UPDATE_CACHE’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:222:57: note: in definition of macro ‘AV_RN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:389:27: note: in expansion of macro ‘AV_RN32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:421:26: note: in expansion of macro ‘AV_RL’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:194:30: note: in expansion of macro ‘AV_RL32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:209:36: note: in expansion of macro ‘UPDATE_CACHE_LE_EXT’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:218:33: note: in expansion of macro ‘UPDATE_CACHE_LE’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:340:5: note: in expansion of macro ‘UPDATE_CACHE’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:222:57: note: in definition of macro ‘AV_RN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:389:27: note: in expansion of macro ‘AV_RN32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:421:26: note: in expansion of macro ‘AV_RL’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:194:30: note: in expansion of macro ‘AV_RL32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:209:36: note: in expansion of macro ‘UPDATE_CACHE_LE_EXT’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:218:33: note: in expansion of macro ‘UPDATE_CACHE_LE’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:340:5: note: in expansion of macro ‘UPDATE_CACHE’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:362:23: note: in expansion of macro ‘AV_RN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:389:27: note: in expansion of macro ‘AV_RN32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:421:26: note: in expansion of macro ‘AV_RL’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:194:30: note: in expansion of macro ‘AV_RL32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:209:36: note: in expansion of macro ‘UPDATE_CACHE_LE_EXT’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:218:33: note: in expansion of macro ‘UPDATE_CACHE_LE’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:340:5: note: in expansion of macro ‘UPDATE_CACHE’
#  220|   union unaligned_16 { uint16_t l; } __attribute__((packed)) av_alias;
#  221|   
#  222|-> #   define AV_RN(s, p) (((const union unaligned_##s *) (p))->l)
#  223|   #   define AV_WN(s, p, v) ((((union unaligned_##s *) (p))->l) = (v))
#  224|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def250]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bytestream.h:31: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/atrac3.c:46: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h: scope_hint: In function ‘get_bits’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:222:60: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:362:23: note: in expansion of macro ‘AV_RN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:387:39: note: in expansion of macro ‘AV_RN32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:414:26: note: in expansion of macro ‘AV_RB’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:191:5: note: in expansion of macro ‘AV_RB32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:211:36: note: in expansion of macro ‘UPDATE_CACHE_BE_EXT’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:225:33: note: in expansion of macro ‘UPDATE_CACHE_BE’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:340:5: note: in expansion of macro ‘UPDATE_CACHE’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/atrac3.c:49: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:222:57: note: in definition of macro ‘AV_RN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:387:39: note: in expansion of macro ‘AV_RN32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:414:26: note: in expansion of macro ‘AV_RB’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:191:5: note: in expansion of macro ‘AV_RB32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:211:36: note: in expansion of macro ‘UPDATE_CACHE_BE_EXT’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:225:33: note: in expansion of macro ‘UPDATE_CACHE_BE’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:340:5: note: in expansion of macro ‘UPDATE_CACHE’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:222:57: note: in definition of macro ‘AV_RN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:387:39: note: in expansion of macro ‘AV_RN32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:414:26: note: in expansion of macro ‘AV_RB’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:191:5: note: in expansion of macro ‘AV_RB32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:211:36: note: in expansion of macro ‘UPDATE_CACHE_BE_EXT’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:225:33: note: in expansion of macro ‘UPDATE_CACHE_BE’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:340:5: note: in expansion of macro ‘UPDATE_CACHE’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:362:23: note: in expansion of macro ‘AV_RN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:387:39: note: in expansion of macro ‘AV_RN32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:414:26: note: in expansion of macro ‘AV_RB’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:191:5: note: in expansion of macro ‘AV_RB32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:211:36: note: in expansion of macro ‘UPDATE_CACHE_BE_EXT’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:225:33: note: in expansion of macro ‘UPDATE_CACHE_BE’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:340:5: note: in expansion of macro ‘UPDATE_CACHE’
#  220|   union unaligned_16 { uint16_t l; } __attribute__((packed)) av_alias;
#  221|   
#  222|-> #   define AV_RN(s, p) (((const union unaligned_##s *) (p))->l)
#  223|   #   define AV_WN(s, p, v) ((((union unaligned_##s *) (p))->l) = (v))
#  224|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def251]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/put_bits.h:33: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/rtpenc_h263_rfc2190.c:24: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h: scope_hint: In function ‘get_bits’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:222:60: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘gb.buffer_end’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:362:23: note: in expansion of macro ‘AV_RN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:387:39: note: in expansion of macro ‘AV_RN32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:414:26: note: in expansion of macro ‘AV_RB’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:191:5: note: in expansion of macro ‘AV_RB32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:211:36: note: in expansion of macro ‘UPDATE_CACHE_BE_EXT’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:225:33: note: in expansion of macro ‘UPDATE_CACHE_BE’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:340:5: note: in expansion of macro ‘UPDATE_CACHE’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/rtpenc_h263_rfc2190.c:25: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:222:57: note: in definition of macro ‘AV_RN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:387:39: note: in expansion of macro ‘AV_RN32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:414:26: note: in expansion of macro ‘AV_RB’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:191:5: note: in expansion of macro ‘AV_RB32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:211:36: note: in expansion of macro ‘UPDATE_CACHE_BE_EXT’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:225:33: note: in expansion of macro ‘UPDATE_CACHE_BE’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:340:5: note: in expansion of macro ‘UPDATE_CACHE’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:222:57: note: in definition of macro ‘AV_RN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:387:39: note: in expansion of macro ‘AV_RN32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:414:26: note: in expansion of macro ‘AV_RB’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:191:5: note: in expansion of macro ‘AV_RB32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:211:36: note: in expansion of macro ‘UPDATE_CACHE_BE_EXT’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:225:33: note: in expansion of macro ‘UPDATE_CACHE_BE’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:340:5: note: in expansion of macro ‘UPDATE_CACHE’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:362:23: note: in expansion of macro ‘AV_RN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:387:39: note: in expansion of macro ‘AV_RN32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:414:26: note: in expansion of macro ‘AV_RB’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:191:5: note: in expansion of macro ‘AV_RB32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:211:36: note: in expansion of macro ‘UPDATE_CACHE_BE_EXT’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:225:33: note: in expansion of macro ‘UPDATE_CACHE_BE’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:340:5: note: in expansion of macro ‘UPDATE_CACHE’
#  220|   union unaligned_16 { uint16_t l; } __attribute__((packed)) av_alias;
#  221|   
#  222|-> #   define AV_RN(s, p) (((const union unaligned_##s *) (p))->l)
#  223|   #   define AV_WN(s, p, v) ((((union unaligned_##s *) (p))->l) = (v))
#  224|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def252]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:32: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/dvbsubdec.c:23: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h: scope_hint: In function ‘get_bits’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:222:60: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘gb.buffer’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:362:23: note: in expansion of macro ‘AV_RN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:387:39: note: in expansion of macro ‘AV_RN32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:414:26: note: in expansion of macro ‘AV_RB’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:191:5: note: in expansion of macro ‘AV_RB32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:211:36: note: in expansion of macro ‘UPDATE_CACHE_BE_EXT’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:225:33: note: in expansion of macro ‘UPDATE_CACHE_BE’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:340:5: note: in expansion of macro ‘UPDATE_CACHE’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/dvbsubdec.c: scope_hint: In function ‘get_bits’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:358:23: note: in expansion of macro ‘AV_RN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:387:39: note: in expansion of macro ‘AV_RN16’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:400:26: note: in expansion of macro ‘AV_RB’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/dvbsubdec.c:1006:25: note: in expansion of macro ‘AV_RB16’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/dvbsubdec.c: scope_hint: In function ‘get_bits’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:222:57: note: in definition of macro ‘AV_RN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:387:39: note: in expansion of macro ‘AV_RN32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:414:26: note: in expansion of macro ‘AV_RB’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:191:5: note: in expansion of macro ‘AV_RB32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:211:36: note: in expansion of macro ‘UPDATE_CACHE_BE_EXT’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:225:33: note: in expansion of macro ‘UPDATE_CACHE_BE’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:340:5: note: in expansion of macro ‘UPDATE_CACHE’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:222:57: note: in definition of macro ‘AV_RN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:387:39: note: in expansion of macro ‘AV_RN32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:414:26: note: in expansion of macro ‘AV_RB’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:191:5: note: in expansion of macro ‘AV_RB32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:211:36: note: in expansion of macro ‘UPDATE_CACHE_BE_EXT’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:225:33: note: in expansion of macro ‘UPDATE_CACHE_BE’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:340:5: note: in expansion of macro ‘UPDATE_CACHE’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:362:23: note: in expansion of macro ‘AV_RN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:387:39: note: in expansion of macro ‘AV_RN32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:414:26: note: in expansion of macro ‘AV_RB’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:191:5: note: in expansion of macro ‘AV_RB32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:211:36: note: in expansion of macro ‘UPDATE_CACHE_BE_EXT’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:225:33: note: in expansion of macro ‘UPDATE_CACHE_BE’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:340:5: note: in expansion of macro ‘UPDATE_CACHE’
#  220|   union unaligned_16 { uint16_t l; } __attribute__((packed)) av_alias;
#  221|   
#  222|-> #   define AV_RN(s, p) (((const union unaligned_##s *) (p))->l)
#  223|   #   define AV_WN(s, p, v) ((((union unaligned_##s *) (p))->l) = (v))
#  224|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def253]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/rtpenc_vc2hq.c:22: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/golomb.h: scope_hint: In function ‘get_interleaved_ue_golomb’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:222:60: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘gc.buffer_end’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:362:23: note: in expansion of macro ‘AV_RN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:387:39: note: in expansion of macro ‘AV_RN32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:414:26: note: in expansion of macro ‘AV_RB’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:191:5: note: in expansion of macro ‘AV_RB32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:211:36: note: in expansion of macro ‘UPDATE_CACHE_BE_EXT’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:225:33: note: in expansion of macro ‘UPDATE_CACHE_BE’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/golomb.h:175:5: note: in expansion of macro ‘UPDATE_CACHE’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:362:23: note: in expansion of macro ‘AV_RN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:387:39: note: in expansion of macro ‘AV_RN32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:414:26: note: in expansion of macro ‘AV_RB’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/rtpenc_vc2hq.c:60:14: note: in expansion of macro ‘AV_RB32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/rtpenc_vc2hq.c:24: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/rtpenc_vc2hq.c:25: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:222:57: note: in definition of macro ‘AV_RN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:387:39: note: in expansion of macro ‘AV_RN32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:414:26: note: in expansion of macro ‘AV_RB’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:191:5: note: in expansion of macro ‘AV_RB32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:211:36: note: in expansion of macro ‘UPDATE_CACHE_BE_EXT’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:225:33: note: in expansion of macro ‘UPDATE_CACHE_BE’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/golomb.h:175:5: note: in expansion of macro ‘UPDATE_CACHE’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:222:57: note: in definition of macro ‘AV_RN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:387:39: note: in expansion of macro ‘AV_RN32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:414:26: note: in expansion of macro ‘AV_RB’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:191:5: note: in expansion of macro ‘AV_RB32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:211:36: note: in expansion of macro ‘UPDATE_CACHE_BE_EXT’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:225:33: note: in expansion of macro ‘UPDATE_CACHE_BE’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/golomb.h:175:5: note: in expansion of macro ‘UPDATE_CACHE’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:362:23: note: in expansion of macro ‘AV_RN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:387:39: note: in expansion of macro ‘AV_RN32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:414:26: note: in expansion of macro ‘AV_RB’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:191:5: note: in expansion of macro ‘AV_RB32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:211:36: note: in expansion of macro ‘UPDATE_CACHE_BE_EXT’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:225:33: note: in expansion of macro ‘UPDATE_CACHE_BE’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/golomb.h:175:5: note: in expansion of macro ‘UPDATE_CACHE’
#  220|   union unaligned_16 { uint16_t l; } __attribute__((packed)) av_alias;
#  221|   
#  222|-> #   define AV_RN(s, p) (((const union unaligned_##s *) (p))->l)
#  223|   #   define AV_WN(s, p, v) ((((union unaligned_##s *) (p))->l) = (v))
#  224|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def254]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bytestream.h:31: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/pcx.c:26: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h: scope_hint: In function ‘get_bits’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:222:60: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘s.buffer’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:362:23: note: in expansion of macro ‘AV_RN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:387:39: note: in expansion of macro ‘AV_RN32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:414:26: note: in expansion of macro ‘AV_RB’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:191:5: note: in expansion of macro ‘AV_RB32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:211:36: note: in expansion of macro ‘UPDATE_CACHE_BE_EXT’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:225:33: note: in expansion of macro ‘UPDATE_CACHE_BE’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:340:5: note: in expansion of macro ‘UPDATE_CACHE’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bytestream.h:99:1: note: in expansion of macro ‘DEF’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bytestream.h:99:1: note: in expansion of macro ‘DEF’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/pcx.c: scope_hint: In function ‘get_bits’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bytestream.h:99:1: note: in expansion of macro ‘DEF’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/bytestream.h:99:1: note: in expansion of macro ‘DEF’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/pcx.c: scope_hint: In function ‘get_bits’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/pcx.c:29: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:222:57: note: in definition of macro ‘AV_RN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:387:39: note: in expansion of macro ‘AV_RN32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:414:26: note: in expansion of macro ‘AV_RB’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:191:5: note: in expansion of macro ‘AV_RB32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:211:36: note: in expansion of macro ‘UPDATE_CACHE_BE_EXT’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:225:33: note: in expansion of macro ‘UPDATE_CACHE_BE’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:340:5: note: in expansion of macro ‘UPDATE_CACHE’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:222:57: note: in definition of macro ‘AV_RN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:387:39: note: in expansion of macro ‘AV_RN32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:414:26: note: in expansion of macro ‘AV_RB’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:191:5: note: in expansion of macro ‘AV_RB32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:211:36: note: in expansion of macro ‘UPDATE_CACHE_BE_EXT’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:225:33: note: in expansion of macro ‘UPDATE_CACHE_BE’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:340:5: note: in expansion of macro ‘UPDATE_CACHE’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:362:23: note: in expansion of macro ‘AV_RN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:387:39: note: in expansion of macro ‘AV_RN32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:414:26: note: in expansion of macro ‘AV_RB’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:191:5: note: in expansion of macro ‘AV_RB32’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:211:36: note: in expansion of macro ‘UPDATE_CACHE_BE_EXT’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:225:33: note: in expansion of macro ‘UPDATE_CACHE_BE’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavcodec/get_bits.h:340:5: note: in expansion of macro ‘UPDATE_CACHE’
#  220|   union unaligned_16 { uint16_t l; } __attribute__((packed)) av_alias;
#  221|   
#  222|-> #   define AV_RN(s, p) (((const union unaligned_##s *) (p))->l)
#  223|   #   define AV_WN(s, p, v) ((((union unaligned_##s *) (p))->l) = (v))
#  224|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def255]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/rtpdec_qdm2.c:30: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/rtpdec_qdm2.c: scope_hint: In function ‘qdm2_restore_block’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:223:63: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘csum_pos’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:370:26: note: in expansion of macro ‘AV_WN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:388:27: note: in expansion of macro ‘AV_WN16’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:403:26: note: in expansion of macro ‘AV_WB’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/rtpdec_qdm2.c:231:9: note: in expansion of macro ‘AV_WB16’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/rtpdec_qdm2.c:29: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/rtpdec_qdm2.c:193:5: note: in expansion of macro ‘av_assert0’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/rtpdec_qdm2.c:197:5: note: in expansion of macro ‘av_assert0’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/version.h:30: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/log.h:26: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/avassert.h:34: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/macros.h:49:22: note: in definition of macro ‘FFMIN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:370:26: note: in expansion of macro ‘AV_WN’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:388:27: note: in expansion of macro ‘AV_WN16’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intreadwrite.h:403:26: note: in expansion of macro ‘AV_WB’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavformat/rtpdec_qdm2.c:231:9: note: in expansion of macro ‘AV_WB16’
#  221|   
#  222|   #   define AV_RN(s, p) (((const union unaligned_##s *) (p))->l)
#  223|-> #   define AV_WN(s, p, v) ((((union unaligned_##s *) (p))->l) = (v))
#  224|   
#  225|   #elif defined(_MSC_VER) && (defined(_M_ARM) || defined(_M_X64) || defined(_M_ARM64)) && AV_HAVE_FAST_UNALIGNED

Error: GCC_ANALYZER_WARNING (CWE-401): [#def256]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/mem.c: scope_hint: In function ‘av_freep’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/mem.c:250:5: warning[-Wanalyzer-malloc-leak]: leak of ‘*((void **)arg)’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/mem.c:42: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/mem.c:346:5: note: in expansion of macro ‘FF_DYNARRAY_ADD’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/mem.c:346:5: note: in expansion of macro ‘FF_DYNARRAY_ADD’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/mem.c:346:5: note: in expansion of macro ‘FF_DYNARRAY_ADD’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/mem.c:346:5: note: in expansion of macro ‘FF_DYNARRAY_ADD’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/mem.c:346:5: note: in expansion of macro ‘FF_DYNARRAY_ADD’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/mem.c:346:5: note: in expansion of macro ‘FF_DYNARRAY_ADD’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/mem.c:346:5: note: in expansion of macro ‘FF_DYNARRAY_ADD’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/dynarray.h:66:13: note: in definition of macro ‘FF_DYNARRAY_ADD’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/dynarray.h:66:13: note: in definition of macro ‘FF_DYNARRAY_ADD’
#  248|   
#  249|       memcpy(&val, arg, sizeof(val));
#  250|->     memcpy(arg, &(void *){ NULL }, sizeof(val));
#  251|       av_free(val);
#  252|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def257]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/mem.c: scope_hint: In function ‘av_dynarray_add’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/mem.c:339:1: warning[-Wanalyzer-malloc-leak]: leak of ‘tab’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/mem.c:332:5: note: in expansion of macro ‘FF_DYNARRAY_ADD’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/mem.c:332:5: note: in expansion of macro ‘FF_DYNARRAY_ADD’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/mem.c:332:5: note: in expansion of macro ‘FF_DYNARRAY_ADD’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/mem.c:332:5: note: in expansion of macro ‘FF_DYNARRAY_ADD’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/mem.c:332:5: note: in expansion of macro ‘FF_DYNARRAY_ADD’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/mem.c:332:5: note: in expansion of macro ‘FF_DYNARRAY_ADD’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/mem.c:332:5: note: in expansion of macro ‘FF_DYNARRAY_ADD’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/dynarray.h:66:13: note: in definition of macro ‘FF_DYNARRAY_ADD’
#  337|           av_freep(tab_ptr);
#  338|       });
#  339|-> }
#  340|   
#  341|   void *av_dynarray2_add(void **tab_ptr, int *nb_ptr, size_t elem_size,

Error: GCC_ANALYZER_WARNING (CWE-457): [#def258]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/opt.c: scope_hint: In function ‘av_opt_is_set_to_default_by_name’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/opt.c:2381:12: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘target’
# 2379|       if (!o)
# 2380|           return AVERROR_OPTION_NOT_FOUND;
# 2381|->     return av_opt_is_set_to_default(target, o);
# 2382|   }
# 2383|   

Error: CPPCHECK_WARNING (CWE-758): [#def259]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/rational.h:92: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
#   90|       const int64_t tmp= a.num * (int64_t)b.den - b.num * (int64_t)a.den;
#   91|   
#   92|->     if(tmp) return (int)((tmp ^ a.den ^ b.den)>>63)|1;
#   93|       else if(b.den && a.den) return 0;
#   94|       else if(a.num && b.num) return (a.num>>31) - (b.num>>31);

Error: CPPCHECK_WARNING (CWE-758): [#def260]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/rational.h:94: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
#   92|       if(tmp) return (int)((tmp ^ a.den ^ b.den)>>63)|1;
#   93|       else if(b.den && a.den) return 0;
#   94|->     else if(a.num && b.num) return (a.num>>31) - (b.num>>31);
#   95|       else                    return INT_MIN;
#   96|   }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def261]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/utils.c: scope_hint: In function ‘av_assert0_fpu’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/utils.c:104:6: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘state’
#  102|   #if HAVE_MMX_INLINE
#  103|       uint16_t state[14];
#  104|->      __asm__ volatile (
#  105|           "fstenv %0 \n\t"
#  106|           : "+m" (state)

Error: GCC_ANALYZER_WARNING (CWE-457): [#def262]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/intmath.h:34: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/common.h:49: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/avutil.h:301: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/avfilter.h:41: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vsrc_gradients.c:21: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vsrc_gradients.c: scope_hint: In function ‘project’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/x86/intmath.h:123:18: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘od_s_q’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vsrc_gradients.c:249:12: note: in expansion of macro ‘av_clipf’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vsrc_gradients.c:249:12: note: in expansion of macro ‘av_clipf’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vsrc_gradients.c:249:12: note: in expansion of macro ‘av_clipf’
#  121|   #if defined(__SSE__) && !defined(__INTEL_COMPILER)
#  122|   
#  123|-> #define av_clipf av_clipf_sse
#  124|   static av_always_inline av_const float av_clipf_sse(float a, float amin, float amax)
#  125|   {

Error: GCC_ANALYZER_WARNING (CWE-457): [#def263]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/x86/intmath.h:123:18: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘op_x_od’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vsrc_gradients.c:249:12: note: in expansion of macro ‘av_clipf’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vsrc_gradients.c:249:12: note: in expansion of macro ‘av_clipf’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/vsrc_gradients.c:249:12: note: in expansion of macro ‘av_clipf’
#  121|   #if defined(__SSE__) && !defined(__INTEL_COMPILER)
#  122|   
#  123|-> #define av_clipf av_clipf_sse
#  124|   static av_always_inline av_const float av_clipf_sse(float a, float amin, float amax)
#  125|   {

Error: GCC_ANALYZER_WARNING (CWE-457): [#def264]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/x86/intmath.h:129:5: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘ret’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/avf_showcwt.c: scope_hint: In function ‘remap_log’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavfilter/avf_showcwt.c:343:12: note: in expansion of macro ‘av_clipf’
#  127|       if (amin > amax) abort();
#  128|   #endif
#  129|->     __asm__ ("maxss %1, %0 \n\t"
#  130|                "minss %2, %0 \n\t"
#  131|                : "+&x"(a) : "xm"(amin), "xm"(amax));

Error: GCC_ANALYZER_WARNING (CWE-457): [#def265]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libswscale/x86/hscale_fast_bilinear_simd.c: scope_hint: In function ‘ff_hyscale_fast_mmxext’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libswscale/x86/hscale_fast_bilinear_simd.c:209:5: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘retsave’
#  207|   #endif
#  208|   
#  209|->     __asm__ volatile(
#  210|   #if ARCH_X86_64
#  211|           "mov               -8(%%rsp), %%"FF_REG_a"    \n\t"

Error: GCC_ANALYZER_WARNING (CWE-457): [#def266]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libswscale/x86/hscale_fast_bilinear_simd.c: scope_hint: In function ‘ff_hcscale_fast_mmxext’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libswscale/x86/hscale_fast_bilinear_simd.c:298:5: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘retsave’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libswscale/swscale_internal.h:33: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libswscale/x86/hscale_fast_bilinear_simd.c:21: included_from: Included from here.
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/mem_internal.h:85:73: note: in definition of macro ‘DECLARE_ALIGNED_T’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/mem_internal.h:113:34: note: in expansion of macro ‘DECLARE_ALIGNED_8’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/mem_internal.h:109:32: note: in expansion of macro ‘DECLARE_ALIGNED_V’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libswscale/x86/hscale_fast_bilinear_simd.c:292:5: note: in expansion of macro ‘DECLARE_ALIGNED’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/mem_internal.h:85:73: note: in definition of macro ‘DECLARE_ALIGNED_T’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/mem_internal.h:113:34: note: in expansion of macro ‘DECLARE_ALIGNED_8’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libavutil/mem_internal.h:109:32: note: in expansion of macro ‘DECLARE_ALIGNED_V’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/libswscale/x86/hscale_fast_bilinear_simd.c:292:5: note: in expansion of macro ‘DECLARE_ALIGNED’
#  296|   #endif
#  297|   #endif
#  298|->     __asm__ volatile(
#  299|   #if ARCH_X86_64
#  300|           "mov          -8(%%rsp), %%"FF_REG_a"    \n\t"

Error: GCC_ANALYZER_WARNING (CWE-775): [#def267]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/tools/graph2dot.c: scope_hint: In function ‘main’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/tools/graph2dot.c:148:8: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(infilename, "r")’
#  146|           outfilename = "/dev/stdout";
#  147|       outfile = fopen(outfilename, "w");
#  148|->     if (!outfile) {
#  149|           fprintf(stderr, "Failed to open output file '%s': %s\n",
#  150|                   outfilename, strerror(errno));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def268]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/tools/graph2dot.c:148:8: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(infilename, "r")’
#  146|           outfilename = "/dev/stdout";
#  147|       outfile = fopen(outfilename, "w");
#  148|->     if (!outfile) {
#  149|           fprintf(stderr, "Failed to open output file '%s': %s\n",
#  150|                   outfilename, strerror(errno));

Error: GCC_ANALYZER_WARNING (CWE-775): [#def269]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/tools/graph2dot.c:160:12: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(infilename, "r")’
#  158|           char *p;
#  159|           last_line = first_line = av_malloc(sizeof(struct line));
#  160|->         if (!last_line) {
#  161|               fprintf(stderr, "Memory allocation failure\n");
#  162|               return 1;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def270]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/tools/graph2dot.c:160:12: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(outfilename, "w")’
#  158|           char *p;
#  159|           last_line = first_line = av_malloc(sizeof(struct line));
#  160|->         if (!last_line) {
#  161|               fprintf(stderr, "Memory allocation failure\n");
#  162|               return 1;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def271]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/tools/graph2dot.c:160:12: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(infilename, "r")’
#  158|           char *p;
#  159|           last_line = first_line = av_malloc(sizeof(struct line));
#  160|->         if (!last_line) {
#  161|               fprintf(stderr, "Memory allocation failure\n");
#  162|               return 1;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def272]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/tools/graph2dot.c:160:12: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(outfilename, "w")’
#  158|           char *p;
#  159|           last_line = first_line = av_malloc(sizeof(struct line));
#  160|->         if (!last_line) {
#  161|               fprintf(stderr, "Memory allocation failure\n");
#  162|               return 1;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def273]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/tools/graph2dot.c:165:31: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(infilename, "r")’
#  163|           }
#  164|   
#  165|->         while (fgets(last_line->data, sizeof(last_line->data), infile)) {
#  166|               struct line *new_line = av_malloc(sizeof(struct line));
#  167|               if (!new_line) {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def274]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/tools/graph2dot.c:165:31: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(outfilename, "w")’
#  163|           }
#  164|   
#  165|->         while (fgets(last_line->data, sizeof(last_line->data), infile)) {
#  166|               struct line *new_line = av_malloc(sizeof(struct line));
#  167|               if (!new_line) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def275]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/tools/graph2dot.c:165:31: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(infilename, "r")’
#  163|           }
#  164|   
#  165|->         while (fgets(last_line->data, sizeof(last_line->data), infile)) {
#  166|               struct line *new_line = av_malloc(sizeof(struct line));
#  167|               if (!new_line) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def276]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/tools/graph2dot.c:165:31: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(outfilename, "w")’
#  163|           }
#  164|   
#  165|->         while (fgets(last_line->data, sizeof(last_line->data), infile)) {
#  166|               struct line *new_line = av_malloc(sizeof(struct line));
#  167|               if (!new_line) {

Error: COMPILER_WARNING: [#def277]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/tools/ismindex.c: scope_hint: In function ‘main’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/tools/ismindex.c:184:49: warning[-Wformat-truncation=]: ‘.ismf’ directive output may be truncated writing 5 bytes into a region of size between 1 and 2048
#  184 |         snprintf(idxname, sizeof(idxname), "%s%s.ismf", output_prefix, basename);
#      |                                                 ^~~~~
/usr/include/bits/stdio2.h:68:10: note: ‘__snprintf_chk’ output 6 or more bytes (assuming 2053) into a destination of size 2048
#   68 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
#      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   69 |                                    __glibc_objsize (__s), __fmt,
#      |                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   70 |                                    __va_arg_pack ());
#      |                                    ~~~~~~~~~~~~~~~~~
#  182|   
#  183|       if (ismf) {
#  184|->         snprintf(idxname, sizeof(idxname), "%s%s.ismf", output_prefix, basename);
#  185|           out = fopen(idxname, "w");
#  186|           if (!out) {

Error: COMPILER_WARNING: [#def278]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/tools/ismindex.c: scope_hint: In function ‘main’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/tools/ismindex.c:195:47: warning[-Wformat-truncation=]: ‘QualityLevels(’ directive output may be truncated writing 14 bytes into a region of size between 1 and 2048
#  195 |         snprintf(dirname, sizeof(dirname), "%sQualityLevels(%d)", output_prefix, track->bitrate);
#      |                                               ^~~~~~~~~~~~~~
/usr/include/bits/stdio2.h:68:10: note: ‘__snprintf_chk’ output between 17 and 2074 bytes into a destination of size 2048
#   68 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
#      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   69 |                                    __glibc_objsize (__s), __fmt,
#      |                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   70 |                                    __va_arg_pack ());
#      |                                    ~~~~~~~~~~~~~~~~~
#  193|           struct Track *track = tracks->tracks[i];
#  194|           const char *type    = track->is_video ? "video" : "audio";
#  195|->         snprintf(dirname, sizeof(dirname), "%sQualityLevels(%d)", output_prefix, track->bitrate);
#  196|           if (split) {
#  197|               if (mkdir(dirname, 0777) == -1 && errno != EEXIST) {

Error: COMPILER_WARNING: [#def279]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/tools/ismindex.c: scope_hint: In function ‘main’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/tools/ismindex.c:204:53: warning[-Wformat-truncation=]: ‘/Fragments(’ directive output may be truncated writing 11 bytes into a region of size between 1 and 2048
#  204 |             snprintf(filename, sizeof(filename), "%s/Fragments(%s=%"PRId64")",
#      |                                                     ^~~~~~~~~~~
/usr/include/bits/stdio2.h:68:10: note: ‘__snprintf_chk’ output between 20 and 2086 bytes into a destination of size 2048
#   68 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
#      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   69 |                                    __glibc_objsize (__s), __fmt,
#      |                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   70 |                                    __va_arg_pack ());
#      |                                    ~~~~~~~~~~~~~~~~~
#  202|           }
#  203|           for (j = 0; j < track->chunks; j++) {
#  204|->             snprintf(filename, sizeof(filename), "%s/Fragments(%s=%"PRId64")",
#  205|                        dirname, type, track->offsets[j].time);
#  206|               avio_seek(in, track->offsets[j].offset, SEEK_SET);

Error: COMPILER_WARNING: [#def280]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/tools/ismindex.c: scope_hint: In function ‘main’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/tools/ismindex.c:626:43: warning[-Wformat-truncation=]: ‘%s’ directive output may be truncated writing up to 2047 bytes into a region of size 1000
#  626 |     snprintf(filename, sizeof(filename), "%s%s.ism", output_prefix, basename);
#      |                                           ^~
/usr/include/bits/stdio2.h:68:10: note: ‘__snprintf_chk’ output 5 or more bytes (assuming 2052) into a destination of size 1000
#   68 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
#      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   69 |                                    __glibc_objsize (__s), __fmt,
#      |                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   70 |                                    __va_arg_pack ());
#      |                                    ~~~~~~~~~~~~~~~~~
#  624|       int i;
#  625|   
#  626|->     snprintf(filename, sizeof(filename), "%s%s.ism", output_prefix, basename);
#  627|       out = fopen(filename, "w");
#  628|       if (!out) {

Error: COMPILER_WARNING: [#def281]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/tools/ismindex.c: scope_hint: In function ‘main’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/tools/ismindex.c:698:47: warning[-Wformat-truncation=]: ‘%s’ directive output may be truncated writing up to 2047 bytes into a region of size 1000
#  698 |         snprintf(filename, sizeof(filename), "%sManifest", output_prefix);
#      |                                               ^~
/usr/include/bits/stdio2.h:68:10: note: ‘__snprintf_chk’ output between 9 and 2056 bytes into a destination of size 1000
#   68 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
#      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   69 |                                    __glibc_objsize (__s), __fmt,
#      |                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   70 |                                    __va_arg_pack ());
#      |                                    ~~~~~~~~~~~~~~~~~
#  696|   
#  697|       if (split)
#  698|->         snprintf(filename, sizeof(filename), "%sManifest", output_prefix);
#  699|       else
#  700|           snprintf(filename, sizeof(filename), "%s%s.ismc", output_prefix, basename);

Error: COMPILER_WARNING: [#def282]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/tools/ismindex.c: scope_hint: In function ‘main’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/tools/ismindex.c:700:47: warning[-Wformat-truncation=]: ‘%s’ directive output may be truncated writing up to 2047 bytes into a region of size 1000
#  700 |         snprintf(filename, sizeof(filename), "%s%s.ismc", output_prefix, basename);
#      |                                               ^~
/usr/include/bits/stdio2.h:68:10: note: ‘__snprintf_chk’ output 6 or more bytes (assuming 2053) into a destination of size 1000
#   68 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
#      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   69 |                                    __glibc_objsize (__s), __fmt,
#      |                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   70 |                                    __va_arg_pack ());
#      |                                    ~~~~~~~~~~~~~~~~~
#  698|           snprintf(filename, sizeof(filename), "%sManifest", output_prefix);
#  699|       else
#  700|->         snprintf(filename, sizeof(filename), "%s%s.ismc", output_prefix, basename);
#  701|       out = fopen(filename, "w");
#  702|       if (!out) {

Error: GCC_ANALYZER_WARNING (CWE-688): [#def283]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/tools/sofa2wavs.c: scope_hint: In function ‘main’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/tools/sofa2wavs.c:70:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘fopen(&filename, "w+")’ where non-null expected
ffmpeg-7.0.2-build/ffmpeg-7.0.2/tools/sofa2wavs.c:24: included_from: Included from here.
/usr/include/stdio.h:735:15: note: argument 4 of ‘fwrite’ must be non-null
#   68|           snprintf(filename, sizeof(filename), "azi_%d_ele_%d_dis_%d.wav", azi, ele, dis);
#   69|           file = fopen(filename, "w+");
#   70|->         fwrite("RIFF", 4, 1, file);
#   71|           fwrite("\xFF\xFF\xFF\xFF", 4, 1, file);
#   72|           fwrite("WAVE", 4, 1, file);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def284]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/tools/trasher.c: scope_hint: In function ‘main’
ffmpeg-7.0.2-build/ffmpeg-7.0.2/tools/trasher.c:57:16: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(argv[1], "rb+")’
#   55|           return 2;
#   56|       }
#   57|->     count    = atoi(argv[2]);
#   58|       maxburst = atoi(argv[3]);
#   59|       state    = atoi(argv[4]);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def285]
ffmpeg-7.0.2-build/ffmpeg-7.0.2/tools/trasher.c:57:16: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(argv[1], "rb+")’
#   55|           return 2;
#   56|       }
#   57|->     count    = atoi(argv[2]);
#   58|       maxburst = atoi(argv[3]);
#   59|       state    = atoi(argv[4]);

Scan Properties

analyzer-version-clippy1.82.0
analyzer-version-cppcheck2.16.0
analyzer-version-gcc14.2.1
analyzer-version-gcc-analyzer15.0.0
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-9.us-west-2.compute.internal
mock-configfedora-rawhide-gcc-latest-x86_64
project-nameffmpeg-7.0.2-6.fc42
store-results-to/tmp/tmp3off0s9c/ffmpeg-7.0.2-6.fc42.tar.xz
time-created2024-11-13 00:14:06
time-finished2024-11-13 00:36:49
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmp3off0s9c/ffmpeg-7.0.2-6.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmp3off0s9c/ffmpeg-7.0.2-6.fc42.src.rpm'
tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9