ffmpeg-7.1.1-3.fc43

List of Findings

Error: COMPILER_WARNING: [#def1]
ffmpeg-7.1.1/./config.h:336:9: note[note]: this is the location of the previous definition
#  334|   #define HAVE_PTHREAD_CANCEL 1
#  335|   #define HAVE_PTHREAD_SET_NAME_NP 0
#  336|-> #define HAVE_PTHREAD_SETNAME_NP 0
#  337|   #define HAVE_SCHED_GETAFFINITY 1
#  338|   #define HAVE_SECITEMIMPORT 0

Error: COMPILER_WARNING: [#def2]
ffmpeg-7.1.1/./config.h:336:9: warning[warning]: ‘HAVE_PTHREAD_SETNAME_NP’ redefined
#  334|   #define HAVE_PTHREAD_CANCEL 1
#  335|   #define HAVE_PTHREAD_SET_NAME_NP 0
#  336|-> #define HAVE_PTHREAD_SETNAME_NP 0
#  337|   #define HAVE_SCHED_GETAFFINITY 1
#  338|   #define HAVE_SECITEMIMPORT 0

Error: GCC_ANALYZER_WARNING (CWE-476): [#def3]
ffmpeg-7.1.1/./libavcodec/get_bits.h:340:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘gb.buffer_end’
ffmpeg-7.1.1/libavcodec/bsf/aac_adtstoasc.c:39:12: enter_function: entry to ‘aac_adtstoasc_filter’
ffmpeg-7.1.1/libavcodec/bsf/aac_adtstoasc.c:48:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/bsf/aac_adtstoasc.c:51:9: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/bsf/aac_adtstoasc.c:54:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/bsf/aac_adtstoasc.c:57:34: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/bsf/aac_adtstoasc.c:57:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/bsf/aac_adtstoasc.c:63:10: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/bsf/aac_adtstoasc.c:63:9: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/bsf/aac_adtstoasc.c:70:5: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/bsf/aac_adtstoasc.c:71:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/bsf/aac_adtstoasc.c:73:5: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/bsf/aac_adtstoasc.c:75:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/bsf/aac_adtstoasc.c:80:14: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/bsf/aac_adtstoasc.c:80:12: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/bsf/aac_adtstoasc.c:82:13: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/bsf/aac_adtstoasc.c:82:13: call_function: calling ‘init_get_bits’ from ‘aac_adtstoasc_filter’
ffmpeg-7.1.1/libavcodec/bsf/aac_adtstoasc.c:82:13: return_function: returning to ‘aac_adtstoasc_filter’ from ‘init_get_bits’
ffmpeg-7.1.1/libavcodec/bsf/aac_adtstoasc.c:83:17: call_function: calling ‘get_bits’ from ‘aac_adtstoasc_filter’
#  338|       OPEN_READER(re, s);
#  339|       av_assert2(n>0 && n<=25);
#  340|->     UPDATE_CACHE(re, s);
#  341|       tmp = SHOW_UBITS(re, s, n);
#  342|       LAST_SKIP_BITS(re, s, n);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def4]
ffmpeg-7.1.1/./libavcodec/get_bits.h:340:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘gb.buffer’
ffmpeg-7.1.1/libavformat/rtpenc_h263_rfc2190.c:101:6: enter_function: entry to ‘ff_rtp_send_h263_rfc2190’
ffmpeg-7.1.1/libavformat/rtpenc_h263_rfc2190.c:114:5: call_function: calling ‘init_get_bits’ from ‘ff_rtp_send_h263_rfc2190’
ffmpeg-7.1.1/libavformat/rtpenc_h263_rfc2190.c:114:5: return_function: returning to ‘ff_rtp_send_h263_rfc2190’ from ‘init_get_bits’
ffmpeg-7.1.1/libavformat/rtpenc_h263_rfc2190.c:115:9: call_function: calling ‘get_bits’ from ‘ff_rtp_send_h263_rfc2190’
#  338|       OPEN_READER(re, s);
#  339|       av_assert2(n>0 && n<=25);
#  340|->     UPDATE_CACHE(re, s);
#  341|       tmp = SHOW_UBITS(re, s, n);
#  342|       LAST_SKIP_BITS(re, s, n);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def5]
ffmpeg-7.1.1/./libavcodec/get_bits.h:391:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘gb.buffer_end’
ffmpeg-7.1.1/libavformat/bit.c:144:12: enter_function: entry to ‘write_packet’
ffmpeg-7.1.1/libavformat/bit.c:150:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavformat/bit.c:153:5: branch_false: ...to here
ffmpeg-7.1.1/libavformat/bit.c:156:5: call_function: calling ‘init_get_bits’ from ‘write_packet’
ffmpeg-7.1.1/libavformat/bit.c:156:5: return_function: returning to ‘write_packet’ from ‘init_get_bits’
ffmpeg-7.1.1/libavformat/bit.c:157:17: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavformat/bit.c:158:23: branch_true: ...to here
ffmpeg-7.1.1/libavformat/bit.c:158:23: call_function: calling ‘get_bits1’ from ‘write_packet’
#  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): [#def6]
ffmpeg-7.1.1/./libavcodec/get_bits.h:391:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘gb.buffer’
ffmpeg-7.1.1/libavformat/rdt.c:192:1: enter_function: entry to ‘ff_rdt_parse_header’
ffmpeg-7.1.1/libavformat/rdt.c:215:8: branch_false: following ‘false’ branch (when ‘len > 15’)...
ffmpeg-7.1.1/libavformat/rdt.c:268:5: branch_false: ...to here
ffmpeg-7.1.1/libavformat/rdt.c:268:5: call_function: calling ‘init_get_bits’ from ‘ff_rdt_parse_header’
ffmpeg-7.1.1/libavformat/rdt.c:268:5: return_function: returning to ‘ff_rdt_parse_header’ from ‘init_get_bits’
ffmpeg-7.1.1/libavformat/rdt.c:269:21: call_function: calling ‘get_bits1’ from ‘ff_rdt_parse_header’
#  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): [#def7]
ffmpeg-7.1.1/./libavcodec/golomb.h:175:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘gc.buffer_end’
ffmpeg-7.1.1/libavformat/rtpenc_vc2hq.c:106:6: enter_function: entry to ‘ff_rtp_send_vc2hq’
ffmpeg-7.1.1/libavformat/rtpenc_vc2hq.c:113:12: branch_true: following ‘true’ branch (when ‘unit < end’)...
ffmpeg-7.1.1/libavformat/rtpenc_vc2hq.c:114:9: branch_true: ...to here
ffmpeg-7.1.1/libavformat/rtpenc_vc2hq.c:117:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavformat/rtpenc_vc2hq.c:120:9: branch_false: ...to here
ffmpeg-7.1.1/libavformat/rtpenc_vc2hq.c:130:16: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavformat/rtpenc_vc2hq.c:131:71: branch_true: ...to here
ffmpeg-7.1.1/libavformat/rtpenc_vc2hq.c:131:17: call_function: calling ‘send_picture’ from ‘ff_rtp_send_vc2hq’
#  173|   #else
#  174|       OPEN_READER(re, gb);
#  175|->     UPDATE_CACHE(re, gb);
#  176|       buf = GET_CACHE(re, gb);
#  177|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def8]
ffmpeg-7.1.1/./libavutil/common.h:183:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘cpl_start’
ffmpeg-7.1.1/libavcodec/ac3enc.c:2370:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/ac3enc.c:2383:9: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/ac3enc.c:2383:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/ac3enc.c:2385:18: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/ac3enc.c:2388:26: call_function: inlined call to ‘av_clip_c’ from ‘set_bandwidth’
#  181|       if (amin > amax) abort();
#  182|   #endif
#  183|->     if      (a < amin) return amin;
#  184|       else if (a > amax) return amax;
#  185|       else               return a;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def9]
ffmpeg-7.1.1/./libavutil/x86/intmath.h:141:5: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘ret’
ffmpeg-7.1.1/libavfilter/avf_showcwt.c:449:12: enter_function: entry to ‘draw’
ffmpeg-7.1.1/libavfilter/avf_showcwt.c:474:25: branch_true: following ‘true’ branch (when ‘y < end’)...
ffmpeg-7.1.1/libavfilter/avf_showcwt.c:475:62: branch_true: ...to here
ffmpeg-7.1.1/libavfilter/avf_showcwt.c:602:17: call_function: calling ‘remap_log’ from ‘draw’
#  139|       if (amin > amax) abort();
#  140|   #endif
#  141|->     __asm__ ("maxss %1, %0 \n\t"
#  142|                "minss %2, %0 \n\t"
#  143|                : "+&x"(a) : "xm"(amin), "xm"(amax));

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

Error: GCC_ANALYZER_WARNING (CWE-457): [#def11]
ffmpeg-7.1.1/fftools/ffmpeg_dec.c:1509:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘type’
ffmpeg-7.1.1/fftools/ffmpeg_dec.c:1647:5: enter_function: entry to ‘dec_init’
ffmpeg-7.1.1/fftools/ffmpeg_dec.c:1656:11: call_function: calling ‘dec_alloc’ from ‘dec_init’
ffmpeg-7.1.1/fftools/ffmpeg_dec.c:1656:11: return_function: returning to ‘dec_init’ from ‘dec_alloc’
ffmpeg-7.1.1/fftools/ffmpeg_dec.c:1657:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/fftools/ffmpeg_dec.c:1660:5: branch_false: ...to here
ffmpeg-7.1.1/fftools/ffmpeg_dec.c:1662:11: call_function: calling ‘dec_open’ from ‘dec_init’
# 1507|   
# 1508|       if (!dev) {
# 1509|->         av_log(dp, AV_LOG_ERROR, "No device available "
# 1510|                  "for decoder: device type %s needed for codec %s.\n",
# 1511|                  av_hwdevice_get_type_name(type), codec->name);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def12]
ffmpeg-7.1.1/fftools/ffmpeg_demux.c:516:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pkt’
ffmpeg-7.1.1/fftools/ffmpeg_demux.c:682:12: enter_function: entry to ‘input_thread’
ffmpeg-7.1.1/fftools/ffmpeg_demux.c:691:11: call_function: calling ‘demux_thread_init’ from ‘input_thread’
ffmpeg-7.1.1/fftools/ffmpeg_demux.c:691:11: return_function: returning to ‘input_thread’ from ‘demux_thread_init’
ffmpeg-7.1.1/fftools/ffmpeg_demux.c:692:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/fftools/ffmpeg_demux.c:695:5: branch_false: ...to here
ffmpeg-7.1.1/fftools/ffmpeg_demux.c:723:23: call_function: calling ‘demux_bsf_flush’ from ‘input_thread’
#  514|       int ret;
#  515|   
#  516|->     pkt->stream_index = ds->sch_idx_stream;
#  517|   
#  518|       ret = sch_demux_send(d->sch, d->f.index, pkt, flags);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def13]
ffmpeg-7.1.1/fftools/ffmpeg_enc.c:212:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘frame’
ffmpeg-7.1.1/fftools/ffmpeg_enc.c:841:5: enter_function: entry to ‘encoder_thread’
ffmpeg-7.1.1/fftools/ffmpeg_enc.c:850:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/fftools/ffmpeg_enc.c:860:9: branch_false: ...to here
ffmpeg-7.1.1/fftools/ffmpeg_enc.c:860:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/fftools/ffmpeg_enc.c:861:15: branch_true: ...to here
ffmpeg-7.1.1/fftools/ffmpeg_enc.c:861:15: call_function: calling ‘enc_open’ from ‘encoder_thread’
#  210|       // the timebase is chosen by filtering code
#  211|       if (ost->type == AVMEDIA_TYPE_AUDIO || ost->type == AVMEDIA_TYPE_VIDEO) {
#  212|->         enc_ctx->time_base      = frame->time_base;
#  213|           enc_ctx->framerate      = fd->frame_rate_filter;
#  214|           ost->st->avg_frame_rate = fd->frame_rate_filter;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def14]
ffmpeg-7.1.1/fftools/ffmpeg_enc.c:219:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘frame’
ffmpeg-7.1.1/fftools/ffmpeg_enc.c:841:5: enter_function: entry to ‘encoder_thread’
ffmpeg-7.1.1/fftools/ffmpeg_enc.c:850:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/fftools/ffmpeg_enc.c:860:9: branch_false: ...to here
ffmpeg-7.1.1/fftools/ffmpeg_enc.c:860:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/fftools/ffmpeg_enc.c:861:15: branch_true: ...to here
ffmpeg-7.1.1/fftools/ffmpeg_enc.c:861:15: call_function: calling ‘enc_open’ from ‘encoder_thread’
#  217|       switch (enc_ctx->codec_type) {
#  218|       case AVMEDIA_TYPE_AUDIO:
#  219|->         av_assert0(frame->format != AV_SAMPLE_FMT_NONE &&
#  220|                      frame->sample_rate > 0 &&
#  221|                      frame->ch_layout.nb_channels > 0);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def15]
ffmpeg-7.1.1/fftools/ffmpeg_enc.c:236:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘frame’
ffmpeg-7.1.1/fftools/ffmpeg_enc.c:841:5: enter_function: entry to ‘encoder_thread’
ffmpeg-7.1.1/fftools/ffmpeg_enc.c:850:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/fftools/ffmpeg_enc.c:860:9: branch_false: ...to here
ffmpeg-7.1.1/fftools/ffmpeg_enc.c:860:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/fftools/ffmpeg_enc.c:861:15: branch_true: ...to here
ffmpeg-7.1.1/fftools/ffmpeg_enc.c:861:15: call_function: calling ‘enc_open’ from ‘encoder_thread’
#  234|   
#  235|       case AVMEDIA_TYPE_VIDEO: {
#  236|->         av_assert0(frame->format != AV_PIX_FMT_NONE &&
#  237|                      frame->width > 0 &&
#  238|                      frame->height > 0);

Error: COMPILER_WARNING (CWE-477): [#def16]
ffmpeg-7.1.1/fftools/ffplay_renderer.c: scope_hint: In function ‘create_vk_by_placebo’
ffmpeg-7.1.1/fftools/ffplay_renderer.c:411:5: warning[-Wdeprecated-declarations]: ‘queue_family_index’ is deprecated
#  411 |     vk_dev_ctx->queue_family_index = ctx->placebo_vulkan->queue_graphics.index;
#      |     ^~~~~~~~~~
/usr/include/libplacebo/utils/libav_internal.h:45: included_from: Included from here.
/usr/include/libplacebo/utils/libav.h:293: included_from: Included from here.
ffmpeg-7.1.1/fftools/ffplay_renderer.c:41: included_from: Included from here.
ffmpeg-7.1.1/libavutil/hwcontext_vulkan.h:124:9: note: declared here
#  124 |     int queue_family_index;
#      |         ^~~~~~~~~~~~~~~~~~
#  409|       vk_dev_ctx->nb_enabled_dev_extensions = ctx->placebo_vulkan->num_extensions;
#  410|   
#  411|->     vk_dev_ctx->queue_family_index = ctx->placebo_vulkan->queue_graphics.index;
#  412|       vk_dev_ctx->nb_graphics_queues = ctx->placebo_vulkan->queue_graphics.count;
#  413|   

Error: COMPILER_WARNING (CWE-477): [#def17]
ffmpeg-7.1.1/fftools/ffplay_renderer.c:411:5: warning[-Wdeprecated-declarations]: ‘queue_family_index’ is deprecated
#  409|       vk_dev_ctx->nb_enabled_dev_extensions = ctx->placebo_vulkan->num_extensions;
#  410|   
#  411|->     vk_dev_ctx->queue_family_index = ctx->placebo_vulkan->queue_graphics.index;
#  412|       vk_dev_ctx->nb_graphics_queues = ctx->placebo_vulkan->queue_graphics.count;
#  413|   

Error: COMPILER_WARNING (CWE-477): [#def18]
ffmpeg-7.1.1/fftools/ffplay_renderer.c:412:5: warning[-Wdeprecated-declarations]: ‘nb_graphics_queues’ is deprecated
#  412 |     vk_dev_ctx->nb_graphics_queues = ctx->placebo_vulkan->queue_graphics.count;
#      |     ^~~~~~~~~~
ffmpeg-7.1.1/libavutil/hwcontext_vulkan.h:126:9: note: declared here
#  126 |     int nb_graphics_queues;
#      |         ^~~~~~~~~~~~~~~~~~
#  410|   
#  411|       vk_dev_ctx->queue_family_index = ctx->placebo_vulkan->queue_graphics.index;
#  412|->     vk_dev_ctx->nb_graphics_queues = ctx->placebo_vulkan->queue_graphics.count;
#  413|   
#  414|       vk_dev_ctx->queue_family_tx_index = ctx->placebo_vulkan->queue_transfer.index;

Error: COMPILER_WARNING (CWE-477): [#def19]
ffmpeg-7.1.1/fftools/ffplay_renderer.c:412:5: warning[-Wdeprecated-declarations]: ‘nb_graphics_queues’ is deprecated
#  410|   
#  411|       vk_dev_ctx->queue_family_index = ctx->placebo_vulkan->queue_graphics.index;
#  412|->     vk_dev_ctx->nb_graphics_queues = ctx->placebo_vulkan->queue_graphics.count;
#  413|   
#  414|       vk_dev_ctx->queue_family_tx_index = ctx->placebo_vulkan->queue_transfer.index;

Error: COMPILER_WARNING (CWE-477): [#def20]
ffmpeg-7.1.1/fftools/ffplay_renderer.c:414:5: warning[-Wdeprecated-declarations]: ‘queue_family_tx_index’ is deprecated
#  414 |     vk_dev_ctx->queue_family_tx_index = ctx->placebo_vulkan->queue_transfer.index;
#      |     ^~~~~~~~~~
ffmpeg-7.1.1/libavutil/hwcontext_vulkan.h:133:9: note: declared here
#  133 |     int queue_family_tx_index;
#      |         ^~~~~~~~~~~~~~~~~~~~~
#  412|       vk_dev_ctx->nb_graphics_queues = ctx->placebo_vulkan->queue_graphics.count;
#  413|   
#  414|->     vk_dev_ctx->queue_family_tx_index = ctx->placebo_vulkan->queue_transfer.index;
#  415|       vk_dev_ctx->nb_tx_queues = ctx->placebo_vulkan->queue_transfer.count;
#  416|   

Error: COMPILER_WARNING (CWE-477): [#def21]
ffmpeg-7.1.1/fftools/ffplay_renderer.c:414:5: warning[-Wdeprecated-declarations]: ‘queue_family_tx_index’ is deprecated
#  412|       vk_dev_ctx->nb_graphics_queues = ctx->placebo_vulkan->queue_graphics.count;
#  413|   
#  414|->     vk_dev_ctx->queue_family_tx_index = ctx->placebo_vulkan->queue_transfer.index;
#  415|       vk_dev_ctx->nb_tx_queues = ctx->placebo_vulkan->queue_transfer.count;
#  416|   

Error: COMPILER_WARNING (CWE-477): [#def22]
ffmpeg-7.1.1/fftools/ffplay_renderer.c:415:5: warning[-Wdeprecated-declarations]: ‘nb_tx_queues’ is deprecated
#  415 |     vk_dev_ctx->nb_tx_queues = ctx->placebo_vulkan->queue_transfer.count;
#      |     ^~~~~~~~~~
ffmpeg-7.1.1/libavutil/hwcontext_vulkan.h:135:9: note: declared here
#  135 |     int nb_tx_queues;
#      |         ^~~~~~~~~~~~
#  413|   
#  414|       vk_dev_ctx->queue_family_tx_index = ctx->placebo_vulkan->queue_transfer.index;
#  415|->     vk_dev_ctx->nb_tx_queues = ctx->placebo_vulkan->queue_transfer.count;
#  416|   
#  417|       vk_dev_ctx->queue_family_comp_index = ctx->placebo_vulkan->queue_compute.index;

Error: COMPILER_WARNING (CWE-477): [#def23]
ffmpeg-7.1.1/fftools/ffplay_renderer.c:415:5: warning[-Wdeprecated-declarations]: ‘nb_tx_queues’ is deprecated
#  413|   
#  414|       vk_dev_ctx->queue_family_tx_index = ctx->placebo_vulkan->queue_transfer.index;
#  415|->     vk_dev_ctx->nb_tx_queues = ctx->placebo_vulkan->queue_transfer.count;
#  416|   
#  417|       vk_dev_ctx->queue_family_comp_index = ctx->placebo_vulkan->queue_compute.index;

Error: COMPILER_WARNING (CWE-477): [#def24]
ffmpeg-7.1.1/fftools/ffplay_renderer.c:417:5: warning[-Wdeprecated-declarations]: ‘queue_family_comp_index’ is deprecated
#  417 |     vk_dev_ctx->queue_family_comp_index = ctx->placebo_vulkan->queue_compute.index;
#      |     ^~~~~~~~~~
ffmpeg-7.1.1/libavutil/hwcontext_vulkan.h:142:9: note: declared here
#  142 |     int queue_family_comp_index;
#      |         ^~~~~~~~~~~~~~~~~~~~~~~
#  415|       vk_dev_ctx->nb_tx_queues = ctx->placebo_vulkan->queue_transfer.count;
#  416|   
#  417|->     vk_dev_ctx->queue_family_comp_index = ctx->placebo_vulkan->queue_compute.index;
#  418|       vk_dev_ctx->nb_comp_queues = ctx->placebo_vulkan->queue_compute.count;
#  419|   

Error: COMPILER_WARNING (CWE-477): [#def25]
ffmpeg-7.1.1/fftools/ffplay_renderer.c:417:5: warning[-Wdeprecated-declarations]: ‘queue_family_comp_index’ is deprecated
#  415|       vk_dev_ctx->nb_tx_queues = ctx->placebo_vulkan->queue_transfer.count;
#  416|   
#  417|->     vk_dev_ctx->queue_family_comp_index = ctx->placebo_vulkan->queue_compute.index;
#  418|       vk_dev_ctx->nb_comp_queues = ctx->placebo_vulkan->queue_compute.count;
#  419|   

Error: COMPILER_WARNING (CWE-477): [#def26]
ffmpeg-7.1.1/fftools/ffplay_renderer.c:418:5: warning[-Wdeprecated-declarations]: ‘nb_comp_queues’ is deprecated
#  418 |     vk_dev_ctx->nb_comp_queues = ctx->placebo_vulkan->queue_compute.count;
#      |     ^~~~~~~~~~
ffmpeg-7.1.1/libavutil/hwcontext_vulkan.h:144:9: note: declared here
#  144 |     int nb_comp_queues;
#      |         ^~~~~~~~~~~~~~
#  416|   
#  417|       vk_dev_ctx->queue_family_comp_index = ctx->placebo_vulkan->queue_compute.index;
#  418|->     vk_dev_ctx->nb_comp_queues = ctx->placebo_vulkan->queue_compute.count;
#  419|   
#  420|       ret = get_decode_queue(renderer, &decode_index, &decode_count);

Error: COMPILER_WARNING (CWE-477): [#def27]
ffmpeg-7.1.1/fftools/ffplay_renderer.c:418:5: warning[-Wdeprecated-declarations]: ‘nb_comp_queues’ is deprecated
#  416|   
#  417|       vk_dev_ctx->queue_family_comp_index = ctx->placebo_vulkan->queue_compute.index;
#  418|->     vk_dev_ctx->nb_comp_queues = ctx->placebo_vulkan->queue_compute.count;
#  419|   
#  420|       ret = get_decode_queue(renderer, &decode_index, &decode_count);

Error: COMPILER_WARNING (CWE-477): [#def28]
ffmpeg-7.1.1/fftools/ffplay_renderer.c:424:5: warning[-Wdeprecated-declarations]: ‘queue_family_decode_index’ is deprecated
#  424 |     vk_dev_ctx->queue_family_decode_index = decode_index;
#      |     ^~~~~~~~~~
ffmpeg-7.1.1/libavutil/hwcontext_vulkan.h:162:9: note: declared here
#  162 |     int queue_family_decode_index;
#      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
#  422|           return ret;
#  423|   
#  424|->     vk_dev_ctx->queue_family_decode_index = decode_index;
#  425|       vk_dev_ctx->nb_decode_queues = decode_count;
#  426|   

Error: COMPILER_WARNING (CWE-477): [#def29]
ffmpeg-7.1.1/fftools/ffplay_renderer.c:424:5: warning[-Wdeprecated-declarations]: ‘queue_family_decode_index’ is deprecated
#  422|           return ret;
#  423|   
#  424|->     vk_dev_ctx->queue_family_decode_index = decode_index;
#  425|       vk_dev_ctx->nb_decode_queues = decode_count;
#  426|   

Error: COMPILER_WARNING (CWE-477): [#def30]
ffmpeg-7.1.1/fftools/ffplay_renderer.c:425:5: warning[-Wdeprecated-declarations]: ‘nb_decode_queues’ is deprecated
#  425 |     vk_dev_ctx->nb_decode_queues = decode_count;
#      |     ^~~~~~~~~~
ffmpeg-7.1.1/libavutil/hwcontext_vulkan.h:164:9: note: declared here
#  164 |     int nb_decode_queues;
#      |         ^~~~~~~~~~~~~~~~
#  423|   
#  424|       vk_dev_ctx->queue_family_decode_index = decode_index;
#  425|->     vk_dev_ctx->nb_decode_queues = decode_count;
#  426|   
#  427|       ret = av_hwdevice_ctx_init(ctx->hw_device_ref);

Error: COMPILER_WARNING (CWE-477): [#def31]
ffmpeg-7.1.1/fftools/ffplay_renderer.c:425:5: warning[-Wdeprecated-declarations]: ‘nb_decode_queues’ is deprecated
#  423|   
#  424|       vk_dev_ctx->queue_family_decode_index = decode_index;
#  425|->     vk_dev_ctx->nb_decode_queues = decode_count;
#  426|   
#  427|       ret = av_hwdevice_ctx_init(ctx->hw_device_ref);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def32]
ffmpeg-7.1.1/libavcodec/4xm.c:696:21: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘flag[node]’
ffmpeg-7.1.1/libavcodec/4xm.c:836:12: enter_function: entry to ‘decode_frame’
ffmpeg-7.1.1/libavcodec/4xm.c:844:8: branch_false: following ‘false’ branch (when ‘buf_size > 19’)...
ffmpeg-7.1.1/libavcodec/4xm.c:847:5: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/4xm.c:847:5: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/4xm.c:849:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/4xm.c:855:17: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/4xm.c:857:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/4xm.c:926:9: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/4xm.c:930:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/4xm.c:933:8: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/4xm.c:933:8: branch_false: following ‘false’ branch (when ‘frame_4cc != 846358121’)...
ffmpeg-7.1.1/libavcodec/4xm.c:939:15: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/4xm.c:939:15: branch_true: following ‘true’ branch (when ‘frame_4cc == 1836213865’)...
ffmpeg-7.1.1/libavcodec/4xm.c:940:9: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/4xm.c:941:20: call_function: calling ‘decode_i_frame’ from ‘decode_frame’
#  694|   
#  695|           for (node = j; up[node] != -1; node = up[node]) {
#  696|->             bits += flag[node] << len;
#  697|               len++;
#  698|               if (len > 31)

Error: COMPILER_WARNING (CWE-563): [#def33]
ffmpeg-7.1.1/libavcodec/aac_ac3_parser.c: scope_hint: In function ‘ff_aac_ac3_parse’
ffmpeg-7.1.1/libavcodec/aac_ac3_parser.c:151:17: warning[-Wunused-variable]: unused variable ‘profile’
#  151 |             int profile;
#      |                 ^~~~~~~
#  149|               AACADTSHeaderInfo hdr;
#  150|               GetBitContext gb;
#  151|->             int profile;
#  152|               init_get_bits8(&gb, buf, buf_size);
#  153|               if (buf_size < AV_AAC_ADTS_HEADER_SIZE ||

Error: GCC_ANALYZER_WARNING: [#def34]
ffmpeg-7.1.1/libavcodec/aacenc_ltp.c:66:13: warning[-Wanalyzer-overlapping-buffers]: overlapping buffers passed as arguments to ‘memcpy’
ffmpeg-7.1.1/libavcodec/aacenc_ltp.c:58:17: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/aacenc_ltp.c:59:16: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/aacenc_ltp.c:62:22: branch_true: following ‘true’ branch (when ‘ch < chans’)...
ffmpeg-7.1.1/libavcodec/aacenc_ltp.c:64:13: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/aacenc_ltp.c:62:22: branch_true: following ‘true’ branch (when ‘ch < chans’)...
ffmpeg-7.1.1/libavcodec/aacenc_ltp.c:64:13: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/aacenc_ltp.c:62:22: branch_true: following ‘true’ branch (when ‘ch < chans’)...
ffmpeg-7.1.1/libavcodec/aacenc_ltp.c:64:13: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/aacenc_ltp.c:66:13: danger: overlapping buffers passed as arguments to ‘memcpy’
#   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: [#def35]
ffmpeg-7.1.1/libavcodec/aacenc_ltp.c:68:13: warning[-Wanalyzer-overlapping-buffers]: overlapping buffers passed as arguments to ‘memcpy’
ffmpeg-7.1.1/libavcodec/aacenc_ltp.c:58:17: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/aacenc_ltp.c:59:16: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/aacenc_ltp.c:62:22: branch_true: following ‘true’ branch (when ‘ch < chans’)...
ffmpeg-7.1.1/libavcodec/aacenc_ltp.c:64:13: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/aacenc_ltp.c:62:22: branch_true: following ‘true’ branch (when ‘ch < chans’)...
ffmpeg-7.1.1/libavcodec/aacenc_ltp.c:64:13: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/aacenc_ltp.c:62:22: branch_true: following ‘true’ branch (when ‘ch < chans’)...
ffmpeg-7.1.1/libavcodec/aacenc_ltp.c:64:13: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/aacenc_ltp.c:68:13: danger: overlapping buffers passed as arguments to ‘memcpy’
#   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): [#def36]
ffmpeg-7.1.1/libavcodec/aacpsy.c:926:21: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘energy_subshort[<unknown>]’
ffmpeg-7.1.1/libavcodec/aacpsy.c:881:24: enter_function: entry to ‘psy_lame_window’
ffmpeg-7.1.1/libavcodec/aacpsy.c:892:8: branch_true: following ‘true’ branch (when ‘la’ is non-NULL)...
ffmpeg-7.1.1/libavcodec/aacpsy.c:897:15: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/aacpsy.c:902:9: call_function: calling ‘psy_hp_filter’ from ‘psy_lame_window’
ffmpeg-7.1.1/libavcodec/aacpsy.c:902:9: return_function: returning to ‘psy_lame_window’ from ‘psy_hp_filter’
ffmpeg-7.1.1/libavcodec/aacpsy.c:905:21: branch_true: following ‘true’ branch (when ‘i != 3’)...
ffmpeg-7.1.1/libavcodec/aacpsy.c:906:60: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/aacpsy.c:905:21: branch_false: following ‘false’ branch (when ‘i == 3’)...
 branch_false: ...to here
ffmpeg-7.1.1/libavcodec/aacpsy.c:912:21: branch_true: following ‘true’ branch (when ‘i != 24’)...
ffmpeg-7.1.1/libavcodec/aacpsy.c:913:32: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/aacpsy.c:926:21: danger: use of uninitialized value ‘energy_subshort[<unknown>]’ here
#  924|                *       previous block.
#  925|                */
#  926|->             if (p > energy_subshort[i + 1])
#  927|                   p = p / energy_subshort[i + 1];
#  928|               else if (energy_subshort[i + 1] > p * 10.0f)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def37]
ffmpeg-7.1.1/libavcodec/ac3enc.c:598:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘flags’
ffmpeg-7.1.1/libavcodec/ac3enc.c:1985:5: enter_function: entry to ‘ff_ac3_encode_frame’
ffmpeg-7.1.1/libavcodec/ac3enc.c:2002:5: call_function: calling ‘ac3_apply_rematrixing’ from ‘ff_ac3_encode_frame’
#  596|           nb_coefs = FFMIN(block->end_freq[1], block->end_freq[2]);
#  597|           for (bnd = 0; bnd < block->num_rematrixing_bands; bnd++) {
#  598|->             if (flags[bnd]) {
#  599|                   start = ff_ac3_rematrix_band_tab[bnd];
#  600|                   end   = FFMIN(nb_coefs, ff_ac3_rematrix_band_tab[bnd+1]);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def38]
ffmpeg-7.1.1/libavcodec/ac3enc.c:2459:45: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘cpl_coord_mant_buffer’
ffmpeg-7.1.1/libavcodec/ac3enc.c:2427:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/ac3enc.c:2428:10: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/ac3enc.c:2427:9: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/ac3enc.c:2429:10: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/ac3enc.c:2427:9: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/ac3enc.c:2430:10: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/ac3enc.c:2427:9: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/ac3enc.c:2431:10: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/ac3enc.c:2427:9: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/ac3enc.c:2432:10: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/ac3enc.c:2427:9: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/ac3enc.c:2433:10: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/ac3enc.c:2427:9: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/ac3enc.c:2434:10: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/ac3enc.c:2427:9: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/ac3enc.c:2435:10: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/ac3enc.c:2427:9: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/ac3enc.c:2438:10: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/ac3enc.c:2438:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/ac3enc.c:2442:9: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/ac3enc.c:2442:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/ac3enc.c:2447:5: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/ac3enc.c:2447:19: branch_true: following ‘true’ branch...
 branch_true: ...to here
ffmpeg-7.1.1/libavcodec/ac3enc.c:2450:22: branch_true: following ‘true’ branch (when ‘ch < channels’)...
ffmpeg-7.1.1/libavcodec/ac3enc.c:2452:39: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/ac3enc.c:2457:16: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/ac3enc.c:2458:46: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/ac3enc.c:2459:45: danger: use of uninitialized value ‘cpl_coord_mant_buffer’ here
# 2457|               if (s->cpl_enabled) {
# 2458|                   block->cpl_coord_exp[ch]  = &s->cpl_coord_buffer [16  * (blk * channels + ch)];
# 2459|->                 block->cpl_coord_mant[ch] = &cpl_coord_mant_buffer[16  * (blk * channels + ch)];
# 2460|               }
# 2461|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def39]
ffmpeg-7.1.1/libavcodec/amfenc.c:864:73: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘res_query’
ffmpeg-7.1.1/libavcodec/amfenc.c:656:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/amfenc.c:659:10: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/amfenc.c:825:12: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/amfenc.c:826:17: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/amfenc.c:841:16: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/amfenc.c:842:31: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/amfenc.c:846:17: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/amfenc.c:848:23: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/amfenc.c:849:20: branch_false: following ‘false’ branch...
 branch_false: ...to here
ffmpeg-7.1.1/libavcodec/amfenc.c:863:12: branch_true: following ‘true’ branch (when ‘query_output_data_flag == 0’)...
ffmpeg-7.1.1/libavcodec/amfenc.c:864:16: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/amfenc.c:864:16: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/amfenc.c:864:17: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/amfenc.c:864:73: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/amfenc.c:864:73: danger: use of uninitialized value ‘res_query’ here
#  862|   
#  863|           if (query_output_data_flag == 0) {
#  864|->             if (res_resubmit == AMF_INPUT_FULL || ctx->delayed_drain || (ctx->eof && res_query != AMF_EOF) || (ctx->hwsurfaces_in_queue >= ctx->hwsurfaces_in_queue_max)) {
#  865|                   block_and_wait = 1;
#  866|                   av_usleep(1000);

Error: GCC_ANALYZER_WARNING: [#def40]
ffmpeg-7.1.1/libavcodec/apedec.c:982:13: warning[-Wanalyzer-overlapping-buffers]: overlapping buffers passed as arguments to ‘memcpy’
ffmpeg-7.1.1/libavcodec/apedec.c:960:21: branch_true: following ‘true’ branch (when ‘i < length’)...
ffmpeg-7.1.1/libavcodec/apedec.c:962:30: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/apedec.c:964:25: branch_false: following ‘false’ branch (when ‘order <= j’)...
ffmpeg-7.1.1/libavcodec/apedec.c:978:9: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/apedec.c:981:12: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/apedec.c:982:13: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/apedec.c:982:13: danger: overlapping buffers passed as arguments to ‘memcpy’
#  980|           delayp[order - 1] = buffer[i];
#  981|           if (delayp - delay == 256) {
#  982|->             memcpy(delay, delayp, sizeof(*delay)*256);
#  983|               delayp = delay;
#  984|           }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def41]
ffmpeg-7.1.1/libavcodec/bfi.c:145:30: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘offset’
ffmpeg-7.1.1/libavcodec/bfi.c:50:12: enter_function: entry to ‘bfi_decode_frame’
ffmpeg-7.1.1/libavcodec/bfi.c:62:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/bfi.c:65:26: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/bfi.c:65:5: call_function: inlined call to ‘bytestream2_init’ from ‘bfi_decode_frame’
ffmpeg-7.1.1/libavcodec/bfi.c:104:12: branch_true: following ‘true’ branch (when ‘dst != frame_end’)...
ffmpeg-7.1.1/libavcodec/bfi.c:106:31: call_function: inlined call to ‘bytestream2_get_byte’ from ‘bfi_decode_frame’
ffmpeg-7.1.1/libavcodec/bfi.c:110:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/bfi.c:117:12: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/bfi.c:127:16: branch_false: following ‘false’ branch (when ‘code != 1’)...
ffmpeg-7.1.1/libavcodec/bfi.c:132:30: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/bfi.c:132:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/bfi.c:135:9: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/bfi.c:104:12: branch_true: following ‘true’ branch (when ‘dst != frame_end’)...
ffmpeg-7.1.1/libavcodec/bfi.c:106:31: call_function: inlined call to ‘bytestream2_get_byte’ from ‘bfi_decode_frame’
ffmpeg-7.1.1/libavcodec/bfi.c:110:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/bfi.c:117:12: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/bfi.c:127:16: branch_false: following ‘false’ branch (when ‘code != 1’)...
ffmpeg-7.1.1/libavcodec/bfi.c:132:30: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/bfi.c:132:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/bfi.c:135:9: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/bfi.c:145:30: danger: use of uninitialized value ‘offset’ here
#  143|               break;
#  144|           case 1:                // back chain
#  145|->             dst_offset = dst - offset;
#  146|               length    *= 4;     // Convert dwords to bytes.
#  147|               if (dst_offset < bfi->dst)

Error: GCC_ANALYZER_WARNING (CWE-1335): [#def42]
ffmpeg-7.1.1/libavcodec/bitstream_template.h:83:22: warning[-Wanalyzer-shift-count-overflow]: shift by count (‘64’) >= precision of type (‘64’)
ffmpeg-7.1.1/libavcodec/utvideodec.c:581:12: enter_function: entry to ‘decode_frame’
ffmpeg-7.1.1/libavcodec/utvideodec.c:593:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/utvideodec.c:597:5: call_function: inlined call to ‘bytestream2_init’ from ‘decode_frame’
ffmpeg-7.1.1/libavcodec/utvideodec.c:705:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/utvideodec.c:709:25: call_function: inlined call to ‘bytestream2_get_le32u’ from ‘decode_frame’
ffmpeg-7.1.1/libavcodec/utvideodec.c:718:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/utvideodec.c:720:24: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/utvideodec.c:722:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/utvideodec.c:728:13: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/utvideodec.c:731:21: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/utvideodec.c:735:32: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/utvideodec.c:732:19: call_function: calling ‘decode_plane’ from ‘decode_frame’
#   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): [#def43]
ffmpeg-7.1.1/libavcodec/bitstream_template.h:85:22: warning[-Wanalyzer-shift-count-overflow]: shift by count (‘4294967275’) >= precision of type (‘64’)
ffmpeg-7.1.1/libavcodec/utvideodec.c:581:12: enter_function: entry to ‘decode_frame’
ffmpeg-7.1.1/libavcodec/utvideodec.c:593:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/utvideodec.c:597:5: call_function: inlined call to ‘bytestream2_init’ from ‘decode_frame’
ffmpeg-7.1.1/libavcodec/utvideodec.c:705:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/utvideodec.c:709:25: call_function: inlined call to ‘bytestream2_get_le32u’ from ‘decode_frame’
ffmpeg-7.1.1/libavcodec/utvideodec.c:718:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/utvideodec.c:720:24: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/utvideodec.c:722:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/utvideodec.c:728:13: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/utvideodec.c:768:21: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/utvideodec.c:773:34: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/utvideodec.c:769:19: call_function: calling ‘decode_plane10’ from ‘decode_frame’
#   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): [#def44]
ffmpeg-7.1.1/libavcodec/bitstream_template.h:164:41: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘gb.size_in_bits’
ffmpeg-7.1.1/libavcodec/utvideodec.c:581:12: enter_function: entry to ‘decode_frame’
ffmpeg-7.1.1/libavcodec/utvideodec.c:593:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/utvideodec.c:597:5: call_function: inlined call to ‘bytestream2_init’ from ‘decode_frame’
ffmpeg-7.1.1/libavcodec/utvideodec.c:705:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/utvideodec.c:709:25: call_function: inlined call to ‘bytestream2_get_le32u’ from ‘decode_frame’
ffmpeg-7.1.1/libavcodec/utvideodec.c:718:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/utvideodec.c:720:24: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/utvideodec.c:722:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/utvideodec.c:728:13: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/utvideodec.c:768:21: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/utvideodec.c:773:34: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/utvideodec.c:769:19: call_function: calling ‘decode_plane10’ from ‘decode_frame’
#  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): [#def45]
ffmpeg-7.1.1/libavcodec/bsf/extract_extradata.c:142:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘filtered_buf’
ffmpeg-7.1.1/libavcodec/bsf/extract_extradata.c:94:12: enter_function: entry to ‘extract_extradata_av1’
ffmpeg-7.1.1/libavcodec/bsf/extract_extradata.c:104:8: branch_false: following ‘false’ branch...
 branch_false: ...to here
ffmpeg-7.1.1/libavcodec/bsf/extract_extradata.c:109:13: call_function: calling ‘obu_is_global’ from ‘extract_extradata_av1’
ffmpeg-7.1.1/libavcodec/bsf/extract_extradata.c:109:13: return_function: returning to ‘extract_extradata_av1’ from ‘obu_is_global’
ffmpeg-7.1.1/libavcodec/bsf/extract_extradata.c:118:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/bsf/extract_extradata.c:119:22: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/bsf/extract_extradata.c:119:22: release_memory: ‘filtered_buf’ is NULL
ffmpeg-7.1.1/libavcodec/bsf/extract_extradata.c:123:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/bsf/extract_extradata.c:131:31: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/bsf/extract_extradata.c:132:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/bsf/extract_extradata.c:137:9: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/bsf/extract_extradata.c:140:9: call_function: inlined call to ‘bytestream2_init_writer’ from ‘extract_extradata_av1’
ffmpeg-7.1.1/libavcodec/bsf/extract_extradata.c:141:13: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/bsf/extract_extradata.c:141:12: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/bsf/extract_extradata.c:142:68: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/bsf/extract_extradata.c:142:68: release_memory: ‘filtered_buf’ is NULL
ffmpeg-7.1.1/libavcodec/bsf/extract_extradata.c:142:13: danger: dereference of NULL ‘filtered_buf’
#  140|           bytestream2_init_writer(&pb_extradata, extradata, extradata_size);
#  141|           if (s->remove)
#  142|->             bytestream2_init_writer(&pb_filtered_data, filtered_buf->data, filtered_size);
#  143|   
#  144|           for (i = 0; i < s->av1_pkt.nb_obus; i++) {

Error: GCC_ANALYZER_WARNING (CWE-457): [#def46]
ffmpeg-7.1.1/libavcodec/cbs.c:671:5: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘start_position’
ffmpeg-7.1.1/libavcodec/cbs.c:647:5: enter_function: entry to ‘ff_cbs_write_unsigned’
ffmpeg-7.1.1/libavcodec/cbs.c:652:5: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/cbs.c:654:5: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/cbs.c:654:5: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/cbs.c:656:9: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/cbs.c:656:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/cbs.c:663:9: call_function: inlined call to ‘put_bits_left’ from ‘ff_cbs_write_unsigned’
ffmpeg-7.1.1/libavcodec/cbs.c:663:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/cbs.c:666:8: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/cbs.c:667:9: call_function: inlined call to ‘put_bits’ from ‘ff_cbs_write_unsigned’
ffmpeg-7.1.1/libavcodec/cbs.c:667:9: call_function: inlined call to ‘put_bits’ from ‘ff_cbs_write_unsigned’
ffmpeg-7.1.1/libavcodec/cbs.c:671:5: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/cbs.c:671:5: call_function: inlined call to ‘put_bits_count’ from ‘ff_cbs_write_unsigned’
ffmpeg-7.1.1/libavcodec/cbs.c:671:5: danger: use of uninitialized value ‘start_position’ here
#  669|           put_bits32(pbc, value);
#  670|   
#  671|->     CBS_TRACE_WRITE_END();
#  672|   
#  673|       return 0;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def47]
ffmpeg-7.1.1/libavcodec/cbs.c:739:5: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘start_position’
ffmpeg-7.1.1/libavcodec/cbs.c:715:5: enter_function: entry to ‘ff_cbs_write_signed’
ffmpeg-7.1.1/libavcodec/cbs.c:720:5: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/cbs.c:722:5: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/cbs.c:722:5: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/cbs.c:724:9: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/cbs.c:724:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/cbs.c:731:9: call_function: inlined call to ‘put_bits_left’ from ‘ff_cbs_write_signed’
ffmpeg-7.1.1/libavcodec/cbs.c:731:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/cbs.c:734:8: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/cbs.c:735:9: call_function: inlined call to ‘put_sbits’ from ‘ff_cbs_write_signed’
ffmpeg-7.1.1/libavcodec/cbs.c:735:9: call_function: inlined call to ‘put_sbits’ from ‘ff_cbs_write_signed’
ffmpeg-7.1.1/libavcodec/cbs.c:739:5: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/cbs.c:739:5: call_function: inlined call to ‘put_bits_count’ from ‘ff_cbs_write_signed’
ffmpeg-7.1.1/libavcodec/cbs.c:739:5: danger: use of uninitialized value ‘start_position’ here
#  737|           put_bits32(pbc, value);
#  738|   
#  739|->     CBS_TRACE_WRITE_END();
#  740|   
#  741|       return 0;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def48]
ffmpeg-7.1.1/libavcodec/cbs_vp9.c:70:5: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘start_position’
ffmpeg-7.1.1/libavcodec/cbs_vp9.c:474:12: enter_function: entry to ‘cbs_vp9_write_unit’
ffmpeg-7.1.1/libavcodec/cbs_vp9.c:481:11: call_function: calling ‘cbs_vp9_write_frame’ from ‘cbs_vp9_write_unit’
#   68|       put_bits(pbc, 1, sign);
#   69|   
#   70|->     CBS_TRACE_WRITE_END();
#   71|   
#   72|       return 0;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def49]
ffmpeg-7.1.1/libavcodec/cbs_vp9.c:177:5: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘start_position’
ffmpeg-7.1.1/libavcodec/cbs_vp9_syntax_template.c:407:12: enter_function: entry to ‘cbs_vp9_write_superframe_index’
ffmpeg-7.1.1/libavcodec/cbs_vp9_syntax_template.c:414:5: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/cbs_vp9_syntax_template.c:415:5: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/cbs_vp9_syntax_template.c:415:5: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/cbs_vp9_syntax_template.c:416:5: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/cbs_vp9_syntax_template.c:416:5: branch_false: following ‘false’ branch...
 branch_false: ...to here
ffmpeg-7.1.1/libavcodec/cbs_vp9_syntax_template.c:418:17: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/cbs_vp9_syntax_template.c:420:9: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/cbs_vp9_syntax_template.c:420:9: call_function: calling ‘cbs_vp9_write_le’ from ‘cbs_vp9_write_superframe_index’
#  175|           put_bits(pbc, 8, value >> b & 0xff);
#  176|   
#  177|->     CBS_TRACE_WRITE_END();
#  178|   
#  179|       return 0;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def50]
ffmpeg-7.1.1/libavcodec/ccaption_dec.c:687:12: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘ret’
ffmpeg-7.1.1/libavcodec/ccaption_dec.c:851:12: enter_function: entry to ‘decode’
ffmpeg-7.1.1/libavcodec/ccaption_dec.c:865:17: branch_true: following ‘true’ branch (when ‘i < len’)...
ffmpeg-7.1.1/libavcodec/ccaption_dec.c:866:35: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/ccaption_dec.c:871:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/ccaption_dec.c:874:13: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/ccaption_dec.c:874:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/ccaption_dec.c:877:49: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/ccaption_dec.c:877:15: call_function: calling ‘process_cc608’ from ‘decode’
#  685|           ret = capture_screen(ctx);
#  686|   
#  687|->     return ret;
#  688|   }
#  689|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def51]
ffmpeg-7.1.1/libavcodec/dcaadpcm.c:37:14: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
ffmpeg-7.1.1/libavcodec/dcaadpcm.c:126:5: enter_function: entry to ‘ff_dcaadpcm_subband_analysis’
ffmpeg-7.1.1/libavcodec/dcaadpcm.c:144:28: call_function: inlined call to ‘norm__’ from ‘ff_dcaadpcm_subband_analysis’
ffmpeg-7.1.1/libavcodec/dcaadpcm.c:144:9: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/dcaadpcm.c:142:17: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/dcaadpcm.c:147:15: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/dcaadpcm.c:147:15: call_function: calling ‘find_best_filter’ from ‘ff_dcaadpcm_subband_analysis’
#   35|       int64_t s = 0;
#   36|       for (n = 0; n < len; n++)
#   37|->         s += MUL64(x[n-j], x[n-k]);
#   38|       return s;
#   39|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def52]
ffmpeg-7.1.1/libavcodec/decode.c:1979:20: warning[-Wanalyzer-malloc-leak]: leak of ‘iconv_open("UTF-8", *avctx.sub_charenc)’
ffmpeg-7.1.1/libavcodec/decode.c:1960:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/decode.c:1961:13: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/decode.c:1961:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/decode.c:1965:20: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/decode.c:1965:19: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/decode.c:1973:17: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/decode.c:1976:16: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/decode.c:1978:30: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/decode.c:1978:30: acquire_memory: allocated here
ffmpeg-7.1.1/libavcodec/decode.c:1979:20: danger: ‘iconv_open("UTF-8", *avctx.sub_charenc)’ leaks here; was allocated at [(9)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/8)
# 1977|   #if CONFIG_ICONV
# 1978|                   iconv_t cd = iconv_open("UTF-8", avctx->sub_charenc);
# 1979|->                 if (cd == (iconv_t)-1) {
# 1980|                       ret = AVERROR(errno);
# 1981|                       av_log(avctx, AV_LOG_ERROR, "Unable to open iconv context "

Error: GCC_ANALYZER_WARNING (CWE-476): [#def53]
ffmpeg-7.1.1/libavcodec/diracdec.c:2067:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
ffmpeg-7.1.1/libavcodec/diracdec.c:2267:12: enter_function: entry to ‘dirac_decode_frame’
ffmpeg-7.1.1/libavcodec/diracdec.c:2278:17: branch_true: following ‘true’ branch (when ‘i != 14’)...
ffmpeg-7.1.1/libavcodec/diracdec.c:2279:13: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/diracdec.c:2284:5: release_memory: ‘0’ is NULL
ffmpeg-7.1.1/libavcodec/diracdec.c:2288:8: branch_false: following ‘false’ branch (when ‘buf_size != 0’)...
 branch_false: ...to here
ffmpeg-7.1.1/libavcodec/diracdec.c:2301:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/diracdec.c:2304:26: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/diracdec.c:2314:15: call_function: calling ‘dirac_decode_data_unit’ from ‘dirac_decode_frame’
# 2065|           while (add_frame(s->ref_frames, MAX_REFERENCE_FRAMES, s->current_picture)) {
# 2066|               av_log(s->avctx, AV_LOG_ERROR, "Reference frame overflow\n");
# 2067|->             remove_frame(s->ref_frames, s->ref_frames[0]->picture_number)->reference &= DELAYED_PIC_REF;
# 2068|           }
# 2069|       }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def54]
ffmpeg-7.1.1/libavcodec/dpx.c:289:12: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘i’
ffmpeg-7.1.1/libavcodec/dpx.c:152:12: enter_function: entry to ‘decode_frame’
ffmpeg-7.1.1/libavcodec/dpx.c:172:8: branch_false: following ‘false’ branch (when ‘buf_size > 1634’)...
ffmpeg-7.1.1/libavcodec/dpx.c:177:17: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/dpx.c:192:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/dpx.c:197:22: call_function: inlined call to ‘read32’ from ‘decode_frame’
ffmpeg-7.1.1/libavcodec/dpx.c:220:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/dpx.c:224:9: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/dpx.c:237:8: branch_false: following ‘false’ branch (when ‘encoding == 0’)...
ffmpeg-7.1.1/libavcodec/dpx.c:242:8: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/dpx.c:242:8: branch_false: following ‘false’ branch (when ‘bits_per_color <= 31’)...
ffmpeg-7.1.1/libavcodec/dpx.c:245:9: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/dpx.c:256:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/dpx.c:279:8: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/dpx.c:279:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/dpx.c:284:15: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/dpx.c:289:12: danger: use of uninitialized value ‘i’ here
#  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): [#def55]
ffmpeg-7.1.1/libavcodec/encode.c:239:55: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘frame’
ffmpeg-7.1.1/libavcodec/encode.c:508:25: enter_function: entry to ‘avcodec_send_frame’
ffmpeg-7.1.1/libavcodec/encode.c:513:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/encode.c:516:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/encode.c:519:9: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/encode.c:519:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/encode.c:522:8: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/encode.c:530:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/encode.c:531:15: call_function: calling ‘encode_receive_packet_internal’ from ‘avcodec_send_frame’
#  237|   {
#  238|       if (avctx->flags & AV_CODEC_FLAG_COPY_OPAQUE) {
#  239|->         int ret = av_buffer_replace(&pkt->opaque_ref, frame->opaque_ref);
#  240|           if (ret < 0)
#  241|               return ret;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def56]
ffmpeg-7.1.1/libavcodec/encode.c:272:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘frame’
ffmpeg-7.1.1/libavcodec/encode.c:541:25: enter_function: entry to ‘avcodec_receive_packet’
ffmpeg-7.1.1/libavcodec/encode.c:548:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/encode.c:551:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/encode.c:554:15: call_function: calling ‘encode_receive_packet_internal’ from ‘avcodec_receive_packet’
#  270|               (frame && (codec->caps_internal & FF_CODEC_CAP_EOF_FLUSH))) {
#  271|               if (avpkt->pts == AV_NOPTS_VALUE)
#  272|->                 avpkt->pts = frame->pts;
#  273|   
#  274|               if (!avpkt->duration) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def57]
ffmpeg-7.1.1/libavcodec/encode.c:275:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘frame’
ffmpeg-7.1.1/libavcodec/encode.c:508:25: enter_function: entry to ‘avcodec_send_frame’
ffmpeg-7.1.1/libavcodec/encode.c:513:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/encode.c:516:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/encode.c:519:9: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/encode.c:519:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/encode.c:522:8: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/encode.c:530:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/encode.c:531:15: call_function: calling ‘encode_receive_packet_internal’ from ‘avcodec_send_frame’
#  273|   
#  274|               if (!avpkt->duration) {
#  275|->                 if (frame->duration)
#  276|                       avpkt->duration = frame->duration;
#  277|                   else if (avctx->codec->type == AVMEDIA_TYPE_AUDIO) {

Error: GCC_ANALYZER_WARNING (CWE-457): [#def58]
ffmpeg-7.1.1/libavcodec/flacdec.c:323:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘b’
ffmpeg-7.1.1/libavcodec/flacdec.c:714:12: enter_function: entry to ‘flac_decode_frame’
ffmpeg-7.1.1/libavcodec/flacdec.c:725:9: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/flacdec.c:730:8: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/flacdec.c:730:8: branch_true: following ‘true’ branch (when ‘buf_size > 0’)...
ffmpeg-7.1.1/libavcodec/flacdec.c:730:26: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/flacdec.c:730:9: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/flacdec.c:738:8: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/flacdec.c:738:8: branch_false: following ‘false’ branch (when ‘buf_size > 9’)...
ffmpeg-7.1.1/libavcodec/flacdec.c:742:9: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/flacdec.c:742:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/flacdec.c:751:16: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/flacdec.c:751:16: call_function: inlined call to ‘init_get_bits8’ from ‘flac_decode_frame’
ffmpeg-7.1.1/libavcodec/flacdec.c:751:16: call_function: inlined call to ‘init_get_bits8’ from ‘flac_decode_frame’
ffmpeg-7.1.1/libavcodec/flacdec.c:751:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/flacdec.c:753:16: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/flacdec.c:753:16: call_function: calling ‘decode_frame’ from ‘flac_decode_frame’
#  321|           b = a - decoded[pred_order-2];
#  322|       if (pred_order > 2)
#  323|->         c = b - decoded[pred_order-2] + decoded[pred_order-3];
#  324|       if (pred_order > 3)
#  325|           d = c - decoded[pred_order-2] + 2U*decoded[pred_order-3] - decoded[pred_order-4];

Error: GCC_ANALYZER_WARNING (CWE-457): [#def59]
ffmpeg-7.1.1/libavcodec/flacdec.c:332:26: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘a’
ffmpeg-7.1.1/libavcodec/flacdec.c:714:12: enter_function: entry to ‘flac_decode_frame’
ffmpeg-7.1.1/libavcodec/flacdec.c:725:9: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/flacdec.c:730:8: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/flacdec.c:730:8: branch_true: following ‘true’ branch (when ‘buf_size > 0’)...
ffmpeg-7.1.1/libavcodec/flacdec.c:730:26: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/flacdec.c:730:9: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/flacdec.c:738:8: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/flacdec.c:738:8: branch_false: following ‘false’ branch (when ‘buf_size > 9’)...
ffmpeg-7.1.1/libavcodec/flacdec.c:742:9: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/flacdec.c:742:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/flacdec.c:751:16: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/flacdec.c:751:16: call_function: inlined call to ‘init_get_bits8’ from ‘flac_decode_frame’
ffmpeg-7.1.1/libavcodec/flacdec.c:751:16: call_function: inlined call to ‘init_get_bits8’ from ‘flac_decode_frame’
ffmpeg-7.1.1/libavcodec/flacdec.c:751:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/flacdec.c:753:16: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/flacdec.c:753:16: call_function: calling ‘decode_frame’ from ‘flac_decode_frame’
#  330|       case 1:
#  331|           for (i = pred_order; i < blocksize; i++)
#  332|->             decoded[i] = a += decoded[i];
#  333|           break;
#  334|       case 2:

Error: GCC_ANALYZER_WARNING (CWE-457): [#def60]
ffmpeg-7.1.1/libavcodec/flacdec.c:336:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘b’
ffmpeg-7.1.1/libavcodec/flacdec.c:714:12: enter_function: entry to ‘flac_decode_frame’
ffmpeg-7.1.1/libavcodec/flacdec.c:725:9: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/flacdec.c:730:8: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/flacdec.c:730:8: branch_true: following ‘true’ branch (when ‘buf_size > 0’)...
ffmpeg-7.1.1/libavcodec/flacdec.c:730:26: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/flacdec.c:730:9: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/flacdec.c:738:8: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/flacdec.c:738:8: branch_false: following ‘false’ branch (when ‘buf_size > 9’)...
ffmpeg-7.1.1/libavcodec/flacdec.c:742:9: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/flacdec.c:742:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/flacdec.c:751:16: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/flacdec.c:751:16: call_function: inlined call to ‘init_get_bits8’ from ‘flac_decode_frame’
ffmpeg-7.1.1/libavcodec/flacdec.c:751:16: call_function: inlined call to ‘init_get_bits8’ from ‘flac_decode_frame’
ffmpeg-7.1.1/libavcodec/flacdec.c:751:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/flacdec.c:753:16: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/flacdec.c:753:16: call_function: calling ‘decode_frame’ from ‘flac_decode_frame’
#  334|       case 2:
#  335|           for (i = pred_order; i < blocksize; i++)
#  336|->             decoded[i] = a += b += decoded[i];
#  337|           break;
#  338|       case 3:

Error: GCC_ANALYZER_WARNING (CWE-457): [#def61]
ffmpeg-7.1.1/libavcodec/flacdec.c:340:36: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘c’
ffmpeg-7.1.1/libavcodec/flacdec.c:714:12: enter_function: entry to ‘flac_decode_frame’
ffmpeg-7.1.1/libavcodec/flacdec.c:725:9: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/flacdec.c:730:8: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/flacdec.c:730:8: branch_true: following ‘true’ branch (when ‘buf_size > 0’)...
ffmpeg-7.1.1/libavcodec/flacdec.c:730:26: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/flacdec.c:730:9: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/flacdec.c:738:8: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/flacdec.c:738:8: branch_false: following ‘false’ branch (when ‘buf_size > 9’)...
ffmpeg-7.1.1/libavcodec/flacdec.c:742:9: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/flacdec.c:742:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/flacdec.c:751:16: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/flacdec.c:751:16: call_function: inlined call to ‘init_get_bits8’ from ‘flac_decode_frame’
ffmpeg-7.1.1/libavcodec/flacdec.c:751:16: call_function: inlined call to ‘init_get_bits8’ from ‘flac_decode_frame’
ffmpeg-7.1.1/libavcodec/flacdec.c:751:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/flacdec.c:753:16: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/flacdec.c:753:16: call_function: calling ‘decode_frame’ from ‘flac_decode_frame’
#  338|       case 3:
#  339|           for (i = pred_order; i < blocksize; i++)
#  340|->             decoded[i] = a += b += c += decoded[i];
#  341|           break;
#  342|       case 4:

Error: GCC_ANALYZER_WARNING (CWE-457): [#def62]
ffmpeg-7.1.1/libavcodec/flacdec.c:344:41: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘d’
ffmpeg-7.1.1/libavcodec/flacdec.c:714:12: enter_function: entry to ‘flac_decode_frame’
ffmpeg-7.1.1/libavcodec/flacdec.c:725:9: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/flacdec.c:730:8: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/flacdec.c:730:8: branch_true: following ‘true’ branch (when ‘buf_size > 0’)...
ffmpeg-7.1.1/libavcodec/flacdec.c:730:26: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/flacdec.c:730:9: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/flacdec.c:738:8: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/flacdec.c:738:8: branch_false: following ‘false’ branch (when ‘buf_size > 9’)...
ffmpeg-7.1.1/libavcodec/flacdec.c:742:9: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/flacdec.c:742:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/flacdec.c:751:16: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/flacdec.c:751:16: call_function: inlined call to ‘init_get_bits8’ from ‘flac_decode_frame’
ffmpeg-7.1.1/libavcodec/flacdec.c:751:16: call_function: inlined call to ‘init_get_bits8’ from ‘flac_decode_frame’
ffmpeg-7.1.1/libavcodec/flacdec.c:751:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/flacdec.c:753:16: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/flacdec.c:753:16: call_function: calling ‘decode_frame’ from ‘flac_decode_frame’
#  342|       case 4:
#  343|           for (i = pred_order; i < blocksize; i++)
#  344|->             decoded[i] = a += b += c += d += decoded[i];
#  345|           break;
#  346|       default:

Error: GCC_ANALYZER_WARNING (CWE-457): [#def63]
ffmpeg-7.1.1/libavcodec/g723_1enc.c:398:5: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘weight[<unknown>]’
ffmpeg-7.1.1/libavcodec/g723_1enc.c:373:17: branch_true: following ‘true’ branch (when ‘i != 9’)...
ffmpeg-7.1.1/libavcodec/g723_1enc.c:374:15: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/g723_1enc.c:375:12: branch_true: following ‘true’ branch (when ‘min > 32’)...
ffmpeg-7.1.1/libavcodec/g723_1enc.c:376:25: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/g723_1enc.c:373:17: branch_false: following ‘false’ branch (when ‘i == 9’)...
 branch_false: ...to here
ffmpeg-7.1.1/libavcodec/g723_1enc.c:383:17: branch_true: following ‘true’ branch (when ‘i != 10’)...
ffmpeg-7.1.1/libavcodec/g723_1enc.c:384:15: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/g723_1enc.c:387:17: branch_true: following ‘true’ branch (when ‘i != 10’)...
ffmpeg-7.1.1/libavcodec/g723_1enc.c:388:9: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/g723_1enc.c:387:17: branch_false: following ‘false’ branch (when ‘i == 10’)...
 branch_false: ...to here
ffmpeg-7.1.1/libavcodec/g723_1enc.c:392:17: branch_true: following ‘true’ branch (when ‘i != 10’)...
ffmpeg-7.1.1/libavcodec/g723_1enc.c:393:9: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/g723_1enc.c:392:17: branch_true: following ‘true’ branch (when ‘i != 10’)...
ffmpeg-7.1.1/libavcodec/g723_1enc.c:393:9: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/g723_1enc.c:397:5: branch_true: following ‘true’ branch (when ‘i != 256’)...
 branch_true: ...to here
ffmpeg-7.1.1/libavcodec/g723_1enc.c:397:5: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/g723_1enc.c:397:5: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/g723_1enc.c:398:5: branch_true: following ‘true’ branch (when ‘i != 256’)...
 branch_true: ...to here
ffmpeg-7.1.1/libavcodec/g723_1enc.c:398:5: branch_true: following ‘true’ branch (when ‘j != 3’)...
ffmpeg-7.1.1/libavcodec/g723_1enc.c:398:5: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/g723_1enc.c:398:5: danger: use of uninitialized value ‘weight[<unknown>]’ here
#  396|   
#  397|       get_index(0, 0, 3);
#  398|->     get_index(1, 3, 3);
#  399|       get_index(2, 6, 4);
#  400|   }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def64]
ffmpeg-7.1.1/libavcodec/g723_1enc.c:671:5: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘&*(int16_t (*)[70])(&buf_16[60])’
ffmpeg-7.1.1/libavcodec/g723_1enc.c:653:17: branch_true: following ‘true’ branch (when ‘i != 60’)...
 branch_true: ...to here
ffmpeg-7.1.1/libavcodec/g723_1enc.c:655:21: branch_true: following ‘true’ branch (when ‘j != 11’)...
ffmpeg-7.1.1/libavcodec/g723_1enc.c:656:28: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/g723_1enc.c:653:17: branch_false: following ‘false’ branch (when ‘i == 60’)...
 branch_false: ...to here
ffmpeg-7.1.1/libavcodec/g723_1enc.c:662:17: branch_true: following ‘true’ branch (when ‘i != 60’)...
 branch_true: ...to here
ffmpeg-7.1.1/libavcodec/g723_1enc.c:664:21: branch_true: following ‘true’ branch (when ‘j != 11’)...
ffmpeg-7.1.1/libavcodec/g723_1enc.c:665:28: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/g723_1enc.c:662:17: branch_false: following ‘false’ branch (when ‘i == 60’)...
ffmpeg-7.1.1/libavcodec/g723_1enc.c:671:5: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/g723_1enc.c:671:5: danger: use of uninitialized value ‘&*(int16_t (*)[70])(&buf_16[60])’ here
#  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: [#def65]
ffmpeg-7.1.1/libavcodec/gdv.c:167:13: warning[-Wanalyzer-overlapping-buffers]: overlapping buffers passed as arguments to ‘memcpy’
ffmpeg-7.1.1/libavcodec/gdv.c:459:12: enter_function: entry to ‘gdv_decode_frame’
ffmpeg-7.1.1/libavcodec/gdv.c:470:5: call_function: inlined call to ‘bytestream2_init’ from ‘gdv_decode_frame’
ffmpeg-7.1.1/libavcodec/gdv.c:471:5: call_function: inlined call to ‘bytestream2_init_writer’ from ‘gdv_decode_frame’
ffmpeg-7.1.1/libavcodec/gdv.c:476:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/gdv.c:479:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/gdv.c:481:21: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/gdv.c:485:5: call_function: calling ‘rescale’ from ‘gdv_decode_frame’
#  165|               uint8_t *dst1 = dst + PREAMBLE_SIZE + y * w;
#  166|               uint8_t *src1 = dst + PREAMBLE_SIZE + y*2 * w;
#  167|->             memcpy(dst1, src1, w);
#  168|           }
#  169|       } else if (scale_v) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def66]
ffmpeg-7.1.1/libavcodec/get_bits.h:325:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘gb.buffer_end’
ffmpeg-7.1.1/libavcodec/dvdec.c:392:12: enter_function: entry to ‘dv_decode_video_segment’
ffmpeg-7.1.1/libavcodec/dvdec.c:428:24: branch_true: following ‘true’ branch (when ‘mb_index != 5’)...
ffmpeg-7.1.1/libavcodec/dvdec.c:430:20: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/dvdec.c:431:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/dvdec.c:439:9: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/dvdec.c:444:21: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/dvdec.c:445:26: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/dvdec.c:446:13: call_function: calling ‘init_get_bits’ from ‘dv_decode_video_segment’
ffmpeg-7.1.1/libavcodec/dvdec.c:446:13: return_function: returning to ‘dv_decode_video_segment’ from ‘init_get_bits’
ffmpeg-7.1.1/libavcodec/dvdec.c:449:24: call_function: calling ‘get_sbits’ from ‘dv_decode_video_segment’
#  323|       OPEN_READER(re, s);
#  324|       av_assert2(n>0 && n<=25);
#  325|->     UPDATE_CACHE(re, s);
#  326|       tmp = SHOW_SBITS(re, s, n);
#  327|       LAST_SKIP_BITS(re, s, n);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def67]
ffmpeg-7.1.1/libavcodec/get_bits.h:325:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘gb.buffer’
ffmpeg-7.1.1/libavcodec/eatgv.c:148:12: enter_function: entry to ‘tgv_decode_inter’
ffmpeg-7.1.1/libavcodec/eatgv.c:160:7: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/eatgv.c:163:25: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/eatgv.c:169:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/eatgv.c:176:19: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/eatgv.c:176:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/eatgv.c:185:29: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/eatgv.c:185:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/eatgv.c:195:15: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/eatgv.c:197:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/eatgv.c:200:5: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/eatgv.c:200:5: call_function: calling ‘init_get_bits’ from ‘tgv_decode_inter’
ffmpeg-7.1.1/libavcodec/eatgv.c:200:5: return_function: returning to ‘tgv_decode_inter’ from ‘init_get_bits’
ffmpeg-7.1.1/libavcodec/eatgv.c:201:17: branch_true: following ‘true’ branch (when ‘i < num_mvs’)...
ffmpeg-7.1.1/libavcodec/eatgv.c:202:9: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/eatgv.c:202:32: call_function: calling ‘get_sbits’ from ‘tgv_decode_inter’
#  323|       OPEN_READER(re, s);
#  324|       av_assert2(n>0 && n<=25);
#  325|->     UPDATE_CACHE(re, s);
#  326|       tmp = SHOW_SBITS(re, s, n);
#  327|       LAST_SKIP_BITS(re, s, n);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def68]
ffmpeg-7.1.1/libavcodec/get_bits.h:340:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘*s.gb.buffer’
ffmpeg-7.1.1/libavcodec/nellymoserdec.c:63:13: enter_function: entry to ‘nelly_decode_block’
ffmpeg-7.1.1/libavcodec/nellymoserdec.c:73:5: call_function: calling ‘init_get_bits’ from ‘nelly_decode_block’
ffmpeg-7.1.1/libavcodec/nellymoserdec.c:73:5: return_function: returning to ‘nelly_decode_block’ from ‘init_get_bits’
ffmpeg-7.1.1/libavcodec/nellymoserdec.c:77:31: call_function: calling ‘get_bits’ from ‘nelly_decode_block’
#  338|       OPEN_READER(re, s);
#  339|       av_assert2(n>0 && n<=25);
#  340|->     UPDATE_CACHE(re, s);
#  341|       tmp = SHOW_UBITS(re, s, n);
#  342|       LAST_SKIP_BITS(re, s, n);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def69]
ffmpeg-7.1.1/libavcodec/get_bits.h:340:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
ffmpeg-7.1.1/libavcodec/atrac3.c:833:12: enter_function: entry to ‘atrac3al_decode_frame’
ffmpeg-7.1.1/libavcodec/atrac3.c:842:11: call_function: calling ‘al_decode_frame’ from ‘atrac3al_decode_frame’
#  338|       OPEN_READER(re, s);
#  339|       av_assert2(n>0 && n<=25);
#  340|->     UPDATE_CACHE(re, s);
#  341|       tmp = SHOW_UBITS(re, s, n);
#  342|       LAST_SKIP_BITS(re, s, n);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def70]
ffmpeg-7.1.1/libavcodec/get_bits.h:340:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘gb.buffer_end’
ffmpeg-7.1.1/libavcodec/adpcm.c:1070:12: enter_function: entry to ‘adpcm_decode_frame’
ffmpeg-7.1.1/libavcodec/adpcm.c:1083:5: call_function: inlined call to ‘bytestream2_init’ from ‘adpcm_decode_frame’
ffmpeg-7.1.1/libavcodec/adpcm.c:1085:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/adpcm.c:1091:5: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/adpcm.c:1092:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/adpcm.c:1094:5: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/adpcm.c:1099:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/adpcm.c:1105:10: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/adpcm.c:1994:5: call_function: calling ‘adpcm_swf_decode’ from ‘adpcm_decode_frame’
#  338|       OPEN_READER(re, s);
#  339|       av_assert2(n>0 && n<=25);
#  340|->     UPDATE_CACHE(re, s);
#  341|       tmp = SHOW_UBITS(re, s, n);
#  342|       LAST_SKIP_BITS(re, s, n);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def71]
ffmpeg-7.1.1/libavcodec/get_bits.h:340:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘gb.buffer’
ffmpeg-7.1.1/libavcodec/atrac1.c:277:12: enter_function: entry to ‘atrac1_decode_frame’
ffmpeg-7.1.1/libavcodec/atrac1.c:288:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/atrac1.c:294:5: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/atrac1.c:295:8: branch_false: following ‘false’ branch...
 branch_false: ...to here
ffmpeg-7.1.1/libavcodec/atrac1.c:298:18: branch_true: following ‘true’ branch (when ‘ch < channels’)...
ffmpeg-7.1.1/libavcodec/atrac1.c:299:19: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/atrac1.c:301:9: call_function: calling ‘init_get_bits’ from ‘atrac1_decode_frame’
ffmpeg-7.1.1/libavcodec/atrac1.c:301:9: return_function: returning to ‘atrac1_decode_frame’ from ‘init_get_bits’
ffmpeg-7.1.1/libavcodec/atrac1.c:304:15: call_function: calling ‘at1_parse_bsm’ from ‘atrac1_decode_frame’
#  338|       OPEN_READER(re, s);
#  339|       av_assert2(n>0 && n<=25);
#  340|->     UPDATE_CACHE(re, s);
#  341|       tmp = SHOW_UBITS(re, s, n);
#  342|       LAST_SKIP_BITS(re, s, n);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def72]
ffmpeg-7.1.1/libavcodec/get_bits.h:340:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘header.data’
ffmpeg-7.1.1/libavcodec/qdm2.c:1846:12: enter_function: entry to ‘qdm2_decode_frame’
ffmpeg-7.1.1/libavcodec/qdm2.c:1855:7: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
ffmpeg-7.1.1/libavcodec/qdm2.c:1857:19: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/qdm2.c:1857:7: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/qdm2.c:1861:30: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/qdm2.c:1862:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/qdm2.c:1864:5: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/qdm2.c:1866:17: branch_true: following ‘true’ branch (when ‘i != 16’)...
ffmpeg-7.1.1/libavcodec/qdm2.c:1867:20: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/qdm2.c:1867:20: call_function: calling ‘qdm2_decode’ from ‘qdm2_decode_frame’
#  338|       OPEN_READER(re, s);
#  339|       av_assert2(n>0 && n<=25);
#  340|->     UPDATE_CACHE(re, s);
#  341|       tmp = SHOW_UBITS(re, s, n);
#  342|       LAST_SKIP_BITS(re, s, n);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def73]
ffmpeg-7.1.1/libavcodec/get_bits.h:340:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘s.buffer_end’
ffmpeg-7.1.1/libavcodec/pcx.c:73:12: enter_function: entry to ‘pcx_decode_frame’
ffmpeg-7.1.1/libavcodec/pcx.c:84:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/pcx.c:89:27: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/pcx.c:91:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/pcx.c:91:47: call_function: inlined call to ‘bytestream2_get_byteu’ from ‘pcx_decode_frame’
ffmpeg-7.1.1/libavcodec/pcx.c:91:9: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/pcx.c:96:38: call_function: inlined call to ‘bytestream2_get_byteu’ from ‘pcx_decode_frame’
ffmpeg-7.1.1/libavcodec/pcx.c:105:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/pcx.c:110:9: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/pcx.c:118:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/pcx.c:118:9: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/pcx.c:144:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/pcx.c:147:16: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/pcx.c:147:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/pcx.c:150:5: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/pcx.c:156:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/pcx.c:159:9: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/pcx.c:159:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/pcx.c:173:16: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/pcx.c:173:15: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/pcx.c:200:15: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/pcx.c:200:15: branch_true: following ‘true’ branch...
 branch_true: ...to here
ffmpeg-7.1.1/libavcodec/pcx.c:203:21: branch_true: following ‘true’ branch (when ‘y < h’)...
ffmpeg-7.1.1/libavcodec/pcx.c:204:13: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/pcx.c:204:13: call_function: calling ‘init_get_bits8’ from ‘pcx_decode_frame’
ffmpeg-7.1.1/libavcodec/pcx.c:204:13: return_function: returning to ‘pcx_decode_frame’ from ‘init_get_bits8’
ffmpeg-7.1.1/libavcodec/pcx.c:206:19: call_function: calling ‘pcx_rle_decode’ from ‘pcx_decode_frame’
ffmpeg-7.1.1/libavcodec/pcx.c:206:19: return_function: returning to ‘pcx_decode_frame’ from ‘pcx_rle_decode’
ffmpeg-7.1.1/libavcodec/pcx.c:207:16: branch_false: following ‘false’ branch...
 branch_false: ...to here
ffmpeg-7.1.1/libavcodec/pcx.c:210:25: branch_true: following ‘true’ branch (when ‘x < w’)...
ffmpeg-7.1.1/libavcodec/pcx.c:211:26: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/pcx.c:211:26: call_function: calling ‘get_bits’ from ‘pcx_decode_frame’
#  338|       OPEN_READER(re, s);
#  339|       av_assert2(n>0 && n<=25);
#  340|->     UPDATE_CACHE(re, s);
#  341|       tmp = SHOW_UBITS(re, s, n);
#  342|       LAST_SKIP_BITS(re, s, n);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def74]
ffmpeg-7.1.1/libavcodec/get_bits.h:361:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘gb.buffer_end’
ffmpeg-7.1.1/libavcodec/g726.c:464:12: enter_function: entry to ‘g726_decode_frame’
ffmpeg-7.1.1/libavcodec/g726.c:478:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/g726.c:480:5: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/g726.c:482:5: call_function: calling ‘init_get_bits’ from ‘g726_decode_frame’
ffmpeg-7.1.1/libavcodec/g726.c:482:5: return_function: returning to ‘g726_decode_frame’ from ‘init_get_bits’
ffmpeg-7.1.1/libavcodec/g726.c:484:12: branch_true: following ‘true’ branch (when ‘out_samples != 0’)...
ffmpeg-7.1.1/libavcodec/g726.c:485:37: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/g726.c:485:22: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/g726.c:486:37: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/g726.c:486:37: call_function: calling ‘get_bits_le’ from ‘g726_decode_frame’
#  359|       OPEN_READER(re, s);
#  360|       av_assert2(n>0 && n<=25);
#  361|->     UPDATE_CACHE_LE(re, s);
#  362|       tmp = SHOW_UBITS_LE(re, s, n);
#  363|       LAST_SKIP_BITS(re, s, n);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def75]
ffmpeg-7.1.1/libavcodec/get_bits.h:376:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘gb.buffer’
ffmpeg-7.1.1/libavcodec/vble.c:117:12: enter_function: entry to ‘vble_decode_frame’
ffmpeg-7.1.1/libavcodec/vble.c:128:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/vble.c:134:15: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/vble.c:139:5: call_function: calling ‘init_get_bits’ from ‘vble_decode_frame’
ffmpeg-7.1.1/libavcodec/vble.c:139:5: return_function: returning to ‘vble_decode_frame’ from ‘init_get_bits’
ffmpeg-7.1.1/libavcodec/vble.c:142:9: call_function: calling ‘vble_unpack’ from ‘vble_decode_frame’
#  374|       OPEN_READER_NOSIZE(re, s);
#  375|       av_assert2(n>0 && n<=25);
#  376|->     UPDATE_CACHE(re, s);
#  377|       tmp = SHOW_UBITS(re, s, n);
#  378|       return tmp;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def76]
ffmpeg-7.1.1/libavcodec/get_bits.h:391:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
ffmpeg-7.1.1/libavcodec/mimic.c:325:12: enter_function: entry to ‘mimic_decode_frame’
ffmpeg-7.1.1/libavcodec/mimic.c:338:8: branch_false: following ‘false’ branch (when ‘buf_size > 20’)...
ffmpeg-7.1.1/libavcodec/mimic.c:343:5: call_function: inlined call to ‘bytestream2_init’ from ‘mimic_decode_frame’
ffmpeg-7.1.1/libavcodec/mimic.c:372:15: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/mimic.c:377:9: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/mimic.c:382:42: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/mimic.c:385:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/mimic.c:387:48: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/mimic.c:396:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/mimic.c:399:5: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/mimic.c:402:5: call_function: calling ‘init_get_bits’ from ‘mimic_decode_frame’
ffmpeg-7.1.1/libavcodec/mimic.c:402:5: return_function: returning to ‘mimic_decode_frame’ from ‘init_get_bits’
ffmpeg-7.1.1/libavcodec/mimic.c:404:11: call_function: calling ‘decode’ from ‘mimic_decode_frame’
#  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): [#def77]
ffmpeg-7.1.1/libavcodec/get_bits.h:391:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘gb.buffer’
ffmpeg-7.1.1/libavcodec/mlpdec.c:1183:12: enter_function: entry to ‘read_access_unit’
ffmpeg-7.1.1/libavcodec/mlpdec.c:1199:8: branch_false: following ‘false’ branch (when ‘buf_size > 3’)...
ffmpeg-7.1.1/libavcodec/mlpdec.c:1202:15: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/mlpdec.c:1204:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/mlpdec.c:1207:35: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/mlpdec.c:1207:5: call_function: calling ‘init_get_bits’ from ‘read_access_unit’
ffmpeg-7.1.1/libavcodec/mlpdec.c:1207:5: return_function: returning to ‘read_access_unit’ from ‘init_get_bits’
ffmpeg-7.1.1/libavcodec/mlpdec.c:1210:9: call_function: calling ‘show_bits_long’ from ‘read_access_unit’
ffmpeg-7.1.1/libavcodec/mlpdec.c:1210:9: return_function: returning to ‘read_access_unit’ from ‘show_bits_long’
ffmpeg-7.1.1/libavcodec/mlpdec.c:1218:8: branch_false: following ‘false’ branch...
 branch_false: ...to here
ffmpeg-7.1.1/libavcodec/mlpdec.c:1284:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/mlpdec.c:1289:12: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/mlpdec.c:1291:22: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/mlpdec.c:1294:33: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/mlpdec.c:1294:9: call_function: calling ‘init_get_bits’ from ‘read_access_unit’
ffmpeg-7.1.1/libavcodec/mlpdec.c:1294:9: return_function: returning to ‘read_access_unit’ from ‘init_get_bits’
ffmpeg-7.1.1/libavcodec/mlpdec.c:1301:17: call_function: calling ‘get_bits1’ from ‘read_access_unit’
#  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): [#def78]
ffmpeg-7.1.1/libavcodec/get_bits.h:433:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘gb.buffer_end’
ffmpeg-7.1.1/libavcodec/h264_parser.c:584:12: enter_function: entry to ‘h264_parse’
ffmpeg-7.1.1/libavcodec/h264_parser.c:603:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/h264_parser.c:606:16: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/h264_parser.c:606:16: call_function: calling ‘h264_find_frame_end’ from ‘h264_parse’
#  431|           unsigned tmp;
#  432|           OPEN_READER(re, s);
#  433|->         UPDATE_CACHE_32(re, s);
#  434|           tmp = SHOW_UBITS(re, s, n);
#  435|           LAST_SKIP_BITS(re, s, n);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def79]
ffmpeg-7.1.1/libavcodec/get_bits.h:433:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘gb.buffer’
ffmpeg-7.1.1/libavcodec/mlpdec.c:1183:12: enter_function: entry to ‘read_access_unit’
ffmpeg-7.1.1/libavcodec/mlpdec.c:1199:8: branch_false: following ‘false’ branch (when ‘buf_size > 3’)...
ffmpeg-7.1.1/libavcodec/mlpdec.c:1202:15: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/mlpdec.c:1204:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/mlpdec.c:1207:35: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/mlpdec.c:1207:5: call_function: calling ‘init_get_bits’ from ‘read_access_unit’
ffmpeg-7.1.1/libavcodec/mlpdec.c:1207:5: return_function: returning to ‘read_access_unit’ from ‘init_get_bits’
ffmpeg-7.1.1/libavcodec/mlpdec.c:1210:9: call_function: calling ‘show_bits_long’ from ‘read_access_unit’
#  431|           unsigned tmp;
#  432|           OPEN_READER(re, s);
#  433|->         UPDATE_CACHE_32(re, s);
#  434|           tmp = SHOW_UBITS(re, s, n);
#  435|           LAST_SKIP_BITS(re, s, n);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def80]
ffmpeg-7.1.1/libavcodec/get_bits.h:658:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘gb.buffer_end’
ffmpeg-7.1.1/libavcodec/qdm2.c:1846:12: enter_function: entry to ‘qdm2_decode_frame’
ffmpeg-7.1.1/libavcodec/qdm2.c:1855:7: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
ffmpeg-7.1.1/libavcodec/qdm2.c:1857:19: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/qdm2.c:1857:7: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/qdm2.c:1861:30: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/qdm2.c:1862:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/qdm2.c:1864:5: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/qdm2.c:1866:17: branch_true: following ‘true’ branch (when ‘i != 16’)...
ffmpeg-7.1.1/libavcodec/qdm2.c:1867:20: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/qdm2.c:1867:20: call_function: calling ‘qdm2_decode’ from ‘qdm2_decode_frame’
#  656|   
#  657|       OPEN_READER(re, s);
#  658|->     UPDATE_CACHE(re, s);
#  659|   
#  660|       GET_VLC(code, re, s, table, bits, max_depth);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def81]
ffmpeg-7.1.1/libavcodec/hw_base_encode.c:53:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘target’
ffmpeg-7.1.1/libavcodec/hw_base_encode.c:557:5: enter_function: entry to ‘ff_hw_base_encode_receive_packet’
ffmpeg-7.1.1/libavcodec/hw_base_encode.c:560:28: release_memory: ‘pic’ is NULL
ffmpeg-7.1.1/libavcodec/hw_base_encode.c:564:5: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/hw_base_encode.c:581:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/hw_base_encode.c:586:11: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/hw_base_encode.c:586:11: call_function: calling ‘hw_base_encode_send_frame’ from ‘ff_hw_base_encode_receive_packet’
ffmpeg-7.1.1/libavcodec/hw_base_encode.c:586:11: return_function: returning to ‘ff_hw_base_encode_receive_packet’ from ‘hw_base_encode_send_frame’
ffmpeg-7.1.1/libavcodec/hw_base_encode.c:587:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/hw_base_encode.c:590:10: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/hw_base_encode.c:590:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/hw_base_encode.c:597:9: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/hw_base_encode.c:597:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/hw_base_encode.c:624:15: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/hw_base_encode.c:624:15: call_function: calling ‘hw_base_encode_pick_next’ from ‘ff_hw_base_encode_receive_packet’
#   51|           av_assert0(pic->nb_refs[0] < MAX_PICTURE_REFERENCES &&
#   52|                      pic->nb_refs[1] < MAX_PICTURE_REFERENCES);
#   53|->         if (target->display_order < pic->display_order)
#   54|               pic->refs[0][pic->nb_refs[0]++] = target;
#   55|           else

Error: GCC_ANALYZER_WARNING (CWE-457): [#def82]
ffmpeg-7.1.1/libavcodec/ilbcdec.c:633:28: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
ffmpeg-7.1.1/libavcodec/ilbcdec.c:769:13: enter_function: entry to ‘decode_residual’
ffmpeg-7.1.1/libavcodec/ilbcdec.c:790:5: call_function: calling ‘state_construct’ from ‘decode_residual’
ffmpeg-7.1.1/libavcodec/ilbcdec.c:790:5: return_function: returning to ‘decode_residual’ from ‘state_construct’
ffmpeg-7.1.1/libavcodec/ilbcdec.c:792:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/ilbcdec.c:794:34: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/ilbcdec.c:799:9: call_function: calling ‘construct_vector’ from ‘decode_residual’
#  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): [#def83]
ffmpeg-7.1.1/libavcodec/jpeg2000dec.c:112:18: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
ffmpeg-7.1.1/libavcodec/jpeg2000dec.c:104:12: branch_false: following ‘false’ branch (when ‘node’ is NULL)...
ffmpeg-7.1.1/libavcodec/jpeg2000dec.c:109:8: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/jpeg2000dec.c:109:8: branch_false: following ‘false’ branch (when ‘node’ is NULL)...
ffmpeg-7.1.1/libavcodec/jpeg2000dec.c:112:18: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/jpeg2000dec.c:112:18: danger: out-of-bounds read from byte -8 till byte -1 but ‘stack’ starts at byte 0
#  110|           curval = node->val;
#  111|       else
#  112|->         curval = stack[sp]->val;
#  113|   
#  114|       while (curval < threshold && sp >= 0) {

Error: GCC_ANALYZER_WARNING (CWE-457): [#def84]
ffmpeg-7.1.1/libavcodec/jpeg2000dec.c:952:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘v’
ffmpeg-7.1.1/libavcodec/jpeg2000dec.c:2799:12: enter_function: entry to ‘jpeg2000_decode_frame’
ffmpeg-7.1.1/libavcodec/jpeg2000dec.c:2806:5: call_function: inlined call to ‘bytestream2_init’ from ‘jpeg2000_decode_frame’
ffmpeg-7.1.1/libavcodec/jpeg2000dec.c:2810:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/jpeg2000dec.c:2816:8: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/jpeg2000dec.c:2833:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/jpeg2000dec.c:2838:15: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/jpeg2000dec.c:2838:15: call_function: calling ‘jpeg2000_read_main_headers’ from ‘jpeg2000_decode_frame’
#  950|           v = bytestream2_get_byte(&s->g);
#  951|       }
#  952|->     if (v & 0x80)
#  953|           return AVERROR_INVALIDDATA;
#  954|   

Error: COMPILER_WARNING: [#def85]
ffmpeg-7.1.1/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.1.1/libavcodec/jrevdct.c:70: included_from: Included from here.
ffmpeg-7.1.1/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: [#def86]
ffmpeg-7.1.1/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.1.1/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: [#def87]
ffmpeg-7.1.1/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.1.1/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: [#def88]
ffmpeg-7.1.1/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.1.1/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): [#def89]
ffmpeg-7.1.1/libavcodec/kbdwin.c:45:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘int_window’
ffmpeg-7.1.1/libavcodec/kbdwin.c:54:14: enter_function: entry to ‘ff_kbd_window_init’
ffmpeg-7.1.1/libavcodec/kbdwin.c:56:5: call_function: calling ‘kbd_window_init’ from ‘ff_kbd_window_init’
#   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): [#def90]
ffmpeg-7.1.1/libavcodec/kbdwin.c:50:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘int_window’
ffmpeg-7.1.1/libavcodec/kbdwin.c:54:14: enter_function: entry to ‘ff_kbd_window_init’
ffmpeg-7.1.1/libavcodec/kbdwin.c:56:5: call_function: calling ‘kbd_window_init’ from ‘ff_kbd_window_init’
#   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): [#def91]
ffmpeg-7.1.1/libavcodec/libopenjpegenc.c: scope_hint: In function ‘mj2_create_image’
ffmpeg-7.1.1/libavcodec/libopenjpegenc.c:256:9: warning[-Wdeprecated-declarations]: ‘bpp’ is deprecated: Use prec instead
#  256 |         cmptparm[i].bpp  = desc->comp[i].depth;
#      |         ^~~~~~~~
ffmpeg-7.1.1/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: COMPILER_WARNING (CWE-477): [#def92]
ffmpeg-7.1.1/libavcodec/libopenjpegenc.c:256:9: warning[-Wdeprecated-declarations]: ‘bpp’ is deprecated: Use prec instead
#  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): [#def93]
ffmpeg-7.1.1/libavcodec/libvpxdec.c:290:26: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘img_alpha’
ffmpeg-7.1.1/libavcodec/libvpxdec.c:229:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/libvpxdec.c:232:17: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/libvpxdec.c:263:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/libvpxdec.c:264:11: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/libvpxdec.c:263:9: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/libvpxdec.c:269:13: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/libvpxdec.c:269:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/libvpxdec.c:275:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/libvpxdec.c:281:13: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/libvpxdec.c:281:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/libvpxdec.c:289:12: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/libvpxdec.c:290:14: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/libvpxdec.c:290:26: danger: use of uninitialized value ‘img_alpha’ here
#  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): [#def94]
ffmpeg-7.1.1/libavcodec/libvpxdec.c:319:49: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘img_alpha’
ffmpeg-7.1.1/libavcodec/libvpxdec.c:229:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/libvpxdec.c:232:17: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/libvpxdec.c:263:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/libvpxdec.c:264:11: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/libvpxdec.c:263:9: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/libvpxdec.c:269:13: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/libvpxdec.c:269:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/libvpxdec.c:275:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/libvpxdec.c:281:13: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/libvpxdec.c:289:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/libvpxdec.c:300:21: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/libvpxdec.c:304:13: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/libvpxdec.c:303:9: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/libvpxdec.c:309:13: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/libvpxdec.c:308:9: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/libvpxdec.c:311:12: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/libvpxdec.c:313:16: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/libvpxdec.c:315:45: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/libvpxdec.c:316:16: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/libvpxdec.c:318:17: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/libvpxdec.c:318:16: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/libvpxdec.c:319:49: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/libvpxdec.c:319:49: danger: use of uninitialized value ‘img_alpha’ here
#  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): [#def95]
ffmpeg-7.1.1/libavcodec/motionpixels.c:265:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘p.y’
ffmpeg-7.1.1/libavcodec/motionpixels.c:282:12: enter_function: entry to ‘mp_decode_frame’
ffmpeg-7.1.1/libavcodec/motionpixels.c:291:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/motionpixels.c:295:5: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/motionpixels.c:296:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/motionpixels.c:298:5: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/motionpixels.c:302:5: call_function: calling ‘init_get_bits’ from ‘mp_decode_frame’
ffmpeg-7.1.1/libavcodec/motionpixels.c:302:5: return_function: returning to ‘mp_decode_frame’ from ‘init_get_bits’
ffmpeg-7.1.1/libavcodec/motionpixels.c:313:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/motionpixels.c:316:9: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/motionpixels.c:320:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/motionpixels.c:323:10: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/motionpixels.c:326:8: branch_false: following ‘false’ branch (when ‘sz != 0’)...
ffmpeg-7.1.1/libavcodec/motionpixels.c:329:9: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/motionpixels.c:339:5: call_function: calling ‘mp_decode_frame_helper’ from ‘mp_decode_frame’
#  263|               p = mp_get_yuv_from_rgb(mp, 0, y);
#  264|           } else {
#  265|->             p.y += mp_gradient(mp, 0, mp_get_vlc(mp, gb));
#  266|               p.y = av_clip_uintp2(p.y, 5);
#  267|               if ((y & 3) == 0) {

Error: GCC_ANALYZER_WARNING (CWE-126): [#def96]
ffmpeg-7.1.1/libavcodec/mpegaudiodec_template.c:436:21: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
ffmpeg-7.1.1/libavcodec/mpegaudiodec_template.c:1818:12: enter_function: entry to ‘decode_frame_mp3on4’
ffmpeg-7.1.1/libavcodec/mpegaudiodec_template.c:1833:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/mpegaudiodec_template.c:1835:5: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/mpegaudiodec_template.c:1838:8: branch_false: following ‘false’ branch (when ‘buf_size > 3’)...
ffmpeg-7.1.1/libavcodec/mpegaudiodec_template.c:1841:5: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/mpegaudiodec_template.c:1844:18: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/mpegaudiodec_template.c:1845:17: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/mpegaudiodec_template.c:1850:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/mpegaudiodec_template.c:1854:19: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/mpegaudiodec_template.c:1857:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/mpegaudiodec_template.c:1862:18: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/mpegaudiodec_template.c:1862:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/mpegaudiodec_template.c:1863:13: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/mpegaudiodec_template.c:1862:13: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/mpegaudiodec_template.c:1870:33: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/mpegaudiodec_template.c:1874:20: call_function: calling ‘mp_decode_frame’ from ‘decode_frame_mp3on4’
#  434|           for (i = 0; i < bound; i++) {
#  435|               for (ch = 0; ch < s->nb_channels; ch++) {
#  436|->                 n = allocation[ch][i];
#  437|                   if (n) {
#  438|                       mant = get_bits(&s->gb, n + 1);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def97]
ffmpeg-7.1.1/libavcodec/mpegaudiodec_template.c:933:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘&tmp’
ffmpeg-7.1.1/libavcodec/mpegaudiodec_template.c:1818:12: enter_function: entry to ‘decode_frame_mp3on4’
ffmpeg-7.1.1/libavcodec/mpegaudiodec_template.c:1833:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/mpegaudiodec_template.c:1835:5: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/mpegaudiodec_template.c:1838:8: branch_false: following ‘false’ branch (when ‘buf_size > 3’)...
ffmpeg-7.1.1/libavcodec/mpegaudiodec_template.c:1841:5: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/mpegaudiodec_template.c:1844:18: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/mpegaudiodec_template.c:1845:17: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/mpegaudiodec_template.c:1850:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/mpegaudiodec_template.c:1854:19: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/mpegaudiodec_template.c:1857:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/mpegaudiodec_template.c:1862:18: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/mpegaudiodec_template.c:1862:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/mpegaudiodec_template.c:1863:13: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/mpegaudiodec_template.c:1862:13: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/mpegaudiodec_template.c:1870:33: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/mpegaudiodec_template.c:1874:20: call_function: calling ‘mp_decode_frame’ from ‘decode_frame_mp3on4’
#  931|           }
#  932|           ptr += 2 * len;
#  933|->         memcpy(ptr1, tmp, len * 3 * sizeof(*ptr1));
#  934|       }
#  935|   }

Error: GCC_ANALYZER_WARNING (CWE-127): [#def98]
ffmpeg-7.1.1/libavcodec/mpegaudioenc_template.c:209:17: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
ffmpeg-7.1.1/libavcodec/mpegaudioenc_template.c:737:12: enter_function: entry to ‘MPA_encode_frame’
ffmpeg-7.1.1/libavcodec/mpegaudioenc_template.c:746:13: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/mpegaudioenc_template.c:747:30: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/mpegaudioenc_template.c:747:9: call_function: calling ‘filter’ from ‘MPA_encode_frame’
#  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): [#def99]
ffmpeg-7.1.1/libavcodec/mpegaudioenc_template.c:210:17: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
ffmpeg-7.1.1/libavcodec/mpegaudioenc_template.c:737:12: enter_function: entry to ‘MPA_encode_frame’
ffmpeg-7.1.1/libavcodec/mpegaudioenc_template.c:746:13: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/mpegaudioenc_template.c:747:30: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/mpegaudioenc_template.c:747:9: call_function: calling ‘filter’ from ‘MPA_encode_frame’
#  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): [#def100]
ffmpeg-7.1.1/libavcodec/mpegaudioenc_template.c:516:5: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘smr1’
ffmpeg-7.1.1/libavcodec/mpegaudioenc_template.c:737:12: enter_function: entry to ‘MPA_encode_frame’
ffmpeg-7.1.1/libavcodec/mpegaudioenc_template.c:746:13: branch_false: following ‘false’ branch...
 branch_false: ...to here
ffmpeg-7.1.1/libavcodec/mpegaudioenc_template.c:750:13: branch_false: following ‘false’ branch...
 branch_false: ...to here
ffmpeg-7.1.1/libavcodec/mpegaudioenc_template.c:754:13: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/mpegaudioenc_template.c:757:5: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/mpegaudioenc_template.c:757:5: call_function: calling ‘compute_bit_allocation’ from ‘MPA_encode_frame’
#  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): [#def101]
ffmpeg-7.1.1/libavcodec/opus/celt.c:87:20: warning[-Wanalyzer-infinite-loop]: infinite loop
ffmpeg-7.1.1/libavcodec/opus/celt.c:87:20: danger: infinite loop here
ffmpeg-7.1.1/libavcodec/opus/celt.c:87:20: branch_true: if it ever follows ‘true’ branch, it will always do so...
 branch_true: ...to here
#   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): [#def102]
ffmpeg-7.1.1/libavcodec/opus/enc.c:148:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘cur’
ffmpeg-7.1.1/libavcodec/opus/enc.c:425:13: enter_function: entry to ‘celt_encode_frame’
ffmpeg-7.1.1/libavcodec/opus/enc.c:432:5: call_function: calling ‘celt_frame_setup_input’ from ‘celt_encode_frame’
#  146|           for (int ch = 0; ch < f->channels; ch++) {
#  147|               CeltBlock *b = &f->block[ch];
#  148|->             const void *input = cur->extended_data[ch];
#  149|               const size_t bps  = av_get_bytes_per_sample(cur->format);
#  150|               const size_t left = (subframesize - cur->nb_samples)*bps;

Error: GCC_ANALYZER_WARNING: [#def103]
ffmpeg-7.1.1/libavcodec/opus/enc.c:696:16: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
ffmpeg-7.1.1/libavcodec/opus/enc.c:633:20: enter_function: entry to ‘opus_encode_init’
ffmpeg-7.1.1/libavcodec/opus/enc.c:663:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/opus/enc.c:665:5: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/opus/enc.c:669:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/opus/enc.c:672:43: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/opus/enc.c:672:8: branch_false: following ‘false’ branch...
 branch_false: ...to here
ffmpeg-7.1.1/libavcodec/opus/enc.c:676:21: branch_true: following ‘true’ branch (when ‘i != 4’)...
ffmpeg-7.1.1/libavcodec/opus/enc.c:677:35: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/opus/enc.c:678:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/opus/enc.c:676:40: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/opus/enc.c:688:10: call_function: inlined call to ‘ff_bufqueue_peek’ from ‘opus_encode_init’
ffmpeg-7.1.1/libavcodec/opus/enc.c:688:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/opus/enc.c:691:16: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/opus/enc.c:691:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/opus/enc.c:695:24: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/opus/enc.c:696:16: danger: at least one operand of the size argument is of a floating-point type
#  694|       /* Frame structs and range coder buffers */
#  695|       max_frames = ceilf(FFMIN(s->options.max_delay_ms, 120.0f)/2.5f);
#  696|->     s->frame = av_malloc(max_frames*sizeof(CeltFrame));
#  697|       if (!s->frame)
#  698|           return AVERROR(ENOMEM);

Error: GCC_ANALYZER_WARNING: [#def104]
ffmpeg-7.1.1/libavcodec/opus/enc.c:699:13: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
ffmpeg-7.1.1/libavcodec/opus/enc.c:633:20: enter_function: entry to ‘opus_encode_init’
ffmpeg-7.1.1/libavcodec/opus/enc.c:663:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/opus/enc.c:665:5: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/opus/enc.c:669:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/opus/enc.c:672:43: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/opus/enc.c:672:8: branch_false: following ‘false’ branch...
 branch_false: ...to here
ffmpeg-7.1.1/libavcodec/opus/enc.c:676:21: branch_true: following ‘true’ branch (when ‘i != 4’)...
ffmpeg-7.1.1/libavcodec/opus/enc.c:677:35: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/opus/enc.c:678:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/opus/enc.c:676:40: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/opus/enc.c:688:10: call_function: inlined call to ‘ff_bufqueue_peek’ from ‘opus_encode_init’
ffmpeg-7.1.1/libavcodec/opus/enc.c:688:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/opus/enc.c:691:16: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/opus/enc.c:691:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/opus/enc.c:695:24: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/opus/enc.c:697:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/opus/enc.c:699:23: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/opus/enc.c:699:13: danger: at least one operand of the size argument is of a floating-point type
#  697|       if (!s->frame)
#  698|           return AVERROR(ENOMEM);
#  699|->     s->rc = av_malloc(max_frames*sizeof(OpusRangeCoder));
#  700|       if (!s->rc)
#  701|           return AVERROR(ENOMEM);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def105]
ffmpeg-7.1.1/libavcodec/opus/enc_psy.c:94:65: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
ffmpeg-7.1.1/libavcodec/opus/enc_psy.c:227:5: enter_function: entry to ‘ff_opus_psy_process’
ffmpeg-7.1.1/libavcodec/opus/enc_psy.c:232:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/opus/enc_psy.c:234:12: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/opus/enc_psy.c:235:41: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/opus/enc_psy.c:235:13: call_function: calling ‘step_collect_psy_metrics’ from ‘ff_opus_psy_process’
#   92|               const int offset = i*120;
#   93|               AVFrame *cur = ff_bufqueue_peek(s->bufqueue, index - i);
#   94|->             memcpy(&s->scratch[offset], cur->extended_data[ch], cur->nb_samples*sizeof(float));
#   95|           }
#   96|           for (i = 0; i < lap_size; i++) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def106]
ffmpeg-7.1.1/libavcodec/opus/enc_psy.c:99:65: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
ffmpeg-7.1.1/libavcodec/opus/enc_psy.c:227:5: enter_function: entry to ‘ff_opus_psy_process’
ffmpeg-7.1.1/libavcodec/opus/enc_psy.c:232:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/opus/enc_psy.c:234:12: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/opus/enc_psy.c:235:41: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/opus/enc_psy.c:235:13: call_function: calling ‘step_collect_psy_metrics’ from ‘ff_opus_psy_process’
#   97|               const int offset = i*120 + lap_size;
#   98|               AVFrame *cur = ff_bufqueue_peek(s->bufqueue, index + i);
#   99|->             memcpy(&s->scratch[offset], cur->extended_data[ch], cur->nb_samples*sizeof(float));
#  100|           }
#  101|   

Error: GCC_ANALYZER_WARNING: [#def107]
ffmpeg-7.1.1/libavcodec/opus/enc_psy.c:530:28: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
#  528|       s->inflection_points_count = 0;
#  529|   
#  530|->     s->inflection_points = av_mallocz(sizeof(*s->inflection_points)*s->max_steps);
#  531|       if (!s->inflection_points) {
#  532|           ret = AVERROR(ENOMEM);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def108]
ffmpeg-7.1.1/libavcodec/pcm-dvd.c:165:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘dst16’
ffmpeg-7.1.1/libavcodec/pcm-dvd.c:228:12: enter_function: entry to ‘pcm_dvd_decode_frame’
ffmpeg-7.1.1/libavcodec/pcm-dvd.c:238:8: branch_false: following ‘false’ branch (when ‘buf_size > 2’)...
ffmpeg-7.1.1/libavcodec/pcm-dvd.c:243:19: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/pcm-dvd.c:243:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/pcm-dvd.c:245:9: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/pcm-dvd.c:257:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/pcm-dvd.c:259:5: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/pcm-dvd.c:262:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/pcm-dvd.c:263:31: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/pcm-dvd.c:264:12: branch_true: following ‘true’ branch (when ‘buf_size >= missing_samples’)...
ffmpeg-7.1.1/libavcodec/pcm-dvd.c:265:13: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/pcm-dvd.c:267:19: call_function: calling ‘pcm_dvd_decode_samples’ from ‘pcm_dvd_decode_frame’
ffmpeg-7.1.1/libavcodec/pcm-dvd.c:267:19: return_function: returning to ‘pcm_dvd_decode_frame’ from ‘pcm_dvd_decode_samples’
ffmpeg-7.1.1/libavcodec/pcm-dvd.c:281:8: branch_true: following ‘true’ branch (when ‘blocks != 0’)...
ffmpeg-7.1.1/libavcodec/pcm-dvd.c:282:9: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/pcm-dvd.c:282:9: call_function: calling ‘pcm_dvd_decode_samples’ from ‘pcm_dvd_decode_frame’
#  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): [#def109]
ffmpeg-7.1.1/libavcodec/pcm-dvd.c:174:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘dst32’
ffmpeg-7.1.1/libavcodec/pcm-dvd.c:228:12: enter_function: entry to ‘pcm_dvd_decode_frame’
ffmpeg-7.1.1/libavcodec/pcm-dvd.c:238:8: branch_false: following ‘false’ branch (when ‘buf_size > 2’)...
ffmpeg-7.1.1/libavcodec/pcm-dvd.c:243:19: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/pcm-dvd.c:243:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/pcm-dvd.c:245:9: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/pcm-dvd.c:257:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/pcm-dvd.c:259:5: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/pcm-dvd.c:262:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/pcm-dvd.c:263:31: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/pcm-dvd.c:264:12: branch_true: following ‘true’ branch (when ‘buf_size >= missing_samples’)...
ffmpeg-7.1.1/libavcodec/pcm-dvd.c:265:13: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/pcm-dvd.c:267:19: call_function: calling ‘pcm_dvd_decode_samples’ from ‘pcm_dvd_decode_frame’
ffmpeg-7.1.1/libavcodec/pcm-dvd.c:267:19: return_function: returning to ‘pcm_dvd_decode_frame’ from ‘pcm_dvd_decode_samples’
ffmpeg-7.1.1/libavcodec/pcm-dvd.c:281:8: branch_true: following ‘true’ branch (when ‘blocks != 0’)...
ffmpeg-7.1.1/libavcodec/pcm-dvd.c:282:9: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/pcm-dvd.c:282:9: call_function: calling ‘pcm_dvd_decode_samples’ from ‘pcm_dvd_decode_frame’
#  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): [#def110]
ffmpeg-7.1.1/libavcodec/pcm-dvd.c:184:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘dst32’
ffmpeg-7.1.1/libavcodec/pcm-dvd.c:228:12: enter_function: entry to ‘pcm_dvd_decode_frame’
ffmpeg-7.1.1/libavcodec/pcm-dvd.c:238:8: branch_false: following ‘false’ branch (when ‘buf_size > 2’)...
ffmpeg-7.1.1/libavcodec/pcm-dvd.c:243:19: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/pcm-dvd.c:243:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/pcm-dvd.c:245:9: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/pcm-dvd.c:257:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/pcm-dvd.c:259:5: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/pcm-dvd.c:262:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/pcm-dvd.c:263:31: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/pcm-dvd.c:264:12: branch_true: following ‘true’ branch (when ‘buf_size >= missing_samples’)...
ffmpeg-7.1.1/libavcodec/pcm-dvd.c:265:13: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/pcm-dvd.c:267:19: call_function: calling ‘pcm_dvd_decode_samples’ from ‘pcm_dvd_decode_frame’
ffmpeg-7.1.1/libavcodec/pcm-dvd.c:267:19: return_function: returning to ‘pcm_dvd_decode_frame’ from ‘pcm_dvd_decode_samples’
ffmpeg-7.1.1/libavcodec/pcm-dvd.c:281:8: branch_true: following ‘true’ branch (when ‘blocks != 0’)...
ffmpeg-7.1.1/libavcodec/pcm-dvd.c:282:9: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/pcm-dvd.c:282:9: call_function: calling ‘pcm_dvd_decode_samples’ from ‘pcm_dvd_decode_frame’
#  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): [#def111]
ffmpeg-7.1.1/libavcodec/pcm-dvd.c:202:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘dst32’
ffmpeg-7.1.1/libavcodec/pcm-dvd.c:228:12: enter_function: entry to ‘pcm_dvd_decode_frame’
ffmpeg-7.1.1/libavcodec/pcm-dvd.c:238:8: branch_false: following ‘false’ branch (when ‘buf_size > 2’)...
ffmpeg-7.1.1/libavcodec/pcm-dvd.c:243:19: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/pcm-dvd.c:243:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/pcm-dvd.c:245:9: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/pcm-dvd.c:257:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/pcm-dvd.c:259:5: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/pcm-dvd.c:262:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/pcm-dvd.c:263:31: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/pcm-dvd.c:264:12: branch_true: following ‘true’ branch (when ‘buf_size >= missing_samples’)...
ffmpeg-7.1.1/libavcodec/pcm-dvd.c:265:13: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/pcm-dvd.c:267:19: call_function: calling ‘pcm_dvd_decode_samples’ from ‘pcm_dvd_decode_frame’
ffmpeg-7.1.1/libavcodec/pcm-dvd.c:267:19: return_function: returning to ‘pcm_dvd_decode_frame’ from ‘pcm_dvd_decode_samples’
ffmpeg-7.1.1/libavcodec/pcm-dvd.c:281:8: branch_true: following ‘true’ branch (when ‘blocks != 0’)...
ffmpeg-7.1.1/libavcodec/pcm-dvd.c:282:9: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/pcm-dvd.c:282:9: call_function: calling ‘pcm_dvd_decode_samples’ from ‘pcm_dvd_decode_frame’
#  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): [#def112]
ffmpeg-7.1.1/libavcodec/pcm-dvd.c:211:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘dst32’
ffmpeg-7.1.1/libavcodec/pcm-dvd.c:228:12: enter_function: entry to ‘pcm_dvd_decode_frame’
ffmpeg-7.1.1/libavcodec/pcm-dvd.c:238:8: branch_false: following ‘false’ branch (when ‘buf_size > 2’)...
ffmpeg-7.1.1/libavcodec/pcm-dvd.c:243:19: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/pcm-dvd.c:243:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/pcm-dvd.c:245:9: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/pcm-dvd.c:257:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/pcm-dvd.c:259:5: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/pcm-dvd.c:262:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/pcm-dvd.c:263:31: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/pcm-dvd.c:264:12: branch_true: following ‘true’ branch (when ‘buf_size >= missing_samples’)...
ffmpeg-7.1.1/libavcodec/pcm-dvd.c:265:13: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/pcm-dvd.c:267:19: call_function: calling ‘pcm_dvd_decode_samples’ from ‘pcm_dvd_decode_frame’
ffmpeg-7.1.1/libavcodec/pcm-dvd.c:267:19: return_function: returning to ‘pcm_dvd_decode_frame’ from ‘pcm_dvd_decode_samples’
ffmpeg-7.1.1/libavcodec/pcm-dvd.c:281:8: branch_true: following ‘true’ branch (when ‘blocks != 0’)...
ffmpeg-7.1.1/libavcodec/pcm-dvd.c:282:9: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/pcm-dvd.c:282:9: call_function: calling ‘pcm_dvd_decode_samples’ from ‘pcm_dvd_decode_frame’
#  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: COMPILER_WARNING (CWE-477): [#def113]
ffmpeg-7.1.1/libavcodec/pcm.c: scope_hint: In function ‘pcm_decode_init’
ffmpeg-7.1.1/libavcodec/pcm.c:287:5: warning[-Wdeprecated-declarations]: ‘sample_fmts’ is deprecated
#  287 |     avctx->sample_fmt = avctx->codec->sample_fmts[0];
#      |     ^~~~~
ffmpeg-7.1.1/libavcodec/avcodec.h:41: included_from: Included from here.
ffmpeg-7.1.1/libavcodec/pcm.c:34: included_from: Included from here.
ffmpeg-7.1.1/libavcodec/codec.h:219:32: note: declared here
#  219 |     const enum AVSampleFormat *sample_fmts; ///< @deprecated use avcodec_get_supported_config()
#      |                                ^~~~~~~~~~~
#  285|       }
#  286|   
#  287|->     avctx->sample_fmt = avctx->codec->sample_fmts[0];
#  288|   
#  289|       if (avctx->sample_fmt == AV_SAMPLE_FMT_S32)

Error: COMPILER_WARNING (CWE-477): [#def114]
ffmpeg-7.1.1/libavcodec/pcm.c:287:5: warning[-Wdeprecated-declarations]: ‘sample_fmts’ is deprecated
#  285|       }
#  286|   
#  287|->     avctx->sample_fmt = avctx->codec->sample_fmts[0];
#  288|   
#  289|       if (avctx->sample_fmt == AV_SAMPLE_FMT_S32)

Error: GCC_ANALYZER_WARNING (CWE-1335): [#def115]
ffmpeg-7.1.1/libavcodec/put_bits.h:225:9: warning[-Wanalyzer-shift-count-overflow]: shift by count (‘64’) >= precision of type (‘64’)
ffmpeg-7.1.1/libavcodec/sbcenc.c:99:15: enter_function: entry to ‘sbc_pack_frame’
ffmpeg-7.1.1/libavcodec/sbcenc.c:140:5: call_function: inlined call to ‘init_put_bits’ from ‘sbc_pack_frame’
ffmpeg-7.1.1/libavcodec/sbcenc.c:142:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/sbcenc.c:143:9: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/sbcenc.c:143:9: call_function: inlined call to ‘put_bits’ from ‘sbc_pack_frame’
#  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): [#def116]
ffmpeg-7.1.1/libavcodec/qsvenc.c:1525:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘&vps_buf’
ffmpeg-7.1.1/libavcodec/qsvenc.c:1504:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/qsvenc.c:1508:22: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/qsvenc.c:1510:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/qsvenc.c:1510:9: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/qsvenc.c:1521:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/qsvenc.c:1524:9: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/qsvenc.c:1524:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/qsvenc.c:1525:43: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/qsvenc.c:1525:9: danger: use of uninitialized value ‘&vps_buf’ here
# 1523|   
# 1524|       if (q->hevc_vps) {
# 1525|->         memcpy(avctx->extradata, vps_buf, extradata_vps.VPSBufSize);
# 1526|           extradata_offset += extradata_vps.VPSBufSize;
# 1527|       }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def117]
ffmpeg-7.1.1/libavcodec/qsvenc.c:1529:5: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘&sps_buf’
ffmpeg-7.1.1/libavcodec/qsvenc.c:1504:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/qsvenc.c:1508:22: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/qsvenc.c:1510:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/qsvenc.c:1510:9: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/qsvenc.c:1521:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/qsvenc.c:1524:9: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/qsvenc.c:1524:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/qsvenc.c:1529:58: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/qsvenc.c:1529:5: danger: use of uninitialized value ‘&sps_buf’ here
# 1527|       }
# 1528|   
# 1529|->     memcpy(avctx->extradata + extradata_offset, sps_buf, extradata.SPSBufSize);
# 1530|       extradata_offset += extradata.SPSBufSize;
# 1531|       if (need_pps) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def118]
ffmpeg-7.1.1/libavcodec/ra144.c:1519:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘s1’
ffmpeg-7.1.1/libavcodec/ra144.c:1694:6: enter_function: entry to ‘ff_subblock_synthesis’
ffmpeg-7.1.1/libavcodec/ra144.c:1701:8: branch_true: following ‘true’ branch (when ‘cba_idx != 0’)...
ffmpeg-7.1.1/libavcodec/ra144.c:1702:9: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/ra144.c:1715:5: branch_false: following ‘false’ branch (when ‘cba_idx == 0’)...
ffmpeg-7.1.1/libavcodec/ra144.c:1715:5: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/ra144.c:1715:5: call_function: calling ‘add_wav’ from ‘ff_subblock_synthesis’
# 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): [#def119]
ffmpeg-7.1.1/libavcodec/ra144.c:1643:30: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
ffmpeg-7.1.1/libavcodec/ra144.c:1657:5: enter_function: entry to ‘ff_interp’
ffmpeg-7.1.1/libavcodec/ra144.c:1665:17: branch_true: following ‘true’ branch (when ‘i != 10’)...
ffmpeg-7.1.1/libavcodec/ra144.c:1666:23: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/ra144.c:1668:9: call_function: calling ‘ff_eval_refl’ from ‘ff_interp’
ffmpeg-7.1.1/libavcodec/ra144.c:1668:9: return_function: returning to ‘ff_interp’ from ‘ff_eval_refl’
ffmpeg-7.1.1/libavcodec/ra144.c:1668:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/ra144.c:1674:16: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/ra144.c:1674:16: call_function: calling ‘ff_rms’ from ‘ff_interp’
# 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): [#def120]
ffmpeg-7.1.1/libavcodec/ratecontrol.c:604:20: warning[-Wanalyzer-null-argument]: use of NULL ‘p’ where non-null expected
ffmpeg-7.1.1/libavcodec/ratecontrol.c:547:8: branch_false: following ‘false’ branch...
 branch_false: ...to here
ffmpeg-7.1.1/libavcodec/ratecontrol.c:552:17: branch_true: following ‘true’ branch (when ‘i != 5’)...
ffmpeg-7.1.1/libavcodec/ratecontrol.c:553:9: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/ratecontrol.c:552:17: branch_true: following ‘true’ branch (when ‘i != 5’)...
ffmpeg-7.1.1/libavcodec/ratecontrol.c:553:9: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/ratecontrol.c:552:17: branch_true: following ‘true’ branch (when ‘i != 5’)...
ffmpeg-7.1.1/libavcodec/ratecontrol.c:553:9: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/ratecontrol.c:552:17: branch_true: following ‘true’ branch (when ‘i != 5’)...
ffmpeg-7.1.1/libavcodec/ratecontrol.c:553:9: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/ratecontrol.c:552:17: branch_true: following ‘true’ branch (when ‘i != 5’)...
ffmpeg-7.1.1/libavcodec/ratecontrol.c:553:9: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/ratecontrol.c:552:17: branch_false: following ‘false’ branch (when ‘i == 5’)...
ffmpeg-7.1.1/libavcodec/ratecontrol.c:565:25: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/ratecontrol.c:569:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/ratecontrol.c:574:9: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/ratecontrol.c:578:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/ratecontrol.c:580:28: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/ratecontrol.c:581:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/ratecontrol.c:583:9: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/ratecontrol.c:598:21: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/ratecontrol.c:604:20: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/ratecontrol.c:605:16: branch_false: following ‘false’ branch (when ‘next’ is NULL)...
ffmpeg-7.1.1/libavcodec/ratecontrol.c:609:17: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/ratecontrol.c:611:13: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/ratecontrol.c:612:13: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/ratecontrol.c:612:13: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/ratecontrol.c:613:20: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/ratecontrol.c:625:16: branch_false: following ‘false’ branch (when ‘e == 13’)...
ffmpeg-7.1.1/libavcodec/ratecontrol.c:598:61: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/ratecontrol.c:598:21: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/ratecontrol.c:604:20: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/ratecontrol.c:604:20: danger: argument 1 (‘p’) NULL where non-null expected
#argument 1 of ‘__builtin_strchr’ must be non-null
#  602|               char *next;
#  603|   
#  604|->             next = strchr(p, ';');
#  605|               if (next) {
#  606|                   (*next) = 0; // sscanf is unbelievably slow on looong strings // FIXME copy / do not write

Error: GCC_ANALYZER_WARNING (CWE-457): [#def121]
ffmpeg-7.1.1/libavcodec/rka.c:475:8: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘val’
ffmpeg-7.1.1/libavcodec/rka.c:849:12: enter_function: entry to ‘rka_decode_frame’
ffmpeg-7.1.1/libavcodec/rka.c:856:5: call_function: inlined call to ‘bytestream2_init’ from ‘rka_decode_frame’
ffmpeg-7.1.1/libavcodec/rka.c:867:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/rka.c:870:9: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/rka.c:870:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/rka.c:876:25: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/rka.c:877:19: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/rka.c:877:19: call_function: calling ‘decode_ch_samples’ from ‘rka_decode_frame’
#  473|       freq = 0;
#  474|       dst[0] = 0;
#  475|->     if (val > 0 && am->buf_size > 0) {
#  476|           for (dst[0] = 0; dst[0] < size & freq < val; dst[0]++) {
#  477|               if (!am->prob[1][dst[0]])

Error: GCC_ANALYZER_WARNING (CWE-476): [#def122]
ffmpeg-7.1.1/libavcodec/roqaudioenc.c:180:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘frame’
ffmpeg-7.1.1/libavcodec/roqaudioenc.c:127:25: branch_false: following ‘false’ branch (when ‘frame’ is NULL)...
ffmpeg-7.1.1/libavcodec/roqaudioenc.c:128:9: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/roqaudioenc.c:134:8: branch_true: following ‘true’ branch (when ‘in’ is NULL)...
ffmpeg-7.1.1/libavcodec/roqaudioenc.c:134:16: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/roqaudioenc.c:134:9: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/roqaudioenc.c:148:9: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/roqaudioenc.c:148:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/roqaudioenc.c:149:9: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/roqaudioenc.c:162:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/roqaudioenc.c:164:11: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/roqaudioenc.c:177:17: branch_false: following ‘false’ branch (when ‘i >= data_size’)...
ffmpeg-7.1.1/libavcodec/roqaudioenc.c:180:23: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/roqaudioenc.c:180:23: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/roqaudioenc.c:180:23: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/roqaudioenc.c:180:23: danger: dereference of NULL ‘frame’
#  178|           *out++ = dpcm_predict(&context->lastSample[(i & 1) & stereo], *in++);
#  179|   
#  180|->     avpkt->pts      = context->input_frames <= 7 ? context->first_pts : frame->pts;
#  181|       avpkt->duration = data_size / channels;
#  182|   

Error: GCC_ANALYZER_WARNING (CWE-835): [#def123]
ffmpeg-7.1.1/libavcodec/sbc.c:118:17: warning[-Wanalyzer-infinite-loop]: infinite loop
ffmpeg-7.1.1/libavcodec/sbc.c:118:17: danger: infinite loop here
ffmpeg-7.1.1/libavcodec/sbc.c:121:30: branch_false: when ‘sb >= subbands’: always following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/sbc.c:127:22: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/sbc.c:127:22: branch_true: if it ever follows ‘true’ branch, it will always do so...
 branch_true: ...to here
#  116|               bitslice = max_bitneed + 1;
#  117|               do {
#  118|->                 bitslice--;
#  119|                   bitcount += slicecount;
#  120|                   slicecount = 0;

Error: COMPILER_WARNING (CWE-477): [#def124]
ffmpeg-7.1.1/libavcodec/sbcenc.c: scope_hint: In function ‘sbc_encode_init’
ffmpeg-7.1.1/libavcodec/sbcenc.c:263:5: warning[-Wdeprecated-declarations]: ‘supported_samplerates’ is deprecated
#  263 |     for (int i = 0; avctx->codec->supported_samplerates[i]; i++)
#      |     ^~~
ffmpeg-7.1.1/libavcodec/avcodec.h:41: included_from: Included from here.
ffmpeg-7.1.1/libavcodec/sbcenc.c:36: included_from: Included from here.
ffmpeg-7.1.1/libavcodec/codec.h:217:16: note: declared here
#  217 |     const int *supported_samplerates;       ///< @deprecated use avcodec_get_supported_config()
#      |                ^~~~~~~~~~~~~~~~~~~~~
#  261|       }
#  262|   
#  263|->     for (int i = 0; avctx->codec->supported_samplerates[i]; i++)
#  264|           if (avctx->sample_rate == avctx->codec->supported_samplerates[i])
#  265|               frame->frequency = i;

Error: COMPILER_WARNING (CWE-477): [#def125]
ffmpeg-7.1.1/libavcodec/sbcenc.c:263:5: warning[-Wdeprecated-declarations]: ‘supported_samplerates’ is deprecated
#  261|       }
#  262|   
#  263|->     for (int i = 0; avctx->codec->supported_samplerates[i]; i++)
#  264|           if (avctx->sample_rate == avctx->codec->supported_samplerates[i])
#  265|               frame->frequency = i;

Error: COMPILER_WARNING (CWE-477): [#def126]
ffmpeg-7.1.1/libavcodec/sbcenc.c:264:9: warning[-Wdeprecated-declarations]: ‘supported_samplerates’ is deprecated
#  264 |         if (avctx->sample_rate == avctx->codec->supported_samplerates[i])
#      |         ^~
ffmpeg-7.1.1/libavcodec/codec.h:217:16: note: declared here
#  217 |     const int *supported_samplerates;       ///< @deprecated use avcodec_get_supported_config()
#      |                ^~~~~~~~~~~~~~~~~~~~~
#  262|   
#  263|       for (int i = 0; avctx->codec->supported_samplerates[i]; i++)
#  264|->         if (avctx->sample_rate == avctx->codec->supported_samplerates[i])
#  265|               frame->frequency = i;
#  266|   

Error: COMPILER_WARNING (CWE-477): [#def127]
ffmpeg-7.1.1/libavcodec/sbcenc.c:264:9: warning[-Wdeprecated-declarations]: ‘supported_samplerates’ is deprecated
#  262|   
#  263|       for (int i = 0; avctx->codec->supported_samplerates[i]; i++)
#  264|->         if (avctx->sample_rate == avctx->codec->supported_samplerates[i])
#  265|               frame->frequency = i;
#  266|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def128]
ffmpeg-7.1.1/libavcodec/speexdec.c:818:18: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
ffmpeg-7.1.1/libavcodec/speexdec.c:1219:12: enter_function: entry to ‘sb_decode’
ffmpeg-7.1.1/libavcodec/speexdec.c:1235:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/speexdec.c:1243:9: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/speexdec.c:1259:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/speexdec.c:1273:31: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/speexdec.c:1281:23: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/speexdec.c:1287:18: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/speexdec.c:1290:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/speexdec.c:1295:9: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/speexdec.c:1295:9: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/speexdec.c:1296:9: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/speexdec.c:1296:9: call_function: calling ‘lsp_interpolate’ from ‘sb_decode’
#  816|       }
#  817|       for (int i = 1; i < len - 1; i++) {
#  818|->         lsp[i] = fmaxf(lsp[i], lsp[i - 1] + margin);
#  819|           if (lsp[i] > lsp[i + 1] - margin)
#  820|               lsp[i] = .5f * (lsp[i] + lsp[i + 1] - margin);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def129]
ffmpeg-7.1.1/libavcodec/speexdec.c:856:24: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘n0’
ffmpeg-7.1.1/libavcodec/speexdec.c:843:21: branch_true: following ‘true’ branch (when ‘j <= lpcrdr’)...
 branch_true: ...to here
ffmpeg-7.1.1/libavcodec/speexdec.c:845:25: branch_false: following ‘false’ branch (when ‘i >= m’)...
ffmpeg-7.1.1/libavcodec/speexdec.c:856:24: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/speexdec.c:856:24: danger: use of uninitialized value ‘n0’ here
#  854|               xin2 = xout2;
#  855|           }
#  856|->         xout1 = xin1 + n0[4];
#  857|           xout2 = xin2 - n0[5];
#  858|           if (j > 0)

Error: GCC_ANALYZER_WARNING (CWE-457): [#def130]
ffmpeg-7.1.1/libavcodec/speexdec.c:1317:67: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘low_innov_alias’
ffmpeg-7.1.1/libavcodec/speexdec.c:1219:12: enter_function: entry to ‘sb_decode’
ffmpeg-7.1.1/libavcodec/speexdec.c:1235:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/speexdec.c:1243:9: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/speexdec.c:1259:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/speexdec.c:1273:31: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/speexdec.c:1281:23: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/speexdec.c:1287:18: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/speexdec.c:1290:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/speexdec.c:1295:9: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/speexdec.c:1295:9: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/speexdec.c:1296:9: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/speexdec.c:1296:9: call_function: calling ‘lsp_interpolate’ from ‘sb_decode’
ffmpeg-7.1.1/libavcodec/speexdec.c:1296:9: return_function: returning to ‘sb_decode’ from ‘lsp_interpolate’
ffmpeg-7.1.1/libavcodec/speexdec.c:1297:9: call_function: calling ‘lsp_to_lpc’ from ‘sb_decode’
ffmpeg-7.1.1/libavcodec/speexdec.c:1297:9: return_function: returning to ‘sb_decode’ from ‘lsp_to_lpc’
ffmpeg-7.1.1/libavcodec/speexdec.c:1303:25: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/speexdec.c:1308:9: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/speexdec.c:1312:12: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/speexdec.c:1313:27: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/speexdec.c:1316:29: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/speexdec.c:1317:31: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/speexdec.c:1317:67: danger: use of uninitialized value ‘low_innov_alias’ here
# 1315|   
# 1316|               for (int i = 0; i < st->subframe_size; i += 2) {
# 1317|->                 exc[i    ] =  mode->folding_gain * low_innov_alias[offset + i    ] * g;
# 1318|                   exc[i + 1] = -mode->folding_gain * low_innov_alias[offset + i + 1] * g;
# 1319|               }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def131]
ffmpeg-7.1.1/libavcodec/speexdec.c:1348:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘innov_save’
ffmpeg-7.1.1/libavcodec/speexdec.c:1219:12: enter_function: entry to ‘sb_decode’
ffmpeg-7.1.1/libavcodec/speexdec.c:1235:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/speexdec.c:1243:9: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/speexdec.c:1259:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/speexdec.c:1273:31: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/speexdec.c:1281:23: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/speexdec.c:1287:18: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/speexdec.c:1290:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/speexdec.c:1295:9: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/speexdec.c:1295:9: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/speexdec.c:1296:9: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/speexdec.c:1296:9: call_function: calling ‘lsp_interpolate’ from ‘sb_decode’
ffmpeg-7.1.1/libavcodec/speexdec.c:1296:9: return_function: returning to ‘sb_decode’ from ‘lsp_interpolate’
ffmpeg-7.1.1/libavcodec/speexdec.c:1297:9: call_function: calling ‘lsp_to_lpc’ from ‘sb_decode’
ffmpeg-7.1.1/libavcodec/speexdec.c:1297:9: return_function: returning to ‘sb_decode’ from ‘lsp_to_lpc’
ffmpeg-7.1.1/libavcodec/speexdec.c:1303:25: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/speexdec.c:1308:9: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/speexdec.c:1312:12: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/speexdec.c:1313:27: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/speexdec.c:1316:29: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/speexdec.c:1346:13: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/speexdec.c:1346:12: branch_true: following ‘true’ branch...
 branch_true: ...to here
ffmpeg-7.1.1/libavcodec/speexdec.c:1347:29: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/speexdec.c:1348:28: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/speexdec.c:1348:27: release_memory: ‘innov_save’ is NULL
ffmpeg-7.1.1/libavcodec/speexdec.c:1348:17: danger: dereference of NULL ‘innov_save + (long unsigned int)(i * 2) * 4’
# 1346|           if (st->innov_save) {
# 1347|               for (int i = 0; i < st->subframe_size; i++)
# 1348|->                 innov_save[2 * i] = exc[i];
# 1349|           }
# 1350|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def132]
ffmpeg-7.1.1/libavcodec/speexdec.c:1353:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘&ak’
ffmpeg-7.1.1/libavcodec/speexdec.c:1219:12: enter_function: entry to ‘sb_decode’
ffmpeg-7.1.1/libavcodec/speexdec.c:1235:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/speexdec.c:1243:9: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/speexdec.c:1259:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/speexdec.c:1273:31: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/speexdec.c:1281:23: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/speexdec.c:1287:18: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/speexdec.c:1290:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/speexdec.c:1295:9: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/speexdec.c:1295:9: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/speexdec.c:1296:9: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/speexdec.c:1296:9: call_function: calling ‘lsp_interpolate’ from ‘sb_decode’
ffmpeg-7.1.1/libavcodec/speexdec.c:1296:9: return_function: returning to ‘sb_decode’ from ‘lsp_interpolate’
ffmpeg-7.1.1/libavcodec/speexdec.c:1297:9: call_function: calling ‘lsp_to_lpc’ from ‘sb_decode’
ffmpeg-7.1.1/libavcodec/speexdec.c:1297:9: return_function: returning to ‘sb_decode’ from ‘lsp_to_lpc’
ffmpeg-7.1.1/libavcodec/speexdec.c:1303:25: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/speexdec.c:1308:9: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/speexdec.c:1312:12: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/speexdec.c:1313:27: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/speexdec.c:1316:29: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/speexdec.c:1346:13: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/speexdec.c:1351:9: call_function: calling ‘iir_mem’ from ‘sb_decode’
ffmpeg-7.1.1/libavcodec/speexdec.c:1351:9: return_function: returning to ‘sb_decode’ from ‘iir_mem’
ffmpeg-7.1.1/libavcodec/speexdec.c:1353:9: danger: use of uninitialized value ‘&ak’ here
# 1351|           iir_mem(st->exc_buf, st->interp_qlpc, sp, st->subframe_size, st->lpc_size, st->mem_sp);
# 1352|           memcpy(st->exc_buf, exc, sizeof(exc));
# 1353|->         memcpy(st->interp_qlpc, ak, sizeof(st->interp_qlpc));
# 1354|           st->exc_rms[sub] = compute_rms(st->exc_buf, st->subframe_size);
# 1355|       }

Error: GCC_ANALYZER_WARNING (CWE-126): [#def133]
ffmpeg-7.1.1/libavcodec/speexdec.c:1368:18: warning[-Wanalyzer-out-of-bounds]: buffer over-read
ffmpeg-7.1.1/libavcodec/speexdec.c:1440:20: enter_function: entry to ‘speex_decode_init’
ffmpeg-7.1.1/libavcodec/speexdec.c:1446:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/speexdec.c:1449:9: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/speexdec.c:1455:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/speexdec.c:1458:26: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/speexdec.c:1459:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/speexdec.c:1462:9: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/speexdec.c:1506:21: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/speexdec.c:1507:15: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/speexdec.c:1507:15: call_function: calling ‘decoder_init’ from ‘speex_decode_init’
ffmpeg-7.1.1/libavcodec/speexdec.c:1507:15: return_function: returning to ‘speex_decode_init’ from ‘decoder_init’
ffmpeg-7.1.1/libavcodec/speexdec.c:1506:21: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/speexdec.c:1507:15: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/speexdec.c:1507:15: call_function: calling ‘decoder_init’ from ‘speex_decode_init’
ffmpeg-7.1.1/libavcodec/speexdec.c:1507:15: return_function: returning to ‘speex_decode_init’ from ‘decoder_init’
ffmpeg-7.1.1/libavcodec/speexdec.c:1506:21: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/speexdec.c:1507:15: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/speexdec.c:1507:15: call_function: calling ‘decoder_init’ from ‘speex_decode_init’
ffmpeg-7.1.1/libavcodec/speexdec.c:1507:15: return_function: returning to ‘speex_decode_init’ from ‘decoder_init’
ffmpeg-7.1.1/libavcodec/speexdec.c:1506:21: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/speexdec.c:1507:15: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/speexdec.c:1507:15: call_function: calling ‘decoder_init’ from ‘speex_decode_init’
# 1366|   {
# 1367|       st->mode = mode;
# 1368|->     st->modeID = mode->modeID;
# 1369|   
# 1370|       st->first = 1;

Error: GCC_ANALYZER_WARNING (CWE-126): [#def134]
ffmpeg-7.1.1/libavcodec/speexdec.c:1376:21: warning[-Wanalyzer-out-of-bounds]: buffer over-read
ffmpeg-7.1.1/libavcodec/speexdec.c:1440:20: enter_function: entry to ‘speex_decode_init’
ffmpeg-7.1.1/libavcodec/speexdec.c:1446:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/speexdec.c:1449:9: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/speexdec.c:1455:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/speexdec.c:1458:26: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/speexdec.c:1459:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/speexdec.c:1462:9: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/speexdec.c:1506:21: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/speexdec.c:1507:15: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/speexdec.c:1507:15: call_function: calling ‘decoder_init’ from ‘speex_decode_init’
ffmpeg-7.1.1/libavcodec/speexdec.c:1507:15: return_function: returning to ‘speex_decode_init’ from ‘decoder_init’
ffmpeg-7.1.1/libavcodec/speexdec.c:1506:21: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/speexdec.c:1507:15: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/speexdec.c:1507:15: call_function: calling ‘decoder_init’ from ‘speex_decode_init’
ffmpeg-7.1.1/libavcodec/speexdec.c:1507:15: return_function: returning to ‘speex_decode_init’ from ‘decoder_init’
ffmpeg-7.1.1/libavcodec/speexdec.c:1506:21: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/speexdec.c:1507:15: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/speexdec.c:1507:15: call_function: calling ‘decoder_init’ from ‘speex_decode_init’
ffmpeg-7.1.1/libavcodec/speexdec.c:1507:15: return_function: returning to ‘speex_decode_init’ from ‘decoder_init’
ffmpeg-7.1.1/libavcodec/speexdec.c:1506:21: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/speexdec.c:1507:15: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/speexdec.c:1507:15: call_function: calling ‘decoder_init’ from ‘speex_decode_init’
# 1374|   
# 1375|       st->submodes = mode->submodes;
# 1376|->     st->submodeID = mode->default_submode;
# 1377|       st->subframe_size = mode->subframe_size;
# 1378|       st->lpc_size = mode->lpc_size;

Error: GCC_ANALYZER_WARNING (CWE-126): [#def135]
ffmpeg-7.1.1/libavcodec/speexdec.c:1377:25: warning[-Wanalyzer-out-of-bounds]: buffer over-read
ffmpeg-7.1.1/libavcodec/speexdec.c:1440:20: enter_function: entry to ‘speex_decode_init’
ffmpeg-7.1.1/libavcodec/speexdec.c:1446:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/speexdec.c:1449:9: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/speexdec.c:1455:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/speexdec.c:1458:26: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/speexdec.c:1459:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/speexdec.c:1462:9: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/speexdec.c:1506:21: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/speexdec.c:1507:15: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/speexdec.c:1507:15: call_function: calling ‘decoder_init’ from ‘speex_decode_init’
ffmpeg-7.1.1/libavcodec/speexdec.c:1507:15: return_function: returning to ‘speex_decode_init’ from ‘decoder_init’
ffmpeg-7.1.1/libavcodec/speexdec.c:1506:21: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/speexdec.c:1507:15: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/speexdec.c:1507:15: call_function: calling ‘decoder_init’ from ‘speex_decode_init’
ffmpeg-7.1.1/libavcodec/speexdec.c:1507:15: return_function: returning to ‘speex_decode_init’ from ‘decoder_init’
ffmpeg-7.1.1/libavcodec/speexdec.c:1506:21: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/speexdec.c:1507:15: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/speexdec.c:1507:15: call_function: calling ‘decoder_init’ from ‘speex_decode_init’
ffmpeg-7.1.1/libavcodec/speexdec.c:1507:15: return_function: returning to ‘speex_decode_init’ from ‘decoder_init’
ffmpeg-7.1.1/libavcodec/speexdec.c:1506:21: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/speexdec.c:1507:15: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/speexdec.c:1507:15: call_function: calling ‘decoder_init’ from ‘speex_decode_init’
# 1375|       st->submodes = mode->submodes;
# 1376|       st->submodeID = mode->default_submode;
# 1377|->     st->subframe_size = mode->subframe_size;
# 1378|       st->lpc_size = mode->lpc_size;
# 1379|       st->full_frame_size = (1 + (st->modeID > 0)) * mode->frame_size;

Error: GCC_ANALYZER_WARNING (CWE-126): [#def136]
ffmpeg-7.1.1/libavcodec/speexdec.c:1378:20: warning[-Wanalyzer-out-of-bounds]: buffer over-read
ffmpeg-7.1.1/libavcodec/speexdec.c:1440:20: enter_function: entry to ‘speex_decode_init’
ffmpeg-7.1.1/libavcodec/speexdec.c:1446:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/speexdec.c:1449:9: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/speexdec.c:1455:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/speexdec.c:1458:26: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/speexdec.c:1459:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/speexdec.c:1462:9: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/speexdec.c:1506:21: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/speexdec.c:1507:15: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/speexdec.c:1507:15: call_function: calling ‘decoder_init’ from ‘speex_decode_init’
ffmpeg-7.1.1/libavcodec/speexdec.c:1507:15: return_function: returning to ‘speex_decode_init’ from ‘decoder_init’
ffmpeg-7.1.1/libavcodec/speexdec.c:1506:21: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/speexdec.c:1507:15: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/speexdec.c:1507:15: call_function: calling ‘decoder_init’ from ‘speex_decode_init’
ffmpeg-7.1.1/libavcodec/speexdec.c:1507:15: return_function: returning to ‘speex_decode_init’ from ‘decoder_init’
ffmpeg-7.1.1/libavcodec/speexdec.c:1506:21: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/speexdec.c:1507:15: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/speexdec.c:1507:15: call_function: calling ‘decoder_init’ from ‘speex_decode_init’
ffmpeg-7.1.1/libavcodec/speexdec.c:1507:15: return_function: returning to ‘speex_decode_init’ from ‘decoder_init’
ffmpeg-7.1.1/libavcodec/speexdec.c:1506:21: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/speexdec.c:1507:15: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/speexdec.c:1507:15: call_function: calling ‘decoder_init’ from ‘speex_decode_init’
# 1376|       st->submodeID = mode->default_submode;
# 1377|       st->subframe_size = mode->subframe_size;
# 1378|->     st->lpc_size = mode->lpc_size;
# 1379|       st->full_frame_size = (1 + (st->modeID > 0)) * mode->frame_size;
# 1380|       st->nb_subframes = mode->frame_size / mode->subframe_size;

Error: GCC_ANALYZER_WARNING (CWE-126): [#def137]
ffmpeg-7.1.1/libavcodec/speexdec.c:1379:52: warning[-Wanalyzer-out-of-bounds]: buffer over-read
ffmpeg-7.1.1/libavcodec/speexdec.c:1440:20: enter_function: entry to ‘speex_decode_init’
ffmpeg-7.1.1/libavcodec/speexdec.c:1446:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/speexdec.c:1449:9: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/speexdec.c:1455:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/speexdec.c:1458:26: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/speexdec.c:1459:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/speexdec.c:1462:9: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/speexdec.c:1506:21: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/speexdec.c:1507:15: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/speexdec.c:1507:15: call_function: calling ‘decoder_init’ from ‘speex_decode_init’
ffmpeg-7.1.1/libavcodec/speexdec.c:1507:15: return_function: returning to ‘speex_decode_init’ from ‘decoder_init’
ffmpeg-7.1.1/libavcodec/speexdec.c:1506:21: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/speexdec.c:1507:15: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/speexdec.c:1507:15: call_function: calling ‘decoder_init’ from ‘speex_decode_init’
ffmpeg-7.1.1/libavcodec/speexdec.c:1507:15: return_function: returning to ‘speex_decode_init’ from ‘decoder_init’
ffmpeg-7.1.1/libavcodec/speexdec.c:1506:21: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/speexdec.c:1507:15: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/speexdec.c:1507:15: call_function: calling ‘decoder_init’ from ‘speex_decode_init’
ffmpeg-7.1.1/libavcodec/speexdec.c:1507:15: return_function: returning to ‘speex_decode_init’ from ‘decoder_init’
ffmpeg-7.1.1/libavcodec/speexdec.c:1506:21: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/speexdec.c:1507:15: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/speexdec.c:1507:15: call_function: calling ‘decoder_init’ from ‘speex_decode_init’
# 1377|       st->subframe_size = mode->subframe_size;
# 1378|       st->lpc_size = mode->lpc_size;
# 1379|->     st->full_frame_size = (1 + (st->modeID > 0)) * mode->frame_size;
# 1380|       st->nb_subframes = mode->frame_size / mode->subframe_size;
# 1381|       st->frame_size = mode->frame_size;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def138]
ffmpeg-7.1.1/libavcodec/tiertexseqv.c:96:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*(long unsigned int *)&block[_3]’
ffmpeg-7.1.1/libavcodec/tiertexseqv.c:237:12: enter_function: entry to ‘seqvideo_decode_frame’
ffmpeg-7.1.1/libavcodec/tiertexseqv.c:246:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/tiertexseqv.c:249:9: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/tiertexseqv.c:249:9: call_function: calling ‘seqvideo_decode’ from ‘seqvideo_decode_frame’
#   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: GCC_ANALYZER_WARNING (CWE-457): [#def139]
ffmpeg-7.1.1/libavcodec/v210_template.c:65:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘val’
ffmpeg-7.1.1/libavcodec/v210_template.c:39:17: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/v210_template.c:41:9: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/v210_template.c:49:16: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/v210_template.c:55:17: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/v210_template.c:55:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/v210_template.c:64:17: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/v210_template.c:64:12: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/v210_template.c:65:21: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/v210_template.c:65:17: danger: use of uninitialized value ‘val’ here
#   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): [#def140]
ffmpeg-7.1.1/libavcodec/v4l2_context.c:437:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘*ctx.buffers’
ffmpeg-7.1.1/libavcodec/v4l2_context.c:602:5: enter_function: entry to ‘ff_v4l2_context_enqueue_packet’
ffmpeg-7.1.1/libavcodec/v4l2_context.c:608:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/v4l2_context.c:616:13: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/v4l2_context.c:616:13: call_function: calling ‘v4l2_getfree_v4l2buf’ from ‘ff_v4l2_context_enqueue_packet’
#  435|   
#  436|       for (i = 0; i < ctx->num_buffers; i++) {
#  437|->         if (ctx->buffers[i].status == V4L2BUF_AVAILABLE)
#  438|               return &ctx->buffers[i];
#  439|       }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def141]
ffmpeg-7.1.1/libavcodec/vaapi_decode.c:370:5: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘best_fourcc’
ffmpeg-7.1.1/libavcodec/vaapi_decode.c:314:5: branch_false: following ‘false’ branch (when ‘source_format != -1’)...
ffmpeg-7.1.1/libavcodec/vaapi_decode.c:316:11: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/vaapi_decode.c:318:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/vaapi_decode.c:324:12: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/vaapi_decode.c:325:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/vaapi_decode.c:328:11: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/vaapi_decode.c:330:8: branch_false: following ‘false’ branch...
 branch_false: ...to here
ffmpeg-7.1.1/libavcodec/vaapi_decode.c:344:21: branch_true: following ‘true’ branch (when ‘j != 20’)...
ffmpeg-7.1.1/libavcodec/vaapi_decode.c:345:27: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/vaapi_decode.c:348:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/vaapi_decode.c:353:9: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/vaapi_decode.c:359:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/vaapi_decode.c:339:30: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/vaapi_decode.c:365:8: branch_false: following ‘false’ branch (when ‘best_format != -1’)...
ffmpeg-7.1.1/libavcodec/vaapi_decode.c:370:5: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/vaapi_decode.c:370:5: danger: use of uninitialized value ‘best_fourcc’ here
#  368|       }
#  369|   
#  370|->     av_log(avctx, AV_LOG_DEBUG, "Picked %s (%#x) as best match for %s.\n",
#  371|              av_get_pix_fmt_name(best_format), best_fourcc,
#  372|              av_get_pix_fmt_name(source_format));

Error: GCC_ANALYZER_WARNING (CWE-457): [#def142]
ffmpeg-7.1.1/libavcodec/vaapi_encode.c:1035:23: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘profile’
ffmpeg-7.1.1/libavcodec/vaapi_encode.c:964:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/vaapi_encode.c:969:5: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/vaapi_encode.c:982:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/vaapi_encode.c:986:33: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/vaapi_encode.c:987:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/vaapi_encode.c:994:5: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/vaapi_encode.c:994:5: branch_false: following ‘false’ branch...
 branch_false: ...to here
ffmpeg-7.1.1/libavcodec/vaapi_encode.c:995:17: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/vaapi_encode.c:1029:10: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/vaapi_encode.c:1029:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/vaapi_encode.c:1035:23: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/vaapi_encode.c:1035:23: danger: use of uninitialized value ‘profile’ here
# 1033|       }
# 1034|   
# 1035|->     avctx->profile  = profile->av_profile;
# 1036|       ctx->va_profile = profile->va_profile;
# 1037|       av_log(avctx, AV_LOG_VERBOSE, "Using VAAPI profile %s (%d).\n",

Error: GCC_ANALYZER_WARNING (CWE-457): [#def143]
ffmpeg-7.1.1/libavcodec/vaapi_encode.c:1037:5: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘profile_string’
ffmpeg-7.1.1/libavcodec/vaapi_encode.c:964:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/vaapi_encode.c:969:5: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/vaapi_encode.c:982:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/vaapi_encode.c:986:33: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/vaapi_encode.c:987:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/vaapi_encode.c:994:5: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/vaapi_encode.c:994:5: branch_false: following ‘false’ branch...
 branch_false: ...to here
ffmpeg-7.1.1/libavcodec/vaapi_encode.c:995:17: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/vaapi_encode.c:998:36: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/vaapi_encode.c:1029:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/vaapi_encode.c:1035:23: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/vaapi_encode.c:1037:5: danger: use of uninitialized value ‘profile_string’ here
# 1035|       avctx->profile  = profile->av_profile;
# 1036|       ctx->va_profile = profile->va_profile;
# 1037|->     av_log(avctx, AV_LOG_VERBOSE, "Using VAAPI profile %s (%d).\n",
# 1038|              profile_string, ctx->va_profile);
# 1039|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def144]
ffmpeg-7.1.1/libavcodec/vaapi_encode.c:1443:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘rc_window_size’
ffmpeg-7.1.1/libavcodec/vaapi_encode.c:1176:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/vaapi_encode.c:1181:9: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/vaapi_encode.c:1256:9: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/vaapi_encode.c:1256:9: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/vaapi_encode.c:1369:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/vaapi_encode.c:1391:13: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/vaapi_encode.c:1399:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/vaapi_encode.c:1405:9: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/vaapi_encode.c:1405:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/vaapi_encode.c:1405:9: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/vaapi_encode.c:1405:9: branch_false: following ‘false’ branch (when ‘hrd_initial_buffer_fullness <= 4294967295’)...
ffmpeg-7.1.1/libavcodec/vaapi_encode.c:1413:5: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/vaapi_encode.c:1441:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/vaapi_encode.c:1442:13: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/vaapi_encode.c:1442:12: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/vaapi_encode.c:1443:13: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/vaapi_encode.c:1443:13: danger: use of uninitialized value ‘rc_window_size’ here
# 1441|       if (rc_mode->va_mode != VA_RC_CQP) {
# 1442|           if (rc_mode->mode == RC_MODE_AVBR) {
# 1443|->             av_log(avctx, AV_LOG_VERBOSE, "RC target: %"PRId64" bps "
# 1444|                      "converging in %d frames with %d%% accuracy.\n",
# 1445|                      rc_bits_per_second, rc_window_size,

Error: GCC_ANALYZER_WARNING (CWE-457): [#def145]
ffmpeg-7.1.1/libavcodec/vmdaudio.c:126:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘predictor[ch]’
ffmpeg-7.1.1/libavcodec/vmdaudio.c:135:12: enter_function: entry to ‘vmdaudio_decode_frame’
ffmpeg-7.1.1/libavcodec/vmdaudio.c:148:8: branch_false: following ‘false’ branch (when ‘buf_size > 15’)...
ffmpeg-7.1.1/libavcodec/vmdaudio.c:154:18: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/vmdaudio.c:155:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/vmdaudio.c:159:5: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/vmdaudio.c:185:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/vmdaudio.c:189:25: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/vmdaudio.c:191:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/vmdaudio.c:193:5: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/vmdaudio.c:211:8: branch_true: following ‘true’ branch (when ‘audio_chunks > 0’)...
ffmpeg-7.1.1/libavcodec/vmdaudio.c:212:19: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/vmdaudio.c:213:9: branch_false: following ‘false’ branch...
 branch_false: ...to here
ffmpeg-7.1.1/libavcodec/vmdaudio.c:214:16: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/vmdaudio.c:215:17: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/vmdaudio.c:215:16: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/vmdaudio.c:216:17: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/vmdaudio.c:216:17: call_function: calling ‘decode_audio_s16’ from ‘vmdaudio_decode_frame’
#  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): [#def146]
ffmpeg-7.1.1/libavcodec/vmdaudio.c:128:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘predictor[ch]’
ffmpeg-7.1.1/libavcodec/vmdaudio.c:135:12: enter_function: entry to ‘vmdaudio_decode_frame’
ffmpeg-7.1.1/libavcodec/vmdaudio.c:148:8: branch_false: following ‘false’ branch (when ‘buf_size > 15’)...
ffmpeg-7.1.1/libavcodec/vmdaudio.c:154:18: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/vmdaudio.c:155:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/vmdaudio.c:159:5: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/vmdaudio.c:185:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/vmdaudio.c:189:25: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/vmdaudio.c:191:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/vmdaudio.c:193:5: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/vmdaudio.c:211:8: branch_true: following ‘true’ branch (when ‘audio_chunks > 0’)...
ffmpeg-7.1.1/libavcodec/vmdaudio.c:212:19: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/vmdaudio.c:213:9: branch_false: following ‘false’ branch...
 branch_false: ...to here
ffmpeg-7.1.1/libavcodec/vmdaudio.c:214:16: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/vmdaudio.c:215:17: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/vmdaudio.c:215:16: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/vmdaudio.c:216:17: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/vmdaudio.c:216:17: call_function: calling ‘decode_audio_s16’ from ‘vmdaudio_decode_frame’
#  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): [#def147]
ffmpeg-7.1.1/libavcodec/vorbisdec.c:412:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
ffmpeg-7.1.1/libavcodec/vorbisdec.c:1770:12: enter_function: entry to ‘vorbis_decode_frame’
ffmpeg-7.1.1/libavcodec/vorbisdec.c:1810:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavcodec/vorbisdec.c:1811:20: call_function: inlined call to ‘init_get_bits8’ from ‘vorbis_decode_frame’
ffmpeg-7.1.1/libavcodec/vorbisdec.c:1811:20: call_function: inlined call to ‘init_get_bits8’ from ‘vorbis_decode_frame’
ffmpeg-7.1.1/libavcodec/vorbisdec.c:1811:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/vorbisdec.c:1814:20: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/vorbisdec.c:1814:20: call_function: calling ‘vorbis_parse_setup_hdr’ from ‘vorbis_decode_frame’
#  410|                       for (k = 0; k < dim; ++k) {
#  411|                           unsigned multiplicand_offset = lookup_offset % codebook_lookup_values;
#  412|->                         codebook_setup->codevectors[j * dim + k] = codebook_multiplicands[multiplicand_offset] * codebook_delta_value + codebook_minimum_value + last;
#  413|                           if (codebook_sequence_p)
#  414|                               last = codebook_setup->codevectors[j * dim + k];

Error: GCC_ANALYZER_WARNING (CWE-457): [#def148]
ffmpeg-7.1.1/libavcodec/vorbisdec.c:1676:15: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘no_residue[<unknown>]’
ffmpeg-7.1.1/libavcodec/vorbisdec.c:1623:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/vorbisdec.c:1628:9: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/vorbisdec.c:1646:15: branch_true: following ‘true’ branch (when ‘previous_window < 0’)...
ffmpeg-7.1.1/libavcodec/vorbisdec.c:1649:45: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/vorbisdec.c:1655:17: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/vorbisdec.c:1675:14: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/vorbisdec.c:1675:43: branch_true: following ‘true’ branch (when ‘i != -1’)...
ffmpeg-7.1.1/libavcodec/vorbisdec.c:1676:26: branch_true: ...to here
ffmpeg-7.1.1/libavcodec/vorbisdec.c:1676:15: danger: use of uninitialized value ‘no_residue[<unknown>]’ here
# 1674|   
# 1675|       for (i = mapping->coupling_steps - 1; i >= 0; --i) {
# 1676|->         if (!(no_residue[mapping->magnitude[i]] & no_residue[mapping->angle[i]])) {
# 1677|               no_residue[mapping->magnitude[i]] = 0;
# 1678|               no_residue[mapping->angle[i]]     = 0;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def149]
ffmpeg-7.1.1/libavcodec/vorbisdec.c:1735:47: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘res_chan[j]’
ffmpeg-7.1.1/libavcodec/vorbisdec.c:1770:12: enter_function: entry to ‘vorbis_decode_frame’
ffmpeg-7.1.1/libavcodec/vorbisdec.c:1822:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/vorbisdec.c:1829:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/vorbisdec.c:1832:9: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/vorbisdec.c:1842:16: call_function: inlined call to ‘init_get_bits8’ from ‘vorbis_decode_frame’
ffmpeg-7.1.1/libavcodec/vorbisdec.c:1842:16: call_function: inlined call to ‘init_get_bits8’ from ‘vorbis_decode_frame’
ffmpeg-7.1.1/libavcodec/vorbisdec.c:1842:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/vorbisdec.c:1845:16: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/vorbisdec.c:1845:16: call_function: calling ‘vorbis_parse_audio_packet’ from ‘vorbis_decode_frame’
# 1733|   
# 1734|       for (j = vc->audio_channels-1;j >= 0; j--) {
# 1735|->         ch_res_ptr   = vc->channel_residues + res_chan[j] * blocksize / 2;
# 1736|           vc->fdsp->vector_fmul(floor_ptr[j], floor_ptr[j], ch_res_ptr, blocksize / 2);
# 1737|           mdct_fn(mdct, ch_res_ptr, floor_ptr[j], sizeof(float));

Error: GCC_ANALYZER_WARNING (CWE-476): [#def150]
ffmpeg-7.1.1/libavcodec/vulkan_decode.c:748:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
ffmpeg-7.1.1/libavcodec/vulkan_decode.c:709:12: enter_function: entry to ‘vulkan_decode_get_profile’
ffmpeg-7.1.1/libavcodec/vulkan_decode.c:716:47: call_function: inlined call to ‘get_codecdesc’ from ‘vulkan_decode_get_profile’
 branch_false: ...to here
ffmpeg-7.1.1/libavcodec/vulkan_decode.c:748:11: danger: dereference of NULL ‘<unknown>’
#  746|       uint32_t nb_out_fmts = 0;
#  747|   
#  748|->     if (!(vk_desc->decode_extension & ctx->s.extensions)) {
#  749|           av_log(avctx, AV_LOG_ERROR, "Device does not support decoding %s!\n",
#  750|                  avcodec_get_name(avctx->codec_id));

Error: GCC_ANALYZER_WARNING (CWE-476): [#def151]
ffmpeg-7.1.1/libavcodec/vulkan_decode.c:1138:31: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
ffmpeg-7.1.1/libavcodec/vulkan_decode.c:1081:5: enter_function: entry to ‘ff_vk_decode_init’
ffmpeg-7.1.1/libavcodec/vulkan_decode.c:1116:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/vulkan_decode.c:1120:5: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/vulkan_decode.c:1125:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/vulkan_decode.c:1128:15: branch_false: ...to here
ffmpeg-7.1.1/libavcodec/vulkan_decode.c:1128:15: call_function: calling ‘get_video_profile’ from ‘ff_vk_decode_init’
ffmpeg-7.1.1/libavcodec/vulkan_decode.c:1128:15: return_function: returning to ‘ff_vk_decode_init’ from ‘get_video_profile’
ffmpeg-7.1.1/libavcodec/vulkan_decode.c:1129:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavcodec/vulkan_decode.c:1135:15: call_function: inlined call to ‘get_codecdesc’ from ‘ff_vk_decode_init’
 branch_false: ...to here
ffmpeg-7.1.1/libavcodec/vulkan_decode.c:1138:31: danger: dereference of NULL ‘<unknown>’
# 1136|       err = ff_vk_video_qf_init(s, &ctx->qf,
# 1137|                                 VK_QUEUE_VIDEO_DECODE_BIT_KHR,
# 1138|->                               vk_desc->decode_op);
# 1139|       if (err < 0) {
# 1140|           av_log(avctx, AV_LOG_ERROR, "Decoding of %s is not supported by this device\n",

Error: GCC_ANALYZER_WARNING (CWE-476): [#def152]
ffmpeg-7.1.1/libavdevice/kmsgrab.c:503:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘plane’
ffmpeg-7.1.1/libavdevice/kmsgrab.c:424:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavdevice/kmsgrab.c:428:40: branch_false: ...to here
ffmpeg-7.1.1/libavdevice/kmsgrab.c:438:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavdevice/kmsgrab.c:455:46: branch_false: ...to here
ffmpeg-7.1.1/libavdevice/kmsgrab.c:456:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
ffmpeg-7.1.1/libavdevice/kmsgrab.c:492:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavdevice/kmsgrab.c:503:9: branch_false: ...to here
ffmpeg-7.1.1/libavdevice/kmsgrab.c:503:9: danger: dereference of NULL ‘plane’
#  501|           }
#  502|   
#  503|->         av_log(avctx, AV_LOG_INFO, "Using plane %"PRIu32" to "
#  504|                  "locate framebuffers.\n", plane->plane_id);
#  505|       }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def153]
ffmpeg-7.1.1/libavdevice/pulse_audio_dec.c:356:20: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘dts’
ffmpeg-7.1.1/libavdevice/pulse_audio_dec.c:302:5: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavdevice/pulse_audio_dec.c:304:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavdevice/pulse_audio_dec.c:351:5: branch_false: ...to here
ffmpeg-7.1.1/libavdevice/pulse_audio_dec.c:355:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavdevice/pulse_audio_dec.c:356:62: branch_true: ...to here
ffmpeg-7.1.1/libavdevice/pulse_audio_dec.c:356:20: danger: use of uninitialized value ‘dts’ here
#  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): [#def154]
ffmpeg-7.1.1/libavdevice/xcbgrab.c:461:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘p’
ffmpeg-7.1.1/libavdevice/xcbgrab.c:432:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavdevice/xcbgrab.c:447:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavdevice/xcbgrab.c:448:14: branch_true: ...to here
ffmpeg-7.1.1/libavdevice/xcbgrab.c:450:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavdevice/xcbgrab.c:456:17: branch_false: ...to here
ffmpeg-7.1.1/libavdevice/xcbgrab.c:461:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavdevice/xcbgrab.c:461:28: branch_true: ...to here
ffmpeg-7.1.1/libavdevice/xcbgrab.c:461:28: danger: dereference of NULL ‘p’
#  459|       }
#  460|   
#  461|->     if (c->follow_mouse && p->same_screen)
#  462|           xcbgrab_reposition(s, p, geo);
#  463|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def155]
ffmpeg-7.1.1/libavdevice/xcbgrab.c:479:38: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘p’
ffmpeg-7.1.1/libavdevice/xcbgrab.c:416:12: enter_function: entry to ‘xcbgrab_read_packet’
ffmpeg-7.1.1/libavdevice/xcbgrab.c:432:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavdevice/xcbgrab.c:447:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavdevice/xcbgrab.c:448:14: branch_true: ...to here
ffmpeg-7.1.1/libavdevice/xcbgrab.c:450:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavdevice/xcbgrab.c:456:17: branch_false: ...to here
ffmpeg-7.1.1/libavdevice/xcbgrab.c:461:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavdevice/xcbgrab.c:464:9: branch_false: ...to here
ffmpeg-7.1.1/libavdevice/xcbgrab.c:468:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavdevice/xcbgrab.c:468:23: branch_true: ...to here
ffmpeg-7.1.1/libavdevice/xcbgrab.c:468:23: call_function: calling ‘xcbgrab_frame_shm’ from ‘xcbgrab_read_packet’
ffmpeg-7.1.1/libavdevice/xcbgrab.c:468:23: return_function: returning to ‘xcbgrab_read_packet’ from ‘xcbgrab_frame_shm’
ffmpeg-7.1.1/libavdevice/xcbgrab.c:468:9: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavdevice/xcbgrab.c:473:10: branch_false: ...to here
ffmpeg-7.1.1/libavdevice/xcbgrab.c:473:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavdevice/xcbgrab.c:475:16: branch_false: ...to here
ffmpeg-7.1.1/libavdevice/xcbgrab.c:479:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavdevice/xcbgrab.c:479:38: danger: dereference of NULL ‘p’
#  477|   
#  478|   #if CONFIG_LIBXCB_XFIXES
#  479|->     if (ret >= 0 && c->draw_mouse && p->same_screen)
#  480|           xcbgrab_draw_mouse(s, pkt, p, geo, win_x, win_y);
#  481|   #endif

Error: GCC_ANALYZER_WARNING: [#def156]
ffmpeg-7.1.1/libavfilter/af_adecorrelate.c:72:14: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
#   70|       ap->len = delay_samples + 1;
#   71|       ap->p = 0;
#   72|->     ap->mx = av_calloc(ap->len, sizeof(*ap->mx));
#   73|       ap->my = av_calloc(ap->len, sizeof(*ap->my));
#   74|       if (!ap->mx || !ap->my)

Error: GCC_ANALYZER_WARNING (CWE-457): [#def157]
ffmpeg-7.1.1/libavfilter/af_aecho.c:198:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘index’
ffmpeg-7.1.1/libavfilter/af_aecho.c:198:1: branch_false: following ‘false’ branch (when ‘chan >= channels’)...
ffmpeg-7.1.1/libavfilter/af_aecho.c:198:1: branch_false: ...to here
ffmpeg-7.1.1/libavfilter/af_aecho.c:198:1: danger: use of uninitialized value ‘index’ here
#  196|   }
#  197|   
#  198|-> ECHO(dbl, double,  -1.0,      1.0      )
#  199|   ECHO(flt, float,   -1.0,      1.0      )
#  200|   ECHO(s16, int16_t, INT16_MIN, INT16_MAX)

Error: GCC_ANALYZER_WARNING (CWE-457): [#def158]
ffmpeg-7.1.1/libavfilter/af_aecho.c:199:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘index’
ffmpeg-7.1.1/libavfilter/af_aecho.c:199:1: branch_false: following ‘false’ branch (when ‘chan >= channels’)...
ffmpeg-7.1.1/libavfilter/af_aecho.c:199:1: branch_false: ...to here
ffmpeg-7.1.1/libavfilter/af_aecho.c:199:1: danger: use of uninitialized value ‘index’ here
#  197|   
#  198|   ECHO(dbl, double,  -1.0,      1.0      )
#  199|-> ECHO(flt, float,   -1.0,      1.0      )
#  200|   ECHO(s16, int16_t, INT16_MIN, INT16_MAX)
#  201|   ECHO(s32, int32_t, INT32_MIN, INT32_MAX)

Error: GCC_ANALYZER_WARNING (CWE-457): [#def159]
ffmpeg-7.1.1/libavfilter/af_aecho.c:200:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘index’
ffmpeg-7.1.1/libavfilter/af_aecho.c:200:1: branch_false: following ‘false’ branch (when ‘chan >= channels’)...
ffmpeg-7.1.1/libavfilter/af_aecho.c:200:1: branch_false: ...to here
ffmpeg-7.1.1/libavfilter/af_aecho.c:200:1: danger: use of uninitialized value ‘index’ here
#  198|   ECHO(dbl, double,  -1.0,      1.0      )
#  199|   ECHO(flt, float,   -1.0,      1.0      )
#  200|-> ECHO(s16, int16_t, INT16_MIN, INT16_MAX)
#  201|   ECHO(s32, int32_t, INT32_MIN, INT32_MAX)
#  202|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def160]
ffmpeg-7.1.1/libavfilter/af_aecho.c:201:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘index’
ffmpeg-7.1.1/libavfilter/af_aecho.c:201:1: branch_false: following ‘false’ branch (when ‘chan >= channels’)...
ffmpeg-7.1.1/libavfilter/af_aecho.c:201:1: branch_false: ...to here
ffmpeg-7.1.1/libavfilter/af_aecho.c:201:1: danger: use of uninitialized value ‘index’ here
#  199|   ECHO(flt, float,   -1.0,      1.0      )
#  200|   ECHO(s16, int16_t, INT16_MIN, INT16_MAX)
#  201|-> ECHO(s32, int32_t, INT32_MIN, INT32_MAX)
#  202|   
#  203|   static int config_output(AVFilterLink *outlink)

Error: GCC_ANALYZER_WARNING (CWE-457): [#def161]
ffmpeg-7.1.1/libavfilter/af_afftdn.c:385:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘mag’
ffmpeg-7.1.1/libavfilter/af_afftdn.c:1049:12: enter_function: entry to ‘filter_channel’
ffmpeg-7.1.1/libavfilter/af_afftdn.c:1058:26: branch_true: following ‘true’ branch (when ‘ch < end’)...
ffmpeg-7.1.1/libavfilter/af_afftdn.c:1059:33: branch_true: ...to here
ffmpeg-7.1.1/libavfilter/af_afftdn.c:1085:9: call_function: calling ‘process_frame’ from ‘filter_channel’
#  383|           }
#  384|   
#  385|->         power = mag * mag;
#  386|           mag_abs_var = power / abs_var[i];
#  387|           new_mag_abs_var = ratio * prior[i] + rratio * fmax(mag_abs_var - 1.0, 0.0);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def162]
ffmpeg-7.1.1/libavfilter/af_afftdn.c:761:15: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘tx_type’
ffmpeg-7.1.1/libavfilter/af_afftdn.c:631:12: enter_function: entry to ‘config_input’
ffmpeg-7.1.1/libavfilter/af_afftdn.c:659:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavfilter/af_afftdn.c:662:19: branch_false: ...to here
ffmpeg-7.1.1/libavfilter/af_afftdn.c:672:17: branch_true: following ‘true’ branch (when ‘i != 15’)...
ffmpeg-7.1.1/libavfilter/af_afftdn.c:673:56: branch_true: ...to here
ffmpeg-7.1.1/libavfilter/af_afftdn.c:685:17: branch_true: following ‘true’ branch (when ‘j != 5’)...
 branch_true: ...to here
ffmpeg-7.1.1/libavfilter/af_afftdn.c:686:21: branch_true: following ‘true’ branch (when ‘k != 5’)...
ffmpeg-7.1.1/libavfilter/af_afftdn.c:687:29: branch_true: ...to here
ffmpeg-7.1.1/libavfilter/af_afftdn.c:688:25: branch_true: following ‘true’ branch (when ‘m != 15’)...
ffmpeg-7.1.1/libavfilter/af_afftdn.c:689:17: branch_true: ...to here
ffmpeg-7.1.1/libavfilter/af_afftdn.c:693:5: call_function: calling ‘factor’ from ‘config_input’
ffmpeg-7.1.1/libavfilter/af_afftdn.c:693:5: return_function: returning to ‘config_input’ from ‘factor’
ffmpeg-7.1.1/libavfilter/af_afftdn.c:696:17: branch_true: following ‘true’ branch (when ‘j != 5’)...
 branch_true: ...to here
ffmpeg-7.1.1/libavfilter/af_afftdn.c:697:21: branch_true: following ‘true’ branch (when ‘k != 15’)...
ffmpeg-7.1.1/libavfilter/af_afftdn.c:698:32: branch_true: ...to here
ffmpeg-7.1.1/libavfilter/af_afftdn.c:701:17: branch_true: following ‘true’ branch (when ‘j != 15’)...
 branch_true: ...to here
ffmpeg-7.1.1/libavfilter/af_afftdn.c:702:21: branch_true: following ‘true’ branch (when ‘k != 5’)...
ffmpeg-7.1.1/libavfilter/af_afftdn.c:703:32: branch_true: ...to here
ffmpeg-7.1.1/libavfilter/af_afftdn.c:707:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavfilter/af_afftdn.c:718:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavfilter/af_afftdn.c:721:22: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavfilter/af_afftdn.c:722:33: branch_true: ...to here
ffmpeg-7.1.1/libavfilter/af_afftdn.c:726:25: branch_true: following ‘true’ branch (when ‘i != 15’)...
ffmpeg-7.1.1/libavfilter/af_afftdn.c:727:17: branch_true: ...to here
ffmpeg-7.1.1/libavfilter/af_afftdn.c:744:9: call_function: calling ‘reduce_mean’ from ‘config_input’
ffmpeg-7.1.1/libavfilter/af_afftdn.c:744:9: return_function: returning to ‘config_input’ from ‘reduce_mean’
ffmpeg-7.1.1/libavfilter/af_afftdn.c:761:15: danger: use of uninitialized value ‘tx_type’ here
#  759|           dnch->fft_in = av_calloc(s->fft_length2, s->sample_size);
#  760|           dnch->fft_out = av_calloc(s->fft_length2 + 1, s->complex_sample_size);
#  761|->         ret = av_tx_init(&dnch->fft, &dnch->tx_fn, tx_type, 0, s->fft_length2, scale, 0);
#  762|           if (ret < 0)
#  763|               return ret;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def163]
ffmpeg-7.1.1/libavfilter/af_afftdn.c:981:16: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘mag2’
ffmpeg-7.1.1/libavfilter/af_afftdn.c:945:21: branch_true: following ‘true’ branch (when ‘n <= edgemax’)...
ffmpeg-7.1.1/libavfilter/af_afftdn.c:946:13: branch_true: ...to here
ffmpeg-7.1.1/libavfilter/af_afftdn.c:981:16: danger: use of uninitialized value ‘mag2’ here
#  979|           }
#  980|   
#  981|->         mag2 = fmax(mag2, s->sample_floor);
#  982|   
#  983|           var += mag2;

Error: COMPILER_WARNING: [#def164]
ffmpeg-7.1.1/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): [#def165]
ffmpeg-7.1.1/libavfilter/af_afir.c:238:15: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘tx_type’
ffmpeg-7.1.1/libavfilter/af_afir.c:204:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavfilter/af_afir.c:217:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavfilter/af_afir.c:237:22: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavfilter/af_afir.c:238:15: danger: use of uninitialized value ‘tx_type’ here
#  236|   
#  237|       for (int ch = 0; ch < ctx->inputs[0]->ch_layout.nb_channels && part_size >= 1; ch++) {
#  238|->         ret = av_tx_init(&seg->ctx[ch], &seg->ctx_fn, tx_type,
#  239|                            0, 2 * part_size, &cscale,  0);
#  240|           if (ret < 0)

Error: GCC_ANALYZER_WARNING (CWE-457): [#def166]
ffmpeg-7.1.1/libavfilter/af_afreqshift.c:154:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘I’
ffmpeg-7.1.1/libavfilter/af_afreqshift.c:154:1: branch_true: following ‘true’ branch (when ‘n < nb_samples’)...
ffmpeg-7.1.1/libavfilter/af_afreqshift.c:154:1: branch_true: ...to here
ffmpeg-7.1.1/libavfilter/af_afreqshift.c:154:1: branch_false: following ‘false’ branch (when ‘j >= nb_coeffs’)...
 branch_false: ...to here
ffmpeg-7.1.1/libavfilter/af_afreqshift.c:154:1: danger: use of uninitialized value ‘I’ here
#  152|   }
#  153|   
#  154|-> FFILTER(flt, float, sinf, cosf, fmodf, cf)
#  155|   FFILTER(dbl, double, sin, cos, fmod, cd)
#  156|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def167]
ffmpeg-7.1.1/libavfilter/af_afreqshift.c:155:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘I’
ffmpeg-7.1.1/libavfilter/af_afreqshift.c:155:1: branch_true: following ‘true’ branch (when ‘n < nb_samples’)...
ffmpeg-7.1.1/libavfilter/af_afreqshift.c:155:1: branch_true: ...to here
ffmpeg-7.1.1/libavfilter/af_afreqshift.c:155:1: branch_false: following ‘false’ branch (when ‘j >= nb_coeffs’)...
 branch_false: ...to here
ffmpeg-7.1.1/libavfilter/af_afreqshift.c:155:1: danger: use of uninitialized value ‘I’ here
#  153|   
#  154|   FFILTER(flt, float, sinf, cosf, fmodf, cf)
#  155|-> FFILTER(dbl, double, sin, cos, fmod, cd)
#  156|   
#  157|   static void compute_transition_param(double *K, double *Q, double transition)

Error: GCC_ANALYZER_WARNING: [#def168]
ffmpeg-7.1.1/libavfilter/af_alimiter.c:369:17: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
ffmpeg-7.1.1/libavfilter/af_alimiter.c:366:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavfilter/af_alimiter.c:369:17: branch_false: ...to here
ffmpeg-7.1.1/libavfilter/af_alimiter.c:369:17: danger: operand ‘1.0e+3’ is of type ‘double’
#  367|           return AVERROR(EINVAL);
#  368|   
#  369|->     s->buffer = av_calloc(obuffer_size, sizeof(*s->buffer));
#  370|       s->nextdelta = av_calloc(obuffer_size, sizeof(*s->nextdelta));
#  371|       s->nextpos = av_malloc_array(obuffer_size, sizeof(*s->nextpos));

Error: GCC_ANALYZER_WARNING: [#def169]
ffmpeg-7.1.1/libavfilter/af_alimiter.c:370:20: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
ffmpeg-7.1.1/libavfilter/af_alimiter.c:366:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavfilter/af_alimiter.c:369:17: branch_false: ...to here
ffmpeg-7.1.1/libavfilter/af_alimiter.c:370:20: danger: operand ‘1.0e+3’ is of type ‘double’
#  368|   
#  369|       s->buffer = av_calloc(obuffer_size, sizeof(*s->buffer));
#  370|->     s->nextdelta = av_calloc(obuffer_size, sizeof(*s->nextdelta));
#  371|       s->nextpos = av_malloc_array(obuffer_size, sizeof(*s->nextpos));
#  372|       if (!s->buffer || !s->nextdelta || !s->nextpos)

Error: GCC_ANALYZER_WARNING: [#def170]
ffmpeg-7.1.1/libavfilter/af_alimiter.c:371:18: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
ffmpeg-7.1.1/libavfilter/af_alimiter.c:366:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavfilter/af_alimiter.c:369:17: branch_false: ...to here
ffmpeg-7.1.1/libavfilter/af_alimiter.c:371:18: danger: operand ‘1.0e+3’ is of type ‘double’
#  369|       s->buffer = av_calloc(obuffer_size, sizeof(*s->buffer));
#  370|       s->nextdelta = av_calloc(obuffer_size, sizeof(*s->nextdelta));
#  371|->     s->nextpos = av_malloc_array(obuffer_size, sizeof(*s->nextpos));
#  372|       if (!s->buffer || !s->nextdelta || !s->nextpos)
#  373|           return AVERROR(ENOMEM);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def171]
ffmpeg-7.1.1/libavfilter/af_axcorrelate.c:145:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘used’
ffmpeg-7.1.1/libavfilter/af_axcorrelate.c:145:1: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavfilter/af_axcorrelate.c:145:1: branch_false: ...to here
ffmpeg-7.1.1/libavfilter/af_axcorrelate.c:145:1: danger: use of uninitialized value ‘used’ here
#  143|   }
#  144|   
#  145|-> XCORRELATE_SLOW(f, float)
#  146|   XCORRELATE_SLOW(d, double)
#  147|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def172]
ffmpeg-7.1.1/libavfilter/af_axcorrelate.c:146:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘used’
ffmpeg-7.1.1/libavfilter/af_axcorrelate.c:146:1: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavfilter/af_axcorrelate.c:146:1: branch_false: ...to here
ffmpeg-7.1.1/libavfilter/af_axcorrelate.c:146:1: danger: use of uninitialized value ‘used’ here
#  144|   
#  145|   XCORRELATE_SLOW(f, float)
#  146|-> XCORRELATE_SLOW(d, double)
#  147|   
#  148|   #define clipf(x) (av_clipf(x, -1.f, 1.f))

Error: GCC_ANALYZER_WARNING (CWE-457): [#def173]
ffmpeg-7.1.1/libavfilter/af_axcorrelate.c:198:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘used’
ffmpeg-7.1.1/libavfilter/af_axcorrelate.c:198:1: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavfilter/af_axcorrelate.c:198:1: branch_false: ...to here
ffmpeg-7.1.1/libavfilter/af_axcorrelate.c:198:1: danger: use of uninitialized value ‘used’ here
#  196|   }
#  197|   
#  198|-> XCORRELATE_FAST(f, float,  0.f, 1e-6f, sqrtf, clipf)
#  199|   XCORRELATE_FAST(d, double, 0.0, 1e-9,  sqrt, clipd)
#  200|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def174]
ffmpeg-7.1.1/libavfilter/af_axcorrelate.c:199:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘used’
ffmpeg-7.1.1/libavfilter/af_axcorrelate.c:199:1: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavfilter/af_axcorrelate.c:199:1: branch_false: ...to here
ffmpeg-7.1.1/libavfilter/af_axcorrelate.c:199:1: danger: use of uninitialized value ‘used’ here
#  197|   
#  198|   XCORRELATE_FAST(f, float,  0.f, 1e-6f, sqrtf, clipf)
#  199|-> XCORRELATE_FAST(d, double, 0.0, 1e-9,  sqrt, clipd)
#  200|   
#  201|   #define XCORRELATE_BEST(suffix, type, zero, small, sqrtfun, FMAX, CLIP)        \

Error: GCC_ANALYZER_WARNING (CWE-457): [#def175]
ffmpeg-7.1.1/libavfilter/af_axcorrelate.c:259:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘used’
ffmpeg-7.1.1/libavfilter/af_axcorrelate.c:259:1: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavfilter/af_axcorrelate.c:259:1: branch_false: ...to here
ffmpeg-7.1.1/libavfilter/af_axcorrelate.c:259:1: danger: use of uninitialized value ‘used’ here
#  257|   }
#  258|   
#  259|-> XCORRELATE_BEST(f, float,  0.f, 1e-6f, sqrtf, fmaxf, clipf)
#  260|   XCORRELATE_BEST(d, double, 0.0, 1e-9,  sqrt, fmax, clipd)
#  261|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def176]
ffmpeg-7.1.1/libavfilter/af_axcorrelate.c:260:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘used’
ffmpeg-7.1.1/libavfilter/af_axcorrelate.c:260:1: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavfilter/af_axcorrelate.c:260:1: branch_false: ...to here
ffmpeg-7.1.1/libavfilter/af_axcorrelate.c:260:1: danger: use of uninitialized value ‘used’ here
#  258|   
#  259|   XCORRELATE_BEST(f, float,  0.f, 1e-6f, sqrtf, fmaxf, clipf)
#  260|-> XCORRELATE_BEST(d, double, 0.0, 1e-9,  sqrt, fmax, clipd)
#  261|   
#  262|   static int activate(AVFilterContext *ctx)

Error: GCC_ANALYZER_WARNING (CWE-457): [#def177]
ffmpeg-7.1.1/libavfilter/af_compand.c:251:5: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘count’
ffmpeg-7.1.1/libavfilter/af_compand.c:208:20: branch_false: following ‘false’ branch (when ‘chan >= channels’)...
ffmpeg-7.1.1/libavfilter/af_compand.c:251:5: branch_false: ...to here
ffmpeg-7.1.1/libavfilter/af_compand.c:251:5: danger: use of uninitialized value ‘count’ here
#  249|       }
#  250|   
#  251|->     s->delay_count = count;
#  252|       s->delay_index = dindex;
#  253|   

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

Error: GCC_ANALYZER_WARNING (CWE-457): [#def179]
ffmpeg-7.1.1/libavfilter/af_haas.c:178:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘mid’
ffmpeg-7.1.1/libavfilter/af_haas.c:167:17: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavfilter/af_haas.c:171:17: branch_true: ...to here
ffmpeg-7.1.1/libavfilter/af_haas.c:178:9: danger: use of uninitialized value ‘mid’ here
#  176|           }
#  177|   
#  178|->         mid *= level_in;
#  179|   
#  180|           buffer[s->write_ptr] = mid;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def180]
ffmpeg-7.1.1/libavfilter/af_loudnorm.c:458:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘true_peak’
ffmpeg-7.1.1/libavfilter/af_loudnorm.c:678:12: enter_function: entry to ‘activate’
ffmpeg-7.1.1/libavfilter/af_loudnorm.c:687:5: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavfilter/af_loudnorm.c:689:9: branch_false: ...to here
ffmpeg-7.1.1/libavfilter/af_loudnorm.c:703:8: branch_false: following ‘false’ branch (when ‘ret >= 0’)...
ffmpeg-7.1.1/libavfilter/af_loudnorm.c:705:8: branch_false: ...to here
ffmpeg-7.1.1/libavfilter/af_loudnorm.c:705:8: branch_true: following ‘true’ branch (when ‘ret != 0’)...
ffmpeg-7.1.1/libavfilter/af_loudnorm.c:706:13: branch_true: ...to here
ffmpeg-7.1.1/libavfilter/af_loudnorm.c:716:15: call_function: calling ‘filter_frame’ from ‘activate’
#  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): [#def181]
ffmpeg-7.1.1/libavfilter/af_loudnorm.c:874:19: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘tp_out’
ffmpeg-7.1.1/libavfilter/af_loudnorm.c:828:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavfilter/af_loudnorm.c:834:17: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavfilter/af_loudnorm.c:841:5: branch_false: ...to here
ffmpeg-7.1.1/libavfilter/af_loudnorm.c:844:17: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavfilter/af_loudnorm.c:851:12: branch_false: ...to here
ffmpeg-7.1.1/libavfilter/af_loudnorm.c:874:19: danger: use of uninitialized value ‘tp_out’ here
#  872|               thresh_in,
#  873|               i_out,
#  874|->             20. * log10(tp_out),
#  875|               lra_out,
#  876|               thresh_out,

Error: GCC_ANALYZER_WARNING (CWE-457): [#def182]
ffmpeg-7.1.1/libavfilter/af_loudnorm.c:902:19: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘tp_out’
ffmpeg-7.1.1/libavfilter/af_loudnorm.c:828:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavfilter/af_loudnorm.c:834:17: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavfilter/af_loudnorm.c:841:5: branch_false: ...to here
ffmpeg-7.1.1/libavfilter/af_loudnorm.c:844:17: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavfilter/af_loudnorm.c:851:12: branch_false: ...to here
ffmpeg-7.1.1/libavfilter/af_loudnorm.c:902:19: danger: use of uninitialized value ‘tp_out’ here
#  900|               thresh_in,
#  901|               i_out,
#  902|->             20. * log10(tp_out),
#  903|               lra_out,
#  904|               thresh_out,

Error: GCC_ANALYZER_WARNING (CWE-457): [#def183]
ffmpeg-7.1.1/libavfilter/avf_abitscope.c:245:5: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘outpicref’
ffmpeg-7.1.1/libavfilter/avf_abitscope.c:219:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavfilter/avf_abitscope.c:232:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavfilter/avf_abitscope.c:245:44: branch_false: ...to here
ffmpeg-7.1.1/libavfilter/avf_abitscope.c:245:5: danger: use of uninitialized value ‘outpicref’ here
#  243|       }
#  244|   
#  245|->     outpicref->pts = av_rescale_q(insamples->pts, inlink->time_base, outlink->time_base);
#  246|       outpicref->duration = 1;
#  247|       outpicref->sample_aspect_ratio = (AVRational){1,1};

Error: GCC_ANALYZER_WARNING (CWE-457): [#def184]
ffmpeg-7.1.1/libavfilter/avf_ahistogram.c:397:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yf’
ffmpeg-7.1.1/libavfilter/avf_ahistogram.c:233:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavfilter/avf_ahistogram.c:238:9: branch_false: ...to here
ffmpeg-7.1.1/libavfilter/avf_ahistogram.c:316:17: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavfilter/avf_ahistogram.c:317:34: branch_true: ...to here
ffmpeg-7.1.1/libavfilter/avf_ahistogram.c:321:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavfilter/avf_ahistogram.c:329:9: branch_false: ...to here
ffmpeg-7.1.1/libavfilter/avf_ahistogram.c:329:21: branch_true: following ‘true’ branch (when ‘n < w’)...
ffmpeg-7.1.1/libavfilter/avf_ahistogram.c:333:28: branch_true: ...to here
ffmpeg-7.1.1/libavfilter/avf_ahistogram.c:359:16: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavfilter/avf_ahistogram.c:379:23: branch_false: ...to here
ffmpeg-7.1.1/libavfilter/avf_ahistogram.c:379:23: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavfilter/avf_ahistogram.c:380:21: branch_true: ...to here
ffmpeg-7.1.1/libavfilter/avf_ahistogram.c:393:33: branch_true: following ‘true’ branch (when ‘y < H’)...
ffmpeg-7.1.1/libavfilter/avf_ahistogram.c:394:29: branch_true: ...to here
ffmpeg-7.1.1/libavfilter/avf_ahistogram.c:394:24: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavfilter/avf_ahistogram.c:397:31: branch_false: ...to here
ffmpeg-7.1.1/libavfilter/avf_ahistogram.c:397:31: danger: use of uninitialized value ‘yf’ here
#  395|                           break;
#  396|                       old = dsty[n];
#  397|->                     dsty[n] = av_clip_uint8(yf);
#  398|                       dstu[n] = av_clip_uint8(128.f+uf);
#  399|                       dstv[n] = av_clip_uint8(128.f+vf);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def185]
ffmpeg-7.1.1/libavfilter/avf_ahistogram.c:408:27: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yf’
ffmpeg-7.1.1/libavfilter/avf_ahistogram.c:233:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavfilter/avf_ahistogram.c:238:9: branch_false: ...to here
ffmpeg-7.1.1/libavfilter/avf_ahistogram.c:316:17: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavfilter/avf_ahistogram.c:317:34: branch_true: ...to here
ffmpeg-7.1.1/libavfilter/avf_ahistogram.c:321:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavfilter/avf_ahistogram.c:329:9: branch_false: ...to here
ffmpeg-7.1.1/libavfilter/avf_ahistogram.c:329:21: branch_true: following ‘true’ branch (when ‘n < w’)...
ffmpeg-7.1.1/libavfilter/avf_ahistogram.c:333:28: branch_true: ...to here
ffmpeg-7.1.1/libavfilter/avf_ahistogram.c:359:16: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavfilter/avf_ahistogram.c:379:23: branch_false: ...to here
ffmpeg-7.1.1/libavfilter/avf_ahistogram.c:379:23: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavfilter/avf_ahistogram.c:380:21: branch_true: ...to here
ffmpeg-7.1.1/libavfilter/avf_ahistogram.c:408:27: danger: use of uninitialized value ‘yf’ here
#  406|                   }
#  407|   
#  408|->                 out[0] += aa * yf;
#  409|                   out[1] += aa * uf;
#  410|                   out[2] += aa * vf;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def186]
ffmpeg-7.1.1/libavfilter/avf_aphasemeter.c:333:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘outlink’
ffmpeg-7.1.1/libavfilter/avf_aphasemeter.c:243:29: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavfilter/avf_aphasemeter.c:244:30: branch_false: ...to here
ffmpeg-7.1.1/libavfilter/avf_aphasemeter.c:259:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavfilter/avf_aphasemeter.c:271:15: branch_false: ...to here
ffmpeg-7.1.1/libavfilter/avf_aphasemeter.c:271:15: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavfilter/avf_aphasemeter.c:284:5: branch_false: ...to here
ffmpeg-7.1.1/libavfilter/avf_aphasemeter.c:284:17: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavfilter/avf_aphasemeter.c:299:12: branch_false: ...to here
ffmpeg-7.1.1/libavfilter/avf_aphasemeter.c:302:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavfilter/avf_aphasemeter.c:316:9: branch_false: ...to here
ffmpeg-7.1.1/libavfilter/avf_aphasemeter.c:332:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavfilter/avf_aphasemeter.c:333:34: branch_true: ...to here
ffmpeg-7.1.1/libavfilter/avf_aphasemeter.c:333:19: danger: dereference of NULL ‘outlink’
#  331|   
#  332|       if (s->do_video)
#  333|->         new_pts = av_rescale_q(in->pts, inlink->time_base, outlink->time_base);
#  334|       if (s->do_video && new_pts != s->last_pts) {
#  335|           AVFrame *clone;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def187]
ffmpeg-7.1.1/libavfilter/avf_avectorscope.c:378:39: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘src[0]’
ffmpeg-7.1.1/libavfilter/avf_avectorscope.c:319:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavfilter/avf_avectorscope.c:323:46: branch_false: ...to here
ffmpeg-7.1.1/libavfilter/avf_avectorscope.c:360:21: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavfilter/avf_avectorscope.c:363:17: branch_true: ...to here
ffmpeg-7.1.1/libavfilter/avf_avectorscope.c:378:39: danger: use of uninitialized value ‘src[0]’ here
#  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): [#def188]
ffmpeg-7.1.1/libavfilter/avf_avectorscope.c:382:39: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘src[0]’
ffmpeg-7.1.1/libavfilter/avf_avectorscope.c:319:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavfilter/avf_avectorscope.c:323:46: branch_false: ...to here
ffmpeg-7.1.1/libavfilter/avf_avectorscope.c:360:21: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavfilter/avf_avectorscope.c:363:17: branch_true: ...to here
ffmpeg-7.1.1/libavfilter/avf_avectorscope.c:382:39: danger: use of uninitialized value ‘src[0]’ here
#  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): [#def189]
ffmpeg-7.1.1/libavfilter/avf_avectorscope.c:386:48: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘src[0]’
ffmpeg-7.1.1/libavfilter/avf_avectorscope.c:319:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavfilter/avf_avectorscope.c:323:46: branch_false: ...to here
ffmpeg-7.1.1/libavfilter/avf_avectorscope.c:360:21: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavfilter/avf_avectorscope.c:363:17: branch_true: ...to here
ffmpeg-7.1.1/libavfilter/avf_avectorscope.c:386:48: danger: use of uninitialized value ‘src[0]’ here
#  384|               break;
#  385|           case LOG:
#  386|->             src[0] = FFSIGN(src[0]) * logf(1 + FFABS(src[0])) / logf(2);
#  387|               src[1] = FFSIGN(src[1]) * logf(1 + FFABS(src[1])) / logf(2);
#  388|               break;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def190]
ffmpeg-7.1.1/libavfilter/avf_avectorscope.c:392:22: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘src[0]’
ffmpeg-7.1.1/libavfilter/avf_avectorscope.c:319:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavfilter/avf_avectorscope.c:323:46: branch_false: ...to here
ffmpeg-7.1.1/libavfilter/avf_avectorscope.c:360:21: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavfilter/avf_avectorscope.c:363:17: branch_true: ...to here
ffmpeg-7.1.1/libavfilter/avf_avectorscope.c:391:12: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavfilter/avf_avectorscope.c:392:22: branch_true: ...to here
ffmpeg-7.1.1/libavfilter/avf_avectorscope.c:392:22: danger: use of uninitialized value ‘src[0]’ here
#  390|   
#  391|           if (s->mirror & 1)
#  392|->             src[0] = -src[0];
#  393|   
#  394|           if (s->mirror & 2)

Error: GCC_ANALYZER_WARNING (CWE-457): [#def191]
ffmpeg-7.1.1/libavfilter/avf_avectorscope.c:395:22: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘src[1]’
ffmpeg-7.1.1/libavfilter/avf_avectorscope.c:319:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavfilter/avf_avectorscope.c:323:46: branch_false: ...to here
ffmpeg-7.1.1/libavfilter/avf_avectorscope.c:360:21: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavfilter/avf_avectorscope.c:363:17: branch_true: ...to here
ffmpeg-7.1.1/libavfilter/avf_avectorscope.c:391:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavfilter/avf_avectorscope.c:394:13: branch_false: ...to here
ffmpeg-7.1.1/libavfilter/avf_avectorscope.c:394:12: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavfilter/avf_avectorscope.c:395:22: branch_true: ...to here
ffmpeg-7.1.1/libavfilter/avf_avectorscope.c:395:22: danger: use of uninitialized value ‘src[1]’ here
#  393|   
#  394|           if (s->mirror & 2)
#  395|->             src[1] = -src[1];
#  396|   
#  397|           if (s->swap)

Error: GCC_ANALYZER_WARNING (CWE-457): [#def192]
ffmpeg-7.1.1/libavfilter/avf_avectorscope.c:401:18: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘src[0]’
ffmpeg-7.1.1/libavfilter/avf_avectorscope.c:438:12: enter_function: entry to ‘activate’
ffmpeg-7.1.1/libavfilter/avf_avectorscope.c:446:5: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavfilter/avf_avectorscope.c:448:60: branch_false: ...to here
ffmpeg-7.1.1/libavfilter/avf_avectorscope.c:449:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavfilter/avf_avectorscope.c:451:8: branch_false: ...to here
ffmpeg-7.1.1/libavfilter/avf_avectorscope.c:451:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavfilter/avf_avectorscope.c:452:16: branch_true: ...to here
ffmpeg-7.1.1/libavfilter/avf_avectorscope.c:452:16: call_function: calling ‘filter_frame’ from ‘activate’
#  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): [#def193]
ffmpeg-7.1.1/libavfilter/avf_avectorscope.c:401:18: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘src[1]’
ffmpeg-7.1.1/libavfilter/avf_avectorscope.c:438:12: enter_function: entry to ‘activate’
ffmpeg-7.1.1/libavfilter/avf_avectorscope.c:446:5: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavfilter/avf_avectorscope.c:448:60: branch_false: ...to here
ffmpeg-7.1.1/libavfilter/avf_avectorscope.c:449:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavfilter/avf_avectorscope.c:451:8: branch_false: ...to here
ffmpeg-7.1.1/libavfilter/avf_avectorscope.c:451:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavfilter/avf_avectorscope.c:452:16: branch_true: ...to here
ffmpeg-7.1.1/libavfilter/avf_avectorscope.c:452:16: call_function: calling ‘filter_frame’ from ‘activate’
#  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): [#def194]
ffmpeg-7.1.1/libavfilter/avf_avectorscope.c:404:18: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘src[1]’
ffmpeg-7.1.1/libavfilter/avf_avectorscope.c:438:12: enter_function: entry to ‘activate’
ffmpeg-7.1.1/libavfilter/avf_avectorscope.c:446:5: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavfilter/avf_avectorscope.c:448:60: branch_false: ...to here
ffmpeg-7.1.1/libavfilter/avf_avectorscope.c:449:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavfilter/avf_avectorscope.c:451:8: branch_false: ...to here
ffmpeg-7.1.1/libavfilter/avf_avectorscope.c:451:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavfilter/avf_avectorscope.c:452:16: branch_true: ...to here
ffmpeg-7.1.1/libavfilter/avf_avectorscope.c:452:16: call_function: calling ‘filter_frame’ from ‘activate’
#  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): [#def195]
ffmpeg-7.1.1/libavfilter/avf_avectorscope.c:409:18: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘src[1]’
ffmpeg-7.1.1/libavfilter/avf_avectorscope.c:438:12: enter_function: entry to ‘activate’
ffmpeg-7.1.1/libavfilter/avf_avectorscope.c:446:5: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavfilter/avf_avectorscope.c:448:60: branch_false: ...to here
ffmpeg-7.1.1/libavfilter/avf_avectorscope.c:449:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavfilter/avf_avectorscope.c:451:8: branch_false: ...to here
ffmpeg-7.1.1/libavfilter/avf_avectorscope.c:451:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavfilter/avf_avectorscope.c:452:16: branch_true: ...to here
ffmpeg-7.1.1/libavfilter/avf_avectorscope.c:452:16: call_function: calling ‘filter_frame’ from ‘activate’
#  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): [#def196]
ffmpeg-7.1.1/libavfilter/avf_avectorscope.c:428:5: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘x’
ffmpeg-7.1.1/libavfilter/avf_avectorscope.c:438:12: enter_function: entry to ‘activate’
ffmpeg-7.1.1/libavfilter/avf_avectorscope.c:446:5: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavfilter/avf_avectorscope.c:448:60: branch_false: ...to here
ffmpeg-7.1.1/libavfilter/avf_avectorscope.c:449:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavfilter/avf_avectorscope.c:451:8: branch_false: ...to here
ffmpeg-7.1.1/libavfilter/avf_avectorscope.c:451:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavfilter/avf_avectorscope.c:452:16: branch_true: ...to here
ffmpeg-7.1.1/libavfilter/avf_avectorscope.c:452:16: call_function: calling ‘filter_frame’ from ‘activate’
#  426|       }
#  427|   
#  428|->     s->prev_x = x, s->prev_y = y;
#  429|       av_frame_free(&insamples);
#  430|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def197]
ffmpeg-7.1.1/libavfilter/avf_showcwt.c:589:21: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘dstY’
ffmpeg-7.1.1/libavfilter/avf_showcwt.c:449:12: enter_function: entry to ‘draw’
ffmpeg-7.1.1/libavfilter/avf_showcwt.c:474:25: branch_true: following ‘true’ branch (when ‘y < end’)...
ffmpeg-7.1.1/libavfilter/avf_showcwt.c:475:62: branch_true: ...to here
ffmpeg-7.1.1/libavfilter/avf_showcwt.c:523:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavfilter/avf_showcwt.c:531:1: branch_false: ...to here
ffmpeg-7.1.1/libavfilter/avf_showcwt.c:588:20: branch_true: following ‘true’ branch (when ‘sono_size > 0’)...
ffmpeg-7.1.1/libavfilter/avf_showcwt.c:589:45: branch_true: ...to here
ffmpeg-7.1.1/libavfilter/avf_showcwt.c:589:31: call_function: inlined call to ‘av_clip_uint8_c’ from ‘draw’
ffmpeg-7.1.1/libavfilter/avf_showcwt.c:589:21: branch_false: ...to here
ffmpeg-7.1.1/libavfilter/avf_showcwt.c:589:21: danger: use of uninitialized value ‘dstY’ here
#  587|   
#  588|                   if (sono_size > 0) {
#  589|->                     dstY[0] = av_clip_uint8(lrintf(Y * 255.f));
#  590|                       dstU[0] = av_clip_uint8(lrintf(U * 255.f));
#  591|                       dstV[0] = av_clip_uint8(lrintf(V * 255.f));

Error: GCC_ANALYZER_WARNING (CWE-457): [#def198]
ffmpeg-7.1.1/libavfilter/avf_showcwt.c:608:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘dstY’
ffmpeg-7.1.1/libavfilter/avf_showcwt.c:449:12: enter_function: entry to ‘draw’
ffmpeg-7.1.1/libavfilter/avf_showcwt.c:474:25: branch_true: following ‘true’ branch (when ‘y < end’)...
ffmpeg-7.1.1/libavfilter/avf_showcwt.c:475:62: branch_true: ...to here
ffmpeg-7.1.1/libavfilter/avf_showcwt.c:523:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavfilter/avf_showcwt.c:531:1: branch_false: ...to here
ffmpeg-7.1.1/libavfilter/avf_showcwt.c:607:16: branch_true: following ‘true’ branch (when ‘sono_size > 0’)...
ffmpeg-7.1.1/libavfilter/avf_showcwt.c:608:41: branch_true: ...to here
ffmpeg-7.1.1/libavfilter/avf_showcwt.c:608:27: call_function: inlined call to ‘av_clip_uint8_c’ from ‘draw’
ffmpeg-7.1.1/libavfilter/avf_showcwt.c:608:17: branch_false: ...to here
ffmpeg-7.1.1/libavfilter/avf_showcwt.c:608:17: danger: use of uninitialized value ‘dstY’ here
#  606|   
#  607|               if (sono_size > 0) {
#  608|->                 dstY[0] = av_clip_uint8(lrintf(Y * 255.f));
#  609|                   dstU[0] = av_clip_uint8(lrintf(U * 255.f));
#  610|                   dstV[0] = av_clip_uint8(lrintf(V * 255.f));

Error: GCC_ANALYZER_WARNING (CWE-457): [#def199]
ffmpeg-7.1.1/libavfilter/avf_showcwt.c:623:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘dstY’
ffmpeg-7.1.1/libavfilter/avf_showcwt.c:449:12: enter_function: entry to ‘draw’
ffmpeg-7.1.1/libavfilter/avf_showcwt.c:474:25: branch_true: following ‘true’ branch (when ‘y < end’)...
ffmpeg-7.1.1/libavfilter/avf_showcwt.c:475:62: branch_true: ...to here
ffmpeg-7.1.1/libavfilter/avf_showcwt.c:523:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavfilter/avf_showcwt.c:531:1: branch_false: ...to here
ffmpeg-7.1.1/libavfilter/avf_showcwt.c:622:16: branch_true: following ‘true’ branch (when ‘sono_size > 0’)...
ffmpeg-7.1.1/libavfilter/avf_showcwt.c:623:41: branch_true: ...to here
ffmpeg-7.1.1/libavfilter/avf_showcwt.c:623:27: call_function: inlined call to ‘av_clip_uint8_c’ from ‘draw’
ffmpeg-7.1.1/libavfilter/avf_showcwt.c:623:17: branch_false: ...to here
ffmpeg-7.1.1/libavfilter/avf_showcwt.c:623:17: danger: use of uninitialized value ‘dstY’ here
#  621|   
#  622|               if (sono_size > 0) {
#  623|->                 dstY[0] = av_clip_uint8(lrintf(Y * 255.f));
#  624|                   if (dstA)
#  625|                       dstA[0] = dstY[0];

Error: GCC_ANALYZER_WARNING (CWE-457): [#def200]
ffmpeg-7.1.1/libavfilter/avf_showspectrum.c:1553:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘x’
ffmpeg-7.1.1/libavfilter/avf_showspectrum.c:1443:17: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavfilter/avf_showspectrum.c:1449:11: branch_false: ...to here
ffmpeg-7.1.1/libavfilter/avf_showspectrum.c:1450:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavfilter/avf_showspectrum.c:1452:5: branch_false: ...to here
ffmpeg-7.1.1/libavfilter/avf_showspectrum.c:1454:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavfilter/avf_showspectrum.c:1455:13: branch_true: ...to here
ffmpeg-7.1.1/libavfilter/avf_showspectrum.c:1474:25: branch_true: following ‘true’ branch (when ‘plane != 3’)...
ffmpeg-7.1.1/libavfilter/avf_showspectrum.c:1475:26: branch_true: ...to here
ffmpeg-7.1.1/libavfilter/avf_showspectrum.c:1547:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavfilter/avf_showspectrum.c:1552:16: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavfilter/avf_showspectrum.c:1553:45: branch_true: ...to here
ffmpeg-7.1.1/libavfilter/avf_showspectrum.c:1553:31: danger: use of uninitialized value ‘x’ here
# 1551|   
# 1552|               if (s->legend) {
# 1553|->                 char *units = get_time(ctx, insamples->pts /(float)inlink->sample_rate, x);
# 1554|                   if (!units)
# 1555|                       return AVERROR(ENOMEM);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def201]
ffmpeg-7.1.1/libavfilter/avfilter.c:1513:15: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘frame’
ffmpeg-7.1.1/libavfilter/avfilter.c:1383:5: enter_function: entry to ‘ff_filter_activate’
ffmpeg-7.1.1/libavfilter/avfilter.c:1391:11: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavfilter/avfilter.c:1392:11: branch_false: ...to here
ffmpeg-7.1.1/libavfilter/avfilter.c:1392:11: call_function: calling ‘ff_filter_activate_default’ from ‘ff_filter_activate’
# 1511|           break;
# 1512|       case AVMEDIA_TYPE_AUDIO:
# 1513|->         out = ff_get_audio_buffer(link, frame->nb_samples);
# 1514|           break;
# 1515|       default:

Error: GCC_ANALYZER_WARNING (CWE-476): [#def202]
ffmpeg-7.1.1/libavfilter/avfilter.c:1542:31: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘frame’
ffmpeg-7.1.1/libavfilter/avfilter.c:1383:5: enter_function: entry to ‘ff_filter_activate’
ffmpeg-7.1.1/libavfilter/avfilter.c:1391:11: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavfilter/avfilter.c:1392:11: branch_false: ...to here
ffmpeg-7.1.1/libavfilter/avfilter.c:1392:11: call_function: calling ‘ff_filter_activate_default’ from ‘ff_filter_activate’
# 1540|       AVFilterCommand *cmd = link->dst->command_queue;
# 1541|   
# 1542|->     while(cmd && cmd->time <= frame->pts * av_q2d(link->time_base)){
# 1543|           av_log(link->dst, AV_LOG_DEBUG,
# 1544|                  "Processing command time:%f command:%s arg:%s\n",

Error: GCC_ANALYZER_WARNING (CWE-476): [#def203]
ffmpeg-7.1.1/libavfilter/avfilter.c:1557:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘frame’
ffmpeg-7.1.1/libavfilter/avfilter.c:1383:5: enter_function: entry to ‘ff_filter_activate’
ffmpeg-7.1.1/libavfilter/avfilter.c:1391:11: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavfilter/avfilter.c:1392:11: branch_false: ...to here
ffmpeg-7.1.1/libavfilter/avfilter.c:1392:11: call_function: calling ‘ff_filter_activate_default’ from ‘ff_filter_activate’
# 1555|       FilterLink *l = ff_filter_link(link);
# 1556|       AVFilterContext *dstctx = link->dst;
# 1557|->     int64_t pts = frame->pts;
# 1558|   #if FF_API_FRAME_PKT
# 1559|   FF_DISABLE_DEPRECATION_WARNINGS

Error: GCC_ANALYZER_WARNING (CWE-674): [#def204]
ffmpeg-7.1.1/libavfilter/avfiltergraph.c:1320:13: warning[-Wanalyzer-infinite-recursion]: infinite recursion
ffmpeg-7.1.1/libavfilter/avfiltergraph.c:1312:5: enter_function: entry to ‘avfilter_graph_send_command’
ffmpeg-7.1.1/libavfilter/avfiltergraph.c:1316:8: branch_false: following ‘false’ branch (when ‘graph’ is non-NULL)...
ffmpeg-7.1.1/libavfilter/avfiltergraph.c:1319:9: branch_false: ...to here
ffmpeg-7.1.1/libavfilter/avfiltergraph.c:1319:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavfilter/avfiltergraph.c:1320:13: call_function: calling ‘avfilter_graph_send_command’ from ‘avfilter_graph_send_command’
# 1318|   
# 1319|       if ((flags & AVFILTER_CMD_FLAG_ONE) && !(flags & AVFILTER_CMD_FLAG_FAST)) {
# 1320|->         r = avfilter_graph_send_command(graph, target, cmd, arg, res, res_len, flags | AVFILTER_CMD_FLAG_FAST);
# 1321|           if (r != AVERROR(ENOSYS))
# 1322|               return r;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def205]
ffmpeg-7.1.1/libavfilter/vaf_spectrumsynth.c:411:5: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘start’
ffmpeg-7.1.1/libavfilter/vaf_spectrumsynth.c:456:12: enter_function: entry to ‘activate’
ffmpeg-7.1.1/libavfilter/vaf_spectrumsynth.c:463:5: branch_false: following ‘false’ branch...
 branch_false: ...to here
ffmpeg-7.1.1/libavfilter/vaf_spectrumsynth.c:465:17: branch_true: following ‘true’ branch (when ‘i != 2’)...
ffmpeg-7.1.1/libavfilter/vaf_spectrumsynth.c:466:14: branch_true: ...to here
ffmpeg-7.1.1/libavfilter/vaf_spectrumsynth.c:466:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavfilter/vaf_spectrumsynth.c:468:39: branch_false: ...to here
ffmpeg-7.1.1/libavfilter/vaf_spectrumsynth.c:469:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavfilter/vaf_spectrumsynth.c:471:12: branch_false: ...to here
ffmpeg-7.1.1/libavfilter/vaf_spectrumsynth.c:471:12: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavfilter/vaf_spectrumsynth.c:472:13: branch_true: ...to here
ffmpeg-7.1.1/libavfilter/vaf_spectrumsynth.c:473:20: call_function: calling ‘try_push_frames’ from ‘activate’
#  409|       }
#  410|   
#  411|->     s->start = start;
#  412|       s->end = end;
#  413|   

Error: GCC_ANALYZER_WARNING: [#def206]
ffmpeg-7.1.1/libavfilter/vf_colorconstancy.c:118:23: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
ffmpeg-7.1.1/libavfilter/vf_colorconstancy.c:638:12: enter_function: entry to ‘config_props’
ffmpeg-7.1.1/libavfilter/vf_colorconstancy.c:653:13: call_function: calling ‘set_gauss’ from ‘config_props’
#  116|   
#  117|       for (i = 0; i <= difford; ++i) {
#  118|->         s->gauss[i] = av_calloc(filtersize, sizeof(*s->gauss[i]));
#  119|           if (!s->gauss[i]) {
#  120|               for (; i >= 0; --i) {

Error: GCC_ANALYZER_WARNING (CWE-457): [#def207]
ffmpeg-7.1.1/libavfilter/vf_convolution_opencl.c:157:25: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘input_matrix[j][i]’
ffmpeg-7.1.1/libavfilter/vf_convolution_opencl.c:116:17: branch_true: following ‘true’ branch (when ‘i != 4’)...
ffmpeg-7.1.1/libavfilter/vf_convolution_opencl.c:117:26: branch_true: ...to here
ffmpeg-7.1.1/libavfilter/vf_convolution_opencl.c:120:17: branch_true: following ‘true’ branch (when ‘i != 4’)...
ffmpeg-7.1.1/libavfilter/vf_convolution_opencl.c:121:9: branch_true: ...to here
ffmpeg-7.1.1/libavfilter/vf_convolution_opencl.c:122:16: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavfilter/vf_convolution_opencl.c:135:13: branch_false: ...to here
ffmpeg-7.1.1/libavfilter/vf_convolution_opencl.c:139:19: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavfilter/vf_convolution_opencl.c:140:13: branch_true: ...to here
ffmpeg-7.1.1/libavfilter/vf_convolution_opencl.c:148:17: branch_true: following ‘true’ branch (when ‘j != 4’)...
ffmpeg-7.1.1/libavfilter/vf_convolution_opencl.c:149:38: branch_true: ...to here
ffmpeg-7.1.1/libavfilter/vf_convolution_opencl.c:151:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
ffmpeg-7.1.1/libavfilter/vf_convolution_opencl.c:156:21: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavfilter/vf_convolution_opencl.c:157:19: branch_true: ...to here
ffmpeg-7.1.1/libavfilter/vf_convolution_opencl.c:157:25: danger: use of uninitialized value ‘input_matrix[j][i]’ here
#  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: [#def208]
ffmpeg-7.1.1/libavfilter/vf_datascope.c:971:17: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
#  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): [#def209]
ffmpeg-7.1.1/libavfilter/vf_fftdnoiz.c:321:29: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘ddst’
ffmpeg-7.1.1/libavfilter/vf_fftdnoiz.c:303:21: branch_false: following ‘false’ branch (when ‘i >= rh’)...
 branch_false: ...to here
ffmpeg-7.1.1/libavfilter/vf_fftdnoiz.c:319:22: branch_true: following ‘true’ branch (when ‘i < block’)...
 branch_true: ...to here
ffmpeg-7.1.1/libavfilter/vf_fftdnoiz.c:320:25: branch_true: following ‘true’ branch (when ‘j < block’)...
ffmpeg-7.1.1/libavfilter/vf_fftdnoiz.c:321:29: branch_true: ...to here
ffmpeg-7.1.1/libavfilter/vf_fftdnoiz.c:321:29: danger: use of uninitialized value ‘ddst’ here
#  319|       for (int i = rh; i < block; i++) {
#  320|           for (int j = 0; j < block; j++) {
#  321|->             dst[j].re = ddst[j].re;
#  322|               dst[j].im = ddst[j].im;
#  323|           }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def210]
ffmpeg-7.1.1/libavfilter/vf_fftdnoiz.c:433:33: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘factor’
ffmpeg-7.1.1/libavfilter/vf_fftdnoiz.c:402:21: branch_true: following ‘true’ branch (when ‘i < block’)...
 branch_true: ...to here
ffmpeg-7.1.1/libavfilter/vf_fftdnoiz.c:403:25: branch_true: following ‘true’ branch (when ‘j < block’)...
ffmpeg-7.1.1/libavfilter/vf_fftdnoiz.c:407:34: branch_true: ...to here
ffmpeg-7.1.1/libavfilter/vf_fftdnoiz.c:418:29: branch_true: following ‘true’ branch (when ‘z != 3’)...
ffmpeg-7.1.1/libavfilter/vf_fftdnoiz.c:419:29: branch_true: ...to here
ffmpeg-7.1.1/libavfilter/vf_fftdnoiz.c:433:33: danger: use of uninitialized value ‘factor’ here
#  431|                   }
#  432|   
#  433|->                 outbuffer[z].re *= factor;
#  434|                   outbuffer[z].im *= factor;
#  435|               }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def211]
ffmpeg-7.1.1/libavfilter/vf_fftdnoiz.c:491:33: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘factor’
ffmpeg-7.1.1/libavfilter/vf_fftdnoiz.c:463:21: branch_true: following ‘true’ branch (when ‘i < block’)...
 branch_true: ...to here
ffmpeg-7.1.1/libavfilter/vf_fftdnoiz.c:464:25: branch_true: following ‘true’ branch (when ‘j < block’)...
ffmpeg-7.1.1/libavfilter/vf_fftdnoiz.c:468:34: branch_true: ...to here
ffmpeg-7.1.1/libavfilter/vf_fftdnoiz.c:476:29: branch_true: following ‘true’ branch (when ‘z != 2’)...
ffmpeg-7.1.1/libavfilter/vf_fftdnoiz.c:477:29: branch_true: ...to here
ffmpeg-7.1.1/libavfilter/vf_fftdnoiz.c:491:33: danger: use of uninitialized value ‘factor’ here
#  489|                   }
#  490|   
#  491|->                 outbuffer[z].re *= factor;
#  492|                   outbuffer[z].im *= factor;
#  493|               }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def212]
ffmpeg-7.1.1/libavfilter/vf_fftdnoiz.c:534:29: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘factor’
ffmpeg-7.1.1/libavfilter/vf_fftdnoiz.c:518:21: branch_true: following ‘true’ branch (when ‘i < block’)...
 branch_true: ...to here
ffmpeg-7.1.1/libavfilter/vf_fftdnoiz.c:519:25: branch_true: following ‘true’ branch (when ‘j < block’)...
ffmpeg-7.1.1/libavfilter/vf_fftdnoiz.c:522:23: branch_true: ...to here
ffmpeg-7.1.1/libavfilter/vf_fftdnoiz.c:534:29: danger: use of uninitialized value ‘factor’ here
#  532|               }
#  533|   
#  534|->             buff[j * 2    ] *= factor;
#  535|               buff[j * 2 + 1] *= factor;
#  536|           }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def213]
ffmpeg-7.1.1/libavfilter/vf_find_rect.c:72:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘in’
ffmpeg-7.1.1/libavfilter/vf_find_rect.c:174:12: enter_function: entry to ‘filter_frame’
ffmpeg-7.1.1/libavfilter/vf_find_rect.c:185:15: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavfilter/vf_find_rect.c:186:64: branch_true: ...to here
ffmpeg-7.1.1/libavfilter/vf_find_rect.c:186:9: release_memory: ‘0’ is NULL
ffmpeg-7.1.1/libavfilter/vf_find_rect.c:185:15: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavfilter/vf_find_rect.c:186:64: branch_true: ...to here
ffmpeg-7.1.1/libavfilter/vf_find_rect.c:186:34: release_memory: ‘0’ is NULL
ffmpeg-7.1.1/libavfilter/vf_find_rect.c:186:34: call_function: calling ‘downscale’ from ‘filter_frame’
#   70|           return NULL;
#   71|   
#   72|->     frame->format = in->format;
#   73|       frame->width  = (in->width + 1) / 2;
#   74|       frame->height = (in->height+ 1) / 2;

Error: GCC_ANALYZER_WARNING (CWE-674): [#def214]
ffmpeg-7.1.1/libavfilter/vf_geq.c:215:29: warning[-Wanalyzer-infinite-recursion]: infinite recursion
ffmpeg-7.1.1/libavfilter/vf_geq.c:254:15: enter_function: entry to ‘alphasum’
ffmpeg-7.1.1/libavfilter/vf_geq.c:254:65: call_function: calling ‘getpix_integrate’ from ‘alphasum’
#  213|   {
#  214|       if (x > w - 1) {
#  215|->         double boundary =   getpix_integrate_internal(geq, w - 1, y, plane, w, h);
#  216|           return 2*boundary - getpix_integrate_internal(geq, 2*(w - 1) - x, y, plane, w, h);
#  217|       } else if (y > h - 1) {

Error: GCC_ANALYZER_WARNING (CWE-674): [#def215]
ffmpeg-7.1.1/libavfilter/vf_geq.c:218:29: warning[-Wanalyzer-infinite-recursion]: infinite recursion
ffmpeg-7.1.1/libavfilter/vf_geq.c:254:15: enter_function: entry to ‘alphasum’
ffmpeg-7.1.1/libavfilter/vf_geq.c:254:65: call_function: calling ‘getpix_integrate’ from ‘alphasum’
#  216|           return 2*boundary - getpix_integrate_internal(geq, 2*(w - 1) - x, y, plane, w, h);
#  217|       } else if (y > h - 1) {
#  218|->         double boundary =   getpix_integrate_internal(geq, x, h - 1, plane, w, h);
#  219|           return 2*boundary - getpix_integrate_internal(geq, x, 2*(h - 1) - y, plane, w, h);
#  220|       } else if (x < 0) {

Error: COMPILER_WARNING (CWE-477): [#def216]
ffmpeg-7.1.1/libavfilter/vf_libplacebo.c: scope_hint: In function ‘output_frame’
ffmpeg-7.1.1/libavfilter/vf_libplacebo.c:885:5: warning[-Wdeprecated-declarations]: ‘skip_target_clearing’ is deprecated
#  885 |     opts->params.skip_target_clearing = false;
#      |     ^~~~
ffmpeg-7.1.1/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`
#      |                                   ^~~~~~~~~~~~~~~~~~~~
#  883|   
#  884|       /* Draw first frame opaque, others with blending */
#  885|->     opts->params.skip_target_clearing = false;
#  886|       opts->params.blend_params = NULL;
#  887|       for (int i = 0; i < s->nb_inputs; i++) {

Error: COMPILER_WARNING (CWE-477): [#def217]
ffmpeg-7.1.1/libavfilter/vf_libplacebo.c:885:5: warning[-Wdeprecated-declarations]: ‘skip_target_clearing’ is deprecated
#  883|   
#  884|       /* Draw first frame opaque, others with blending */
#  885|->     opts->params.skip_target_clearing = false;
#  886|       opts->params.blend_params = NULL;
#  887|       for (int i = 0; i < s->nb_inputs; i++) {

Error: COMPILER_WARNING (CWE-477): [#def218]
ffmpeg-7.1.1/libavfilter/vf_libplacebo.c:897:9: warning[-Wdeprecated-declarations]: ‘skip_target_clearing’ is deprecated
#  897 |         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`
#      |                                   ^~~~~~~~~~~~~~~~~~~~
/usr/include/CL/cl.h:20: included_from: Included from here.
ffmpeg-7.1.1/libavutil/hwcontext_opencl.h:25: included_from: Included from here.
ffmpeg-7.1.1/libavfilter/opencl.h:31: included_from: Included from here.
ffmpeg-7.1.1/libavfilter/vf_neighbor_opencl.c:32: 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.1.1/libavutil/hwcontext_opencl.h:25: included_from: Included from here.
ffmpeg-7.1.1/libavfilter/opencl.h:31: included_from: Included from here.
ffmpeg-7.1.1/libavfilter/vf_nlmeans_opencl.c:29: 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.1.1/libavutil/hwcontext_opencl.h:25: included_from: Included from here.
ffmpeg-7.1.1/libavfilter/opencl.h:31: included_from: Included from here.
ffmpeg-7.1.1/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.1.1/libavutil/hwcontext_opencl.h:25: included_from: Included from here.
ffmpeg-7.1.1/libavfilter/opencl.h:31: included_from: Included from here.
ffmpeg-7.1.1/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.1.1/libavutil/hwcontext_opencl.h:25: included_from: Included from here.
ffmpeg-7.1.1/libavfilter/opencl.h:31: included_from: Included from here.
ffmpeg-7.1.1/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.1.1/libavutil/hwcontext_opencl.h:25: included_from: Included from here.
ffmpeg-7.1.1/libavfilter/opencl.h:31: included_from: Included from here.
ffmpeg-7.1.1/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.1.1/libavutil/hwcontext_opencl.h:25: included_from: Included from here.
ffmpeg-7.1.1/libavfilter/opencl.h:31: included_from: Included from here.
ffmpeg-7.1.1/libavfilter/vf_tonemap_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.1.1/libavutil/hwcontext_opencl.h:25: included_from: Included from here.
ffmpeg-7.1.1/libavfilter/opencl.h:31: included_from: Included from here.
ffmpeg-7.1.1/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)’
#   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.1.1/libavutil/hwcontext_opencl.h:25: included_from: Included from here.
ffmpeg-7.1.1/libavfilter/opencl.h:31: included_from: Included from here.
ffmpeg-7.1.1/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)")
#      |         ^~~~~~~
#  895|           update_crops(ctx, in, &target, out->pts * av_q2d(outlink->time_base));
#  896|           pl_render_image_mix(in->renderer, &in->mix, &target, &opts->params);
#  897|->         opts->params.skip_target_clearing = true;
#  898|           opts->params.blend_params = &pl_alpha_overlay;
#  899|       }

Error: COMPILER_WARNING (CWE-477): [#def219]
ffmpeg-7.1.1/libavfilter/vf_libplacebo.c:897:9: warning[-Wdeprecated-declarations]: ‘skip_target_clearing’ is deprecated
#  895|           update_crops(ctx, in, &target, out->pts * av_q2d(outlink->time_base));
#  896|           pl_render_image_mix(in->renderer, &in->mix, &target, &opts->params);
#  897|->         opts->params.skip_target_clearing = true;
#  898|           opts->params.blend_params = &pl_alpha_overlay;
#  899|       }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def220]
ffmpeg-7.1.1/libavfilter/vf_neighbor_opencl.c:73:19: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘kernel_name’
ffmpeg-7.1.1/libavfilter/vf_neighbor_opencl.c:59:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavfilter/vf_neighbor_opencl.c:63:47: branch_false: ...to here
ffmpeg-7.1.1/libavfilter/vf_neighbor_opencl.c:65:5: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavfilter/vf_neighbor_opencl.c:68:17: branch_false: ...to here
ffmpeg-7.1.1/libavfilter/vf_neighbor_opencl.c:68:8: branch_false: following ‘false’ branch (when the strings are non-equal)...
ffmpeg-7.1.1/libavfilter/vf_neighbor_opencl.c:70:17: branch_false: ...to here
ffmpeg-7.1.1/libavfilter/vf_neighbor_opencl.c:70:15: branch_false: following ‘false’ branch (when the strings are non-equal)...
ffmpeg-7.1.1/libavfilter/vf_neighbor_opencl.c:73:19: branch_false: ...to here
ffmpeg-7.1.1/libavfilter/vf_neighbor_opencl.c:73:19: danger: use of uninitialized value ‘kernel_name’ here
#   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): [#def221]
ffmpeg-7.1.1/libavfilter/vf_nnedi.c:373:20: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
ffmpeg-7.1.1/libavfilter/vf_nnedi.c:538:12: enter_function: entry to ‘filter_slice’
ffmpeg-7.1.1/libavfilter/vf_nnedi.c:551:21: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavfilter/vf_nnedi.c:552:19: branch_true: ...to here
ffmpeg-7.1.1/libavfilter/vf_nnedi.c:572:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavfilter/vf_nnedi.c:580:9: branch_false: ...to here
ffmpeg-7.1.1/libavfilter/vf_nnedi.c:634:25: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavfilter/vf_nnedi.c:635:17: branch_true: ...to here
ffmpeg-7.1.1/libavfilter/vf_nnedi.c:640:13: call_function: calling ‘predictor’ from ‘filter_slice’
#  371|   {
#  372|       for (int i = 0; i < size; i++)
#  373|->         input[i] = softmax_exp(input[i]);
#  374|   }
#  375|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def222]
ffmpeg-7.1.1/libavfilter/vf_nnedi.c:382:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
ffmpeg-7.1.1/libavfilter/vf_nnedi.c:538:12: enter_function: entry to ‘filter_slice’
ffmpeg-7.1.1/libavfilter/vf_nnedi.c:551:21: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavfilter/vf_nnedi.c:552:19: branch_true: ...to here
ffmpeg-7.1.1/libavfilter/vf_nnedi.c:572:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavfilter/vf_nnedi.c:580:9: branch_false: ...to here
ffmpeg-7.1.1/libavfilter/vf_nnedi.c:634:25: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavfilter/vf_nnedi.c:635:17: branch_true: ...to here
ffmpeg-7.1.1/libavfilter/vf_nnedi.c:640:13: call_function: calling ‘predictor’ from ‘filter_slice’
#  380|   
#  381|       for (int i = 0; i < n; i++) {
#  382|->         vsum += softmax[i] * elliott(el[i]);
#  383|           wsum += softmax[i];
#  384|       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def223]
ffmpeg-7.1.1/libavfilter/vf_palettegen.c:488:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
ffmpeg-7.1.1/libavfilter/vf_palettegen.c:480:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavfilter/vf_palettegen.c:483:15: branch_false: ...to here
ffmpeg-7.1.1/libavfilter/vf_palettegen.c:483:15: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavfilter/vf_palettegen.c:488:9: danger: dereference of NULL ‘get_palette_frame(ctx)’
#  486|   
#  487|           out = get_palette_frame(ctx);
#  488|->         out->pts = in->pts;
#  489|           av_frame_free(&in);
#  490|           ret = ff_filter_frame(ctx->outputs[0], out);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def224]
ffmpeg-7.1.1/libavfilter/vf_pullup.c:512:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘f’
ffmpeg-7.1.1/libavfilter/vf_pullup.c:652:12: enter_function: entry to ‘filter_frame’
ffmpeg-7.1.1/libavfilter/vf_pullup.c:662:9: call_function: calling ‘pullup_get_buffer’ from ‘filter_frame’
ffmpeg-7.1.1/libavfilter/vf_pullup.c:662:9: return_function: returning to ‘filter_frame’ from ‘pullup_get_buffer’
ffmpeg-7.1.1/libavfilter/vf_pullup.c:663:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavfilter/vf_pullup.c:664:9: branch_true: ...to here
ffmpeg-7.1.1/libavfilter/vf_pullup.c:666:9: call_function: calling ‘pullup_release_frame’ from ‘filter_frame’
#  510|       int i;
#  511|   
#  512|->     for (i = 0; i < f->length; i++)
#  513|           pullup_release_buffer(f->ifields[i], f->parity ^ (i & 1));
#  514|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def225]
ffmpeg-7.1.1/libavfilter/vf_scale_vulkan.c:148:5: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘sampler_mode’
ffmpeg-7.1.1/libavfilter/vf_scale_vulkan.c:141:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavfilter/vf_scale_vulkan.c:146:5: branch_false: ...to here
ffmpeg-7.1.1/libavfilter/vf_scale_vulkan.c:147:5: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavfilter/vf_scale_vulkan.c:148:5: branch_false: ...to here
ffmpeg-7.1.1/libavfilter/vf_scale_vulkan.c:148:5: danger: use of uninitialized value ‘sampler_mode’ here
#  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): [#def226]
ffmpeg-7.1.1/libavfilter/vf_tpad.c:186:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
ffmpeg-7.1.1/libavfilter/vf_tpad.c:94:14: release_memory: ‘frame’ is NULL
ffmpeg-7.1.1/libavfilter/vf_tpad.c:94:14: release_memory: ‘frame’ is NULL
ffmpeg-7.1.1/libavfilter/vf_tpad.c:94:14: release_memory: ‘frame’ is NULL
ffmpeg-7.1.1/libavfilter/vf_tpad.c:94:14: release_memory: ‘frame’ is NULL
ffmpeg-7.1.1/libavfilter/vf_tpad.c:94:14: release_memory: ‘frame’ is NULL
ffmpeg-7.1.1/libavfilter/vf_tpad.c:98:5: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavfilter/vf_tpad.c:100:10: branch_false: ...to here
ffmpeg-7.1.1/libavfilter/vf_tpad.c:163:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavfilter/vf_tpad.c:164:14: branch_true: ...to here
ffmpeg-7.1.1/libavfilter/vf_tpad.c:164:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavfilter/vf_tpad.c:168:13: branch_false: ...to here
ffmpeg-7.1.1/libavfilter/vf_tpad.c:168:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavfilter/vf_tpad.c:175:19: branch_false: ...to here
ffmpeg-7.1.1/libavfilter/vf_tpad.c:175:19: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavfilter/vf_tpad.c:185:20: branch_false: ...to here
ffmpeg-7.1.1/libavfilter/vf_tpad.c:186:14: release_memory: ‘frame’ is NULL
ffmpeg-7.1.1/libavfilter/vf_tpad.c:186:14: release_memory: ‘frame’ is NULL
ffmpeg-7.1.1/libavfilter/vf_tpad.c:186:9: danger: dereference of NULL ‘frame’
#  184|           }
#  185|           duration = av_rescale_q(1, av_inv_q(l->frame_rate), outlink->time_base);
#  186|->         frame->pts = s->pts;
#  187|           frame->duration = duration;
#  188|           s->pts += duration;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def227]
ffmpeg-7.1.1/libavfilter/vf_unsharp.c:172:1: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘src2’
ffmpeg-7.1.1/libavfilter/vf_unsharp.c:172:1: branch_false: following ‘false’ branch (when ‘amount != 0’)...
 branch_false: ...to here
ffmpeg-7.1.1/libavfilter/vf_unsharp.c:172:1: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavfilter/vf_unsharp.c:172:1: branch_true: ...to here
ffmpeg-7.1.1/libavfilter/vf_unsharp.c:172:1: branch_false: following ‘false’ branch (when ‘y >= height’)...
ffmpeg-7.1.1/libavfilter/vf_unsharp.c:172:1: branch_false: ...to here
ffmpeg-7.1.1/libavfilter/vf_unsharp.c:172:1: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavfilter/vf_unsharp.c:172:1: danger: dereference of NULL ‘src2’
#  170|       return 0;                                                                                         \
#  171|   }
#  172|-> DEF_UNSHARP_SLICE_FUNC(unsharp_slice, 16)
#  173|   DEF_UNSHARP_SLICE_FUNC(unsharp_slice, 8)
#  174|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def228]
ffmpeg-7.1.1/libavfilter/vf_unsharp.c:173:1: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘src2’
ffmpeg-7.1.1/libavfilter/vf_unsharp.c:173:1: branch_false: following ‘false’ branch (when ‘amount != 0’)...
 branch_false: ...to here
ffmpeg-7.1.1/libavfilter/vf_unsharp.c:173:1: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavfilter/vf_unsharp.c:173:1: branch_true: ...to here
ffmpeg-7.1.1/libavfilter/vf_unsharp.c:173:1: branch_false: following ‘false’ branch (when ‘y >= height’)...
ffmpeg-7.1.1/libavfilter/vf_unsharp.c:173:1: branch_false: ...to here
ffmpeg-7.1.1/libavfilter/vf_unsharp.c:173:1: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavfilter/vf_unsharp.c:173:1: danger: dereference of NULL ‘src2’
#  171|   }
#  172|   DEF_UNSHARP_SLICE_FUNC(unsharp_slice, 16)
#  173|-> DEF_UNSHARP_SLICE_FUNC(unsharp_slice, 8)
#  174|   
#  175|   static int apply_unsharp(AVFilterContext *ctx, AVFrame *in, AVFrame *out)

Error: GCC_ANALYZER_WARNING: [#def229]
ffmpeg-7.1.1/libavfilter/vf_unsharp_opencl.c:136:18: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
ffmpeg-7.1.1/libavfilter/vf_unsharp_opencl.c:122:17: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavfilter/vf_unsharp_opencl.c:123:12: branch_true: ...to here
ffmpeg-7.1.1/libavfilter/vf_unsharp_opencl.c:123:12: branch_true: following ‘true’ branch (when ‘p == 0’)...
ffmpeg-7.1.1/libavfilter/vf_unsharp_opencl.c:124:13: branch_true: ...to here
ffmpeg-7.1.1/libavfilter/vf_unsharp_opencl.c:137:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
ffmpeg-7.1.1/libavfilter/vf_unsharp_opencl.c:158:21: branch_false: following ‘false’ branch (when ‘y >= size_y’)...
ffmpeg-7.1.1/libavfilter/vf_unsharp_opencl.c:165:13: branch_false: ...to here
ffmpeg-7.1.1/libavfilter/vf_unsharp_opencl.c:171:13: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavfilter/vf_unsharp_opencl.c:173:13: branch_false: ...to here
ffmpeg-7.1.1/libavfilter/vf_unsharp_opencl.c:122:17: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavfilter/vf_unsharp_opencl.c:123:12: branch_true: ...to here
ffmpeg-7.1.1/libavfilter/vf_unsharp_opencl.c:136:18: danger: at least one operand of the size argument is of a floating-point type
#  134|           matrix_bytes = size_x * size_y * sizeof(float);
#  135|   
#  136|->         matrix = av_malloc(matrix_bytes);
#  137|           if (!matrix) {
#  138|               err = AVERROR(ENOMEM);

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

Error: GCC_ANALYZER_WARNING (CWE-457): [#def231]
ffmpeg-7.1.1/libavfilter/vsrc_gradients.c:248:12: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘od_s_q’
#  246|   
#  247|       // Normalize and clamp range.
#  248|->     return av_clipf(op_x_od / od_s_q, 0.f, 1.f);
#  249|   }
#  250|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def232]
ffmpeg-7.1.1/libavfilter/vsrc_gradients.c:248:12: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘op_x_od’
#  246|   
#  247|       // Normalize and clamp range.
#  248|->     return av_clipf(op_x_od / od_s_q, 0.f, 1.f);
#  249|   }
#  250|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def233]
ffmpeg-7.1.1/libavformat/asfdec_f.c:944:52: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘d’
ffmpeg-7.1.1/libavformat/asfdec_f.c:889:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavformat/asfdec_f.c:930:13: branch_false: ...to here
ffmpeg-7.1.1/libavformat/asfdec_f.c:931:12: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavformat/asfdec_f.c:933:18: branch_true: ...to here
ffmpeg-7.1.1/libavformat/asfdec_f.c:933:16: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavformat/asfdec_f.c:940:16: branch_false: ...to here
ffmpeg-7.1.1/libavformat/asfdec_f.c:943:16: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavformat/asfdec_f.c:944:39: branch_true: ...to here
ffmpeg-7.1.1/libavformat/asfdec_f.c:944:52: danger: use of uninitialized value ‘d’ here
#  942|   
#  943|               if (!asf->uses_std_ecc)
#  944|->                 asf->uses_std_ecc =  (c == 0x82 && !d && !e) ? 1 : -1;
#  945|   
#  946|               c = avio_r8(pb);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def234]
ffmpeg-7.1.1/libavformat/avio.c:184:17: warning[-Wanalyzer-null-argument]: use of NULL ‘key’ where non-null expected
ffmpeg-7.1.1/libavformat/avio.c:683:5: enter_function: entry to ‘ffurl_move’
ffmpeg-7.1.1/libavformat/avio.c:686:15: call_function: calling ‘ffurl_alloc’ from ‘ffurl_move’
#argument 1 of ‘__builtin_strlen’ must be non-null
#  182|                       goto fail;
#  183|                   }
#  184|->                 memmove(start, key+1, strlen(key));
#  185|               }
#  186|           }

Error: CPPCHECK_WARNING (CWE-457): [#def235]
ffmpeg-7.1.1/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): [#def236]
ffmpeg-7.1.1/libavformat/crypto.c:317:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘res’
ffmpeg-7.1.1/libavformat/crypto.c:238:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavformat/crypto.c:246:5: branch_false: ...to here
ffmpeg-7.1.1/libavformat/crypto.c:293:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavformat/crypto.c:301:15: branch_false: ...to here
ffmpeg-7.1.1/libavformat/crypto.c:301:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavformat/crypto.c:303:19: branch_true: ...to here
ffmpeg-7.1.1/libavformat/crypto.c:306:16: branch_false: following ‘false’ branch (when ‘len <= 0’)...
ffmpeg-7.1.1/libavformat/crypto.c:315:12: branch_false: ...to here
ffmpeg-7.1.1/libavformat/crypto.c:315:12: branch_true: following ‘true’ branch (when ‘len != 0’)...
ffmpeg-7.1.1/libavformat/crypto.c:316:18: branch_true: ...to here
ffmpeg-7.1.1/libavformat/crypto.c:317:13: danger: use of uninitialized value ‘res’ here
#  315|           if (len != 0) {
#  316|               char errbuf[100] = "unknown error";
#  317|->             av_strerror(res, errbuf, sizeof(errbuf));
#  318|               av_log(h, AV_LOG_ERROR,
#  319|                   "Crypto: discard read did not get all the bytes (%d remain) - read returned (%d)-%s\n",

Error: COMPILER_WARNING: [#def237]
ffmpeg-7.1.1/libavformat/dashenc.c: scope_hint: In function ‘write_hls_media_playlist’
ffmpeg-7.1.1/libavformat/dashenc.c:488:49: warning[-Wformat-truncation=]: ‘media_’ directive output may be truncated writing 6 bytes into a region of size between 1 and 1024
#  488 |         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 ());
#      |                                    ~~~~~~~~~~~~~~~~~
#  486|                                     const char *base_url, int id) {
#  487|       if (base_url)
#  488|->         snprintf(playlist_name, string_size, "%smedia_%d.m3u8", base_url, id);
#  489|       else
#  490|           snprintf(playlist_name, string_size, "media_%d.m3u8", id);

Error: COMPILER_WARNING: [#def238]
ffmpeg-7.1.1/libavformat/dashenc.c: scope_hint: In function ‘flush_init_segment’
ffmpeg-7.1.1/libavformat/dashenc.c:594:49: warning[-Wformat-truncation=]: ‘%s’ directive output may be truncated writing up to 1023 bytes into a region of size between 1 and 1024
#  594 |         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 ());
#      |                                    ~~~~~~~~~~~~~~~~~
#  592|       if (!c->single_file) {
#  593|           char filename[1024];
#  594|->         snprintf(filename, sizeof(filename), "%s%s", c->dirname, os->initfile);
#  595|           dashenc_io_close(s, &os->out, filename);
#  596|       }

Error: COMPILER_WARNING: [#def239]
ffmpeg-7.1.1/libavformat/dashenc.c: scope_hint: In function ‘dash_init’
ffmpeg-7.1.1/libavformat/dashenc.c:1577:65: warning[-Wformat-truncation=]: ‘-stream’ directive output may be truncated writing 7 bytes into a region of size between 1 and 1024
# 1577 |                 snprintf(os->initfile, sizeof(os->initfile), "%s-stream%d.%s", basename, i, os->format_name);
#      |                                                                 ^~~~~~~
ffmpeg-7.1.1/libavformat/dashenc.c:1577:62: note: directive argument in the range [0, 2147483647]
# 1577 |                 snprintf(os->initfile, sizeof(os->initfile), "%s-stream%d.%s", basename, i, os->format_name);
#      |                                                              ^~~~~~~~~~~~~~~~
/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 ());
#      |                                    ~~~~~~~~~~~~~~~~~
# 1575|                   ff_dash_fill_tmpl_params(os->initfile, sizeof(os->initfile), os->single_file_name, i, 0, os->bit_rate, 0);
# 1576|               else
# 1577|->                 snprintf(os->initfile, sizeof(os->initfile), "%s-stream%d.%s", basename, i, os->format_name);
# 1578|           } else {
# 1579|               ff_dash_fill_tmpl_params(os->initfile, sizeof(os->initfile), os->init_seg_name, i, 0, os->bit_rate, 0);

Error: COMPILER_WARNING: [#def240]
ffmpeg-7.1.1/libavformat/dashenc.c: scope_hint: In function ‘dash_init’
ffmpeg-7.1.1/libavformat/dashenc.c:1581:49: warning[-Wformat-truncation=]: ‘%s’ directive output may be truncated writing up to 1023 bytes into a region of size between 1 and 1024
# 1581 |         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 ());
#      |                                    ~~~~~~~~~~~~~~~~~
# 1579|               ff_dash_fill_tmpl_params(os->initfile, sizeof(os->initfile), os->init_seg_name, i, 0, os->bit_rate, 0);
# 1580|           }
# 1581|->         snprintf(filename, sizeof(filename), "%s%s", c->dirname, os->initfile);
# 1582|           set_http_options(&opts, c);
# 1583|           if (!c->single_file) {

Error: COMPILER_WARNING: [#def241]
ffmpeg-7.1.1/libavformat/dashenc.c: scope_hint: In function ‘dash_flush’
ffmpeg-7.1.1/libavformat/dashenc.c:1957:63: warning[-Wformat-truncation=]: ‘%s’ directive output may be truncated writing up to 1023 bytes into a region of size between 1 and 1024
# 1957 |             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 ());
#      |                                    ~~~~~~~~~~~~~~~~~
# 1955|   
# 1956|           if (c->single_file)
# 1957|->             snprintf(os->full_path, sizeof(os->full_path), "%s%s", c->dirname, os->initfile);
# 1958|   
# 1959|           ret = flush_dynbuf(c, os, &range_length);

Error: COMPILER_WARNING: [#def242]
ffmpeg-7.1.1/libavformat/dashenc.c: scope_hint: In function ‘dash_write_packet’
ffmpeg-7.1.1/libavformat/dashenc.c:2254:59: warning[-Wformat-truncation=]: ‘%s’ directive output may be truncated writing up to 1023 bytes into a region of size between 1 and 1024
# 2254 |         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 ());
#      |                                    ~~~~~~~~~~~~~~~~~
# 2252|                                    os->media_seg_name, pkt->stream_index,
# 2253|                                    os->segment_index, os->bit_rate, os->start_pts);
# 2254|->         snprintf(os->full_path, sizeof(os->full_path), "%s%s", c->dirname,
# 2255|                    os->filename);
# 2256|           snprintf(os->temp_path, sizeof(os->temp_path),

Error: GCC_ANALYZER_WARNING (CWE-476): [#def243]
ffmpeg-7.1.1/libavformat/demux.c:446:45: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pkt’
ffmpeg-7.1.1/libavformat/demux.c:2516:5: enter_function: entry to ‘avformat_find_stream_info’
ffmpeg-7.1.1/libavformat/demux.c:2619:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
ffmpeg-7.1.1/libavformat/demux.c:2670:12: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavformat/demux.c:2671:22: branch_true: ...to here
ffmpeg-7.1.1/libavformat/demux.c:2684:12: branch_false: following ‘false’ branch (when ‘read_size < probesize’)...
ffmpeg-7.1.1/libavformat/demux.c:2704:15: branch_false: ...to here
ffmpeg-7.1.1/libavformat/demux.c:2704:15: call_function: calling ‘read_frame_internal’ from ‘avformat_find_stream_info’
#  444|                   || sti->probe_packets <= 0;
#  445|   
#  446|->         if (end || av_log2(pd->buf_size) != av_log2(pd->buf_size - pkt->size)) {
#  447|               int score = set_codec_from_probe_data(s, st, pd);
#  448|               if (    (st->codecpar->codec_id != AV_CODEC_ID_NONE && score > AVPROBE_SCORE_STREAM_RETRY)

Error: GCC_ANALYZER_WARNING (CWE-457): [#def244]
ffmpeg-7.1.1/libavformat/dtshddec.c:138:5: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘data_start’
ffmpeg-7.1.1/libavformat/dtshddec.c:66:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavformat/dtshddec.c:68:5: branch_false: ...to here
ffmpeg-7.1.1/libavformat/dtshddec.c:135:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavformat/dtshddec.c:138:5: branch_false: ...to here
ffmpeg-7.1.1/libavformat/dtshddec.c:138:5: danger: use of uninitialized value ‘data_start’ here
#  136|           return AVERROR_EOF;
#  137|   
#  138|->     avio_seek(pb, data_start, SEEK_SET);
#  139|   
#  140|   break_loop:

Error: GCC_ANALYZER_WARNING (CWE-457): [#def245]
ffmpeg-7.1.1/libavformat/electronicarts.c:672:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘num_samples’
ffmpeg-7.1.1/libavformat/electronicarts.c:600:12: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavformat/electronicarts.c:601:22: branch_true: ...to here
ffmpeg-7.1.1/libavformat/electronicarts.c:602:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavformat/electronicarts.c:604:22: branch_false: ...to here
ffmpeg-7.1.1/libavformat/electronicarts.c:605:12: branch_false: following ‘false’ branch (when ‘chunk_size > 7’)...
ffmpeg-7.1.1/libavformat/electronicarts.c:607:9: branch_false: ...to here
ffmpeg-7.1.1/libavformat/electronicarts.c:624:23: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavformat/electronicarts.c:631:23: branch_false: ...to here
ffmpeg-7.1.1/libavformat/electronicarts.c:638:16: branch_false: following ‘false’ branch (when ‘partial_packet == 0’)...
ffmpeg-7.1.1/libavformat/electronicarts.c:644:16: branch_false: ...to here
ffmpeg-7.1.1/libavformat/electronicarts.c:648:16: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavformat/electronicarts.c:650:33: branch_false: ...to here
ffmpeg-7.1.1/libavformat/electronicarts.c:672:17: danger: use of uninitialized value ‘num_samples’ here
#  670|               case AV_CODEC_ID_PCM_S16LE_PLANAR:
#  671|               case AV_CODEC_ID_MP3:
#  672|->                 pkt->duration = num_samples;
#  673|                   break;
#  674|               case AV_CODEC_ID_ADPCM_PSX:

Error: GCC_ANALYZER_WARNING (CWE-401): [#def246]
ffmpeg-7.1.1/libavformat/file.c:330:8: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(*h.filename)’
ffmpeg-7.1.1/libavformat/file.c:329:14: acquire_memory: allocated here
ffmpeg-7.1.1/libavformat/file.c:330:8: danger: ‘opendir(*h.filename)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  328|   
#  329|       c->dir = opendir(h->filename);
#  330|->     if (!c->dir)
#  331|           return AVERROR(errno);
#  332|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def247]
ffmpeg-7.1.1/libavformat/flvenc.c:678:29: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘data[1]’
ffmpeg-7.1.1/libavformat/flvenc.c:855:12: enter_function: entry to ‘flv_write_header’
ffmpeg-7.1.1/libavformat/flvenc.c:884:17: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavformat/flvenc.c:885:35: branch_true: ...to here
ffmpeg-7.1.1/libavformat/flvenc.c:885:9: call_function: calling ‘flv_write_codec_header’ from ‘flv_write_header’
#  676|   
#  677|                   avio_w8(pb, data[0]);
#  678|->                 avio_w8(pb, data[1]);
#  679|   
#  680|                   av_log(s, AV_LOG_WARNING, "AAC sequence header: %02x %02x.\n",

Error: GCC_ANALYZER_WARNING (CWE-457): [#def248]
ffmpeg-7.1.1/libavformat/gxfenc.c:991:12: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘field_nb[1]’
ffmpeg-7.1.1/libavformat/gxfenc.c:980:17: branch_true: following ‘true’ branch (when ‘i != 2’)...
ffmpeg-7.1.1/libavformat/gxfenc.c:981:24: branch_true: ...to here
ffmpeg-7.1.1/libavformat/gxfenc.c:983:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavformat/gxfenc.c:988:27: branch_false: ...to here
ffmpeg-7.1.1/libavformat/gxfenc.c:980:17: branch_false: following ‘false’ branch (when ‘i == 2’)...
ffmpeg-7.1.1/libavformat/gxfenc.c:991:12: branch_false: ...to here
ffmpeg-7.1.1/libavformat/gxfenc.c:991:12: danger: use of uninitialized value ‘field_nb[1]’ here
#  989|       }
#  990|   
#  991|->     return field_nb[1] > field_nb[0] ||
#  992|           (field_nb[1] == field_nb[0] && sc[1]->order > sc[0]->order);
#  993|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def249]
ffmpeg-7.1.1/libavformat/iamf_writer.c:606:34: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘param_def’
ffmpeg-7.1.1/libavformat/iamf_writer.c:882:5: enter_function: entry to ‘ff_iamf_write_descriptors’
ffmpeg-7.1.1/libavformat/iamf_writer.c:900:21: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavformat/iamf_writer.c:901:46: branch_true: ...to here
ffmpeg-7.1.1/libavformat/iamf_writer.c:901:15: call_function: calling ‘iamf_write_audio_element’ from ‘ff_iamf_write_descriptors’
#  604|                               AVIOContext *dyn_bc, void *log_ctx)
#  605|   {
#  606|->     const AVIAMFParamDefinition *param = param_def->param;
#  607|   
#  608|       ffio_write_leb(dyn_bc, param->parameter_id);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def250]
ffmpeg-7.1.1/libavformat/iff.c:886:15: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘data_size’
ffmpeg-7.1.1/libavformat/iff.c:846:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavformat/iff.c:848:9: branch_false: ...to here
ffmpeg-7.1.1/libavformat/iff.c:851:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavformat/iff.c:861:15: branch_false: ...to here
ffmpeg-7.1.1/libavformat/iff.c:861:15: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavformat/iff.c:866:16: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavformat/iff.c:886:15: branch_false: ...to here
ffmpeg-7.1.1/libavformat/iff.c:886:15: danger: use of uninitialized value ‘data_size’ here
#  884|               }
#  885|           }
#  886|->         ret = av_get_packet(pb, pkt, data_size);
#  887|           pkt->pos = orig_pos;
#  888|           pkt->duration = get_anim_duration(pkt->data, pkt->size);

Error: COMPILER_WARNING: [#def251]
ffmpeg-7.1.1/libavformat/img2enc.c: scope_hint: In function ‘write_packet’
ffmpeg-7.1.1/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): [#def252]
ffmpeg-7.1.1/libavformat/ipmovie.c:145:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pkt’
ffmpeg-7.1.1/libavformat/ipmovie.c:606:12: enter_function: entry to ‘ipmovie_read_header’
ffmpeg-7.1.1/libavformat/ipmovie.c:617:8: branch_false: following ‘false’ branch...
 branch_false: ...to here
ffmpeg-7.1.1/libavformat/ipmovie.c:629:17: branch_true: following ‘true’ branch (when ‘i != 256’)...
ffmpeg-7.1.1/libavformat/ipmovie.c:630:9: branch_true: ...to here
ffmpeg-7.1.1/libavformat/ipmovie.c:633:9: call_function: calling ‘process_ipmovie_chunk’ from ‘ipmovie_read_header’
#  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): [#def253]
ffmpeg-7.1.1/libavformat/ipmovie.c:184:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pkt’
ffmpeg-7.1.1/libavformat/ipmovie.c:606:12: enter_function: entry to ‘ipmovie_read_header’
ffmpeg-7.1.1/libavformat/ipmovie.c:617:8: branch_false: following ‘false’ branch...
 branch_false: ...to here
ffmpeg-7.1.1/libavformat/ipmovie.c:629:17: branch_true: following ‘true’ branch (when ‘i != 256’)...
ffmpeg-7.1.1/libavformat/ipmovie.c:630:9: branch_true: ...to here
ffmpeg-7.1.1/libavformat/ipmovie.c:633:9: call_function: calling ‘process_ipmovie_chunk’ from ‘ipmovie_read_header’
#  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): [#def254]
ffmpeg-7.1.1/libavformat/libsmbclient.c: scope_hint: In function ‘libsmbc_connect’
ffmpeg-7.1.1/libavformat/libsmbclient.c:72:5: warning[-Wdeprecated-declarations]: ‘smbc_init’ is deprecated
#   72 |     if (smbc_init(NULL, 0) < 0) {
#      |     ^~
ffmpeg-7.1.1/libavformat/libsmbclient.c:21: included_from: Included from here.
/usr/include/samba-4.0/libsmbclient.h:1293:5: note: declared here
# 1293 | int smbc_init(smbc_get_auth_data_fn fn, int debug);
#      |     ^~~~~~~~~
#   70|           smbc_setWorkgroup(libsmbc->ctx, libsmbc->workgroup);
#   71|   
#   72|->     if (smbc_init(NULL, 0) < 0) {
#   73|           int ret = AVERROR(errno);
#   74|           av_log(h, AV_LOG_ERROR, "Initialization failed: %s\n", strerror(errno));

Error: COMPILER_WARNING (CWE-477): [#def255]
ffmpeg-7.1.1/libavformat/libsmbclient.c:72:5: warning[-Wdeprecated-declarations]: ‘smbc_init’ is deprecated
#   70|           smbc_setWorkgroup(libsmbc->ctx, libsmbc->workgroup);
#   71|   
#   72|->     if (smbc_init(NULL, 0) < 0) {
#   73|           int ret = AVERROR(errno);
#   74|           av_log(h, AV_LOG_ERROR, "Initialization failed: %s\n", strerror(errno));

Error: COMPILER_WARNING: [#def256]
ffmpeg-7.1.1/libavformat/matroskaenc.c: scope_hint: In function ‘mkv_write_trailer’
ffmpeg-7.1.1/libavformat/matroskaenc.c:3341: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
# 3341 |                 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 ());
#      |                                    ~~~~~~~~~~~~~~~~~
# 3339|                   put_ebml_string(tags_bc, MATROSKA_ID_TAGNAME, "DURATION");
# 3340|   
# 3341|->                 snprintf(duration_string, sizeof(duration_string), "%02d:%02d:%012.9f",
# 3342|                            (int) duration_sec / 3600, ((int) duration_sec / 60) % 60,
# 3343|                            fmod(duration_sec, 60));

Error: GCC_ANALYZER_WARNING (CWE-457): [#def257]
ffmpeg-7.1.1/libavformat/mccdec.c:182:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘out[7]’
ffmpeg-7.1.1/libavformat/mccdec.c:105:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavformat/mccdec.c:107:5: branch_false: ...to here
ffmpeg-7.1.1/libavformat/mccdec.c:111:12: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavformat/mccdec.c:117:9: branch_true: ...to here
ffmpeg-7.1.1/libavformat/mccdec.c:118:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavformat/mccdec.c:120:14: branch_false: ...to here
ffmpeg-7.1.1/libavformat/mccdec.c:120:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavformat/mccdec.c:122:14: branch_false: ...to here
ffmpeg-7.1.1/libavformat/mccdec.c:122:12: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavformat/mccdec.c:124:19: branch_true: ...to here
ffmpeg-7.1.1/libavformat/mccdec.c:127:16: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavformat/mccdec.c:128:23: branch_true: ...to here
ffmpeg-7.1.1/libavformat/mccdec.c:135:16: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavformat/mccdec.c:111:12: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavformat/mccdec.c:117:9: branch_true: ...to here
ffmpeg-7.1.1/libavformat/mccdec.c:118:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavformat/mccdec.c:120:14: branch_false: ...to here
ffmpeg-7.1.1/libavformat/mccdec.c:120:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavformat/mccdec.c:122:14: branch_false: ...to here
ffmpeg-7.1.1/libavformat/mccdec.c:142:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavformat/mccdec.c:182:13: danger: use of uninitialized value ‘out[7]’ here
#  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): [#def258]
ffmpeg-7.1.1/libavformat/moflex.c:232:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘codec_type’
ffmpeg-7.1.1/libavformat/moflex.c:250:12: enter_function: entry to ‘moflex_read_header’
ffmpeg-7.1.1/libavformat/moflex.c:254:11: call_function: calling ‘moflex_read_sync’ from ‘moflex_read_header’
#  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-457): [#def259]
ffmpeg-7.1.1/libavformat/mov.c:1691:22: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘frag_time’
ffmpeg-7.1.1/libavformat/mov.c:10783:12: enter_function: entry to ‘mov_seek_fragment’
ffmpeg-7.1.1/libavformat/mov.c:10788:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavformat/mov.c:10791:13: branch_false: ...to here
ffmpeg-7.1.1/libavformat/mov.c:10791:13: call_function: calling ‘search_frag_timestamp’ from ‘mov_seek_fragment’
# 1689|               m++;
# 1690|   
# 1691|->         if (m < b && frag_time <= timestamp)
# 1692|               a = m;
# 1693|           else

Error: GCC_ANALYZER_WARNING (CWE-457): [#def260]
ffmpeg-7.1.1/libavformat/mov.c:5898:43: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘dts’
ffmpeg-7.1.1/libavformat/mov.c:5648:12: enter_function: entry to ‘mov_read_trun’
ffmpeg-7.1.1/libavformat/mov.c:5667:8: branch_false: following ‘false’ branch...
 branch_false: ...to here
ffmpeg-7.1.1/libavformat/mov.c:5672:17: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavformat/mov.c:5673:14: branch_true: ...to here
ffmpeg-7.1.1/libavformat/mov.c:5680:8: branch_false: following ‘false’ branch (when ‘st’ is non-NULL)...
ffmpeg-7.1.1/libavformat/mov.c:5684:5: branch_false: ...to here
ffmpeg-7.1.1/libavformat/mov.c:5703:5: branch_false: following ‘false’ branch (when ‘index_entry_pos <= index_entry_pos’)...
ffmpeg-7.1.1/libavformat/mov.c:5705:5: branch_false: ...to here
ffmpeg-7.1.1/libavformat/mov.c:5710:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavformat/mov.c:5712:8: branch_false: ...to here
ffmpeg-7.1.1/libavformat/mov.c:5715:24: call_function: calling ‘get_current_frag_stream_info’ from ‘mov_read_trun’
ffmpeg-7.1.1/libavformat/mov.c:5715:24: return_function: returning to ‘mov_read_trun’ from ‘get_current_frag_stream_info’
ffmpeg-7.1.1/libavformat/mov.c:5716:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavformat/mov.c:5717:13: branch_true: ...to here
ffmpeg-7.1.1/libavformat/mov.c:5717:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavformat/mov.c:5719:20: branch_false: ...to here
ffmpeg-7.1.1/libavformat/mov.c:5719:19: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavformat/mov.c:5720:13: branch_true: ...to here
ffmpeg-7.1.1/libavformat/mov.c:5719:20: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavformat/mov.c:5722:20: branch_true: ...to here
ffmpeg-7.1.1/libavformat/mov.c:5772:8: branch_false: following ‘false’ branch (when ‘entries != 0’)...
ffmpeg-7.1.1/libavformat/mov.c:5775:23: branch_false: ...to here
ffmpeg-7.1.1/libavformat/mov.c:5779:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavformat/mov.c:5781:5: branch_false: ...to here
ffmpeg-7.1.1/libavformat/mov.c:5787:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavformat/mov.c:5789:5: branch_false: ...to here
ffmpeg-7.1.1/libavformat/mov.c:5897:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavformat/mov.c:5898:49: branch_true: ...to here
ffmpeg-7.1.1/libavformat/mov.c:5898:43: danger: use of uninitialized value ‘dts’ here
# 5896|       }
# 5897|       if (frag_stream_info)
# 5898|->         frag_stream_info->next_trun_dts = dts + sc->time_offset;
# 5899|       if (i < entries) {
# 5900|           // EOF found before reading all entries.  Fix the hole this would

Error: GCC_ANALYZER_WARNING (CWE-457): [#def261]
ffmpeg-7.1.1/libavformat/mov.c:7226:15: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘st’
ffmpeg-7.1.1/libavformat/mov.c:7209:12: enter_function: entry to ‘get_current_encryption_info’
ffmpeg-7.1.1/libavformat/mov.c:7215:24: call_function: calling ‘get_current_frag_stream_info’ from ‘get_current_encryption_info’
ffmpeg-7.1.1/libavformat/mov.c:7215:24: return_function: returning to ‘get_current_encryption_info’ from ‘get_current_frag_stream_info’
ffmpeg-7.1.1/libavformat/mov.c:7216:8: branch_true: following ‘true’ branch...
 branch_true: ...to here
ffmpeg-7.1.1/libavformat/mov.c:7224:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavformat/mov.c:7226:15: branch_false: ...to here
ffmpeg-7.1.1/libavformat/mov.c:7226:15: danger: use of uninitialized value ‘st’ here
# 7224|           if (i == c->fc->nb_streams)
# 7225|               return 0;
# 7226|->         *sc = st->priv_data;
# 7227|   
# 7228|           if (!frag_stream_info->encryption_index) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def262]
ffmpeg-7.1.1/libavformat/mov.c:7279:39: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘*sample’
ffmpeg-7.1.1/libavformat/mov.c:7266:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavformat/mov.c:7271:9: branch_false: ...to here
ffmpeg-7.1.1/libavformat/mov.c:7271:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavformat/mov.c:7276:9: release_memory: ‘*sample’ is NULL
ffmpeg-7.1.1/libavformat/mov.c:7278:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavformat/mov.c:7279:20: branch_true: ...to here
ffmpeg-7.1.1/libavformat/mov.c:7279:39: release_memory: ‘*sample’ is NULL
ffmpeg-7.1.1/libavformat/mov.c:7279:39: danger: dereference of NULL ‘*sample’
# 7277|   
# 7278|       if (sc->cenc.per_sample_iv_size != 0) {
# 7279|->         if ((ret = ffio_read_size(pb, (*sample)->iv, sc->cenc.per_sample_iv_size)) < 0) {
# 7280|               av_log(c->fc, AV_LOG_ERROR, "failed to read the initialization vector\n");
# 7281|               av_encryption_info_free(*sample);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def263]
ffmpeg-7.1.1/libavformat/nal.c:97:42: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘list’
ffmpeg-7.1.1/libavformat/nal.c:110:5: enter_function: entry to ‘ff_nal_parse_units’
ffmpeg-7.1.1/libavformat/nal.c:112:12: call_function: calling ‘nal_parse_units’ from ‘ff_nal_parse_units’
#   95|           } else {
#   96|               NALU *tmp = av_fast_realloc(list->nalus, &list->nalus_array_size,
#   97|->                                         (list->nb_nalus + 1) * sizeof(*list->nalus));
#   98|               if (!tmp)
#   99|                   return AVERROR(ENOMEM);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def264]
ffmpeg-7.1.1/libavformat/rawvideodec.c:82:16: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pix_fmt’
ffmpeg-7.1.1/libavformat/rawvideodec.c:51:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavformat/rawvideodec.c:54:5: branch_false: ...to here
ffmpeg-7.1.1/libavformat/rawvideodec.c:70:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavformat/rawvideodec.c:73:5: branch_false: ...to here
ffmpeg-7.1.1/libavformat/rawvideodec.c:76:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavformat/rawvideodec.c:82:16: branch_true: ...to here
ffmpeg-7.1.1/libavformat/rawvideodec.c:82:16: danger: use of uninitialized value ‘pix_fmt’ here
#   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): [#def265]
ffmpeg-7.1.1/libavformat/rawvideodec.c:107:23: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pix_fmt’
ffmpeg-7.1.1/libavformat/rawvideodec.c:51:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavformat/rawvideodec.c:54:5: branch_false: ...to here
ffmpeg-7.1.1/libavformat/rawvideodec.c:70:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavformat/rawvideodec.c:73:5: branch_false: ...to here
ffmpeg-7.1.1/libavformat/rawvideodec.c:76:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavformat/rawvideodec.c:100:15: branch_false: ...to here
ffmpeg-7.1.1/libavformat/rawvideodec.c:100:15: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavformat/rawvideodec.c:107:23: danger: use of uninitialized value ‘pix_fmt’ here
#  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): [#def266]
ffmpeg-7.1.1/libavformat/rdt.c:202:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘buf’
ffmpeg-7.1.1/libavformat/rdt.c:339:1: enter_function: entry to ‘ff_rdt_parse_packet’
ffmpeg-7.1.1/libavformat/rdt.c:342:20: branch_false: following ‘false’ branch (when ‘bufptr’ is NULL)...
ffmpeg-7.1.1/libavformat/rdt.c:347:10: branch_false: ...to here
ffmpeg-7.1.1/libavformat/rdt.c:347:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavformat/rdt.c:350:8: branch_false: ...to here
ffmpeg-7.1.1/libavformat/rdt.c:350:8: branch_true: following ‘true’ branch (when ‘buf’ is NULL)...
ffmpeg-7.1.1/libavformat/rdt.c:350:17: branch_true: ...to here
ffmpeg-7.1.1/libavformat/rdt.c:350:9: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavformat/rdt.c:359:8: branch_false: ...to here
ffmpeg-7.1.1/libavformat/rdt.c:359:8: branch_false: following ‘false’ branch (when ‘len > 11’)...
ffmpeg-7.1.1/libavformat/rdt.c:361:10: branch_false: ...to here
ffmpeg-7.1.1/libavformat/rdt.c:361:10: call_function: calling ‘ff_rdt_parse_header’ from ‘ff_rdt_parse_packet’
#  200|   
#  201|       /* skip status packets */
#  202|->     while (len >= 5 && buf[1] == 0xFF /* status packet */) {
#  203|           int pkt_len;
#  204|   

Error: COMPILER_WARNING: [#def267]
ffmpeg-7.1.1/libavformat/rtmpproto.c: scope_hint: In function ‘send_invoke_response’
ffmpeg-7.1.1/libavformat/rtmpproto.c:2001:51: warning[-Wformat-truncation=]: ‘ is now published’ directive output may be truncated writing 17 bytes into a region of size between 1 and 128
# 2001 |         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 ());
#      |                                    ~~~~~~~~~~~~~~~~~
# 1999|       } else if (!strcmp(command, "publish")) {
# 2000|           char statusmsg[128];
# 2001|->         snprintf(statusmsg, sizeof(statusmsg), "%s is now published", filename);
# 2002|           ret = write_begin(s);
# 2003|           if (ret < 0)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def268]
ffmpeg-7.1.1/libavformat/rtpdec.c:888:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘buf’
ffmpeg-7.1.1/libavformat/rtpdec.c:945:5: enter_function: entry to ‘ff_rtp_parse_packet’
ffmpeg-7.1.1/libavformat/rtpdec.c:951:10: call_function: calling ‘rtp_parse_one_packet’ from ‘ff_rtp_parse_packet’
#  886|           return -1;
#  887|   
#  888|->     if ((buf[0] & 0xc0) != (RTP_VERSION << 6))
#  889|           return -1;
#  890|       if (RTP_PT_IS_RTCP(buf[1])) {

Error: GCC_ANALYZER_WARNING: [#def269]
ffmpeg-7.1.1/libavformat/rtpdec_qcelp.c:102:13: warning[-Wanalyzer-overlapping-buffers]: overlapping buffers passed as arguments to ‘memcpy’
ffmpeg-7.1.1/libavformat/rtpdec_qcelp.c:201:12: enter_function: entry to ‘qcelp_parse_packet’
ffmpeg-7.1.1/libavformat/rtpdec_qcelp.c:209:16: call_function: calling ‘return_stored_frame’ from ‘qcelp_parse_packet’
#  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-476): [#def270]
ffmpeg-7.1.1/libavformat/rtpdec_qdm2.c:231:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘csum_pos’
ffmpeg-7.1.1/libavformat/rtpdec_qdm2.c:193:5: branch_false: following ‘false’ branch...
 branch_false: ...to here
ffmpeg-7.1.1/libavformat/rtpdec_qdm2.c:194:17: branch_true: following ‘true’ branch (when ‘n != 128’)...
ffmpeg-7.1.1/libavformat/rtpdec_qdm2.c:195:13: branch_true: ...to here
ffmpeg-7.1.1/libavformat/rtpdec_qdm2.c:197:5: branch_false: following ‘false’ branch (when ‘n != 128’)...
ffmpeg-7.1.1/libavformat/rtpdec_qdm2.c:199:16: branch_false: ...to here
ffmpeg-7.1.1/libavformat/rtpdec_qdm2.c:199:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavformat/rtpdec_qdm2.c:201:26: branch_false: ...to here
ffmpeg-7.1.1/libavformat/rtpdec_qdm2.c:214:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavformat/rtpdec_qdm2.c:220:15: branch_false: ...to here
ffmpeg-7.1.1/libavformat/rtpdec_qdm2.c:225:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavformat/rtpdec_qdm2.c:229:14: branch_true: ...to here
ffmpeg-7.1.1/libavformat/rtpdec_qdm2.c:231:9: danger: dereference of NULL ‘csum_pos’
#  229|           for (q = pkt->data; q < &pkt->data[qdm->block_size]; q++)
#  230|               total += *q;
#  231|->         AV_WB16(csum_pos, (uint16_t) total);
#  232|       }
#  233|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def271]
ffmpeg-7.1.1/libavformat/rtsp.c:630:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘start’
ffmpeg-7.1.1/libavformat/rtsp.c:2397:12: enter_function: entry to ‘sdp_read_header’
ffmpeg-7.1.1/libavformat/rtsp.c:2405:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavformat/rtsp.c:2408:9: branch_false: ...to here
ffmpeg-7.1.1/libavformat/rtsp.c:2416:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavformat/rtsp.c:2421:27: branch_false: ...to here
ffmpeg-7.1.1/libavformat/rtsp.c:2421:11: call_function: calling ‘ff_sdp_parse’ from ‘sdp_read_header’
#  628|               // this is so that seeking on a streamed file can work.
#  629|               rtsp_parse_range_npt(p, &start, &end);
#  630|->             s->start_time = start;
#  631|               /* AV_NOPTS_VALUE means live broadcast (and can't seek) */
#  632|               s->duration   = (end == AV_NOPTS_VALUE) ?

Error: COMPILER_WARNING: [#def272]
ffmpeg-7.1.1/libavformat/rtsp.c: scope_hint: In function ‘ff_rtsp_make_setup_request’
ffmpeg-7.1.1/libavformat/rtsp.c:1592:30: warning[-Wformat-truncation=]: ‘%s’ directive output may be truncated writing up to 4095 bytes into a region of size 4085
# 1592 |                  "Transport: %s\r\n",
#      |                              ^~
# 1593 |                  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 ());
#      |                                    ~~~~~~~~~~~~~~~~~
# 1590|               av_strlcat(transport, ";mode=play", sizeof(transport));
# 1591|           snprintf(cmd, sizeof(cmd),
# 1592|->                  "Transport: %s\r\n",
# 1593|                    transport);
# 1594|           if (rt->accept_dynamic_rate)

Error: COMPILER_WARNING: [#def273]
ffmpeg-7.1.1/libavformat/smoothstreamingenc.c: scope_hint: In function ‘ism_flush’
ffmpeg-7.1.1/libavformat/smoothstreamingenc.c:512:49: warning[-Wformat-truncation=]: ‘/temp’ directive output may be truncated writing 5 bytes into a region of size between 1 and 1024
#  512 |         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 ());
#      |                                    ~~~~~~~~~~~~~~~~~
#  510|               continue;
#  511|   
#  512|->         snprintf(filename, sizeof(filename), "%s/temp", os->dirname);
#  513|           ret = ffurl_open_whitelist(&os->out, filename, AVIO_FLAG_WRITE, &s->interrupt_callback, NULL, s->protocol_whitelist, s->protocol_blacklist, NULL);
#  514|           if (ret < 0)

Error: COMPILER_WARNING: [#def274]
ffmpeg-7.1.1/libavformat/smoothstreamingenc.c: scope_hint: In function ‘ism_flush’
ffmpeg-7.1.1/libavformat/smoothstreamingenc.c:540:53: warning[-Wformat-truncation=]: ‘/temp’ directive output may be truncated writing 5 bytes into a region of size between 1 and 1024
#  540 |             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 ());
#      |                                    ~~~~~~~~~~~~~~~~~
#  538|               memcpy(curr_dirname, os->dirname, sizeof(os->dirname));
#  539|               snprintf(os->dirname, sizeof(os->dirname), "%s/QualityLevels(%"PRId64")", s->url, s->streams[i]->codecpar->bit_rate);
#  540|->             snprintf(filename, sizeof(filename), "%s/temp", os->dirname);
#  541|   
#  542|               // rename the tmp folder back to the correct name since we now have the bitrate

Error: COMPILER_WARNING: [#def275]
ffmpeg-7.1.1/libavformat/smoothstreamingenc.c: scope_hint: In function ‘ism_flush’
ffmpeg-7.1.1/libavformat/smoothstreamingenc.c:547:63: warning[-Wformat-truncation=]: ‘/FragmentInfo(’ directive output may be truncated writing 14 bytes into a region of size between 1 and 1024
#  547 |         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 ());
#      |                                    ~~~~~~~~~~~~~~~~~
#  545|           }
#  546|   
#  547|->         snprintf(header_filename, sizeof(header_filename), "%s/FragmentInfo(%s=%"PRIu64")", os->dirname, os->stream_type_tag, start_ts);
#  548|           snprintf(target_filename, sizeof(target_filename), "%s/Fragments(%s=%"PRIu64")", os->dirname, os->stream_type_tag, start_ts);
#  549|           copy_moof(s, filename, header_filename, moof_size);

Error: COMPILER_WARNING: [#def276]
ffmpeg-7.1.1/libavformat/smoothstreamingenc.c: scope_hint: In function ‘ism_flush’
ffmpeg-7.1.1/libavformat/smoothstreamingenc.c:548:63: warning[-Wformat-truncation=]: ‘/Fragments(’ directive output may be truncated writing 11 bytes into a region of size between 1 and 1024
#  548 |         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 ());
#      |                                    ~~~~~~~~~~~~~~~~~
#  546|   
#  547|           snprintf(header_filename, sizeof(header_filename), "%s/FragmentInfo(%s=%"PRIu64")", os->dirname, os->stream_type_tag, start_ts);
#  548|->         snprintf(target_filename, sizeof(target_filename), "%s/Fragments(%s=%"PRIu64")", os->dirname, os->stream_type_tag, start_ts);
#  549|           copy_moof(s, filename, header_filename, moof_size);
#  550|           ret = ff_rename(filename, target_filename, s);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def277]
ffmpeg-7.1.1/libavformat/smush.c:167:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘palette[i]’
ffmpeg-7.1.1/libavformat/smush.c:60:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavformat/smush.c:80:15: branch_false: ...to here
ffmpeg-7.1.1/libavformat/smush.c:80:15: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavformat/smush.c:81:13: branch_true: ...to here
ffmpeg-7.1.1/libavformat/smush.c:81:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavformat/smush.c:84:16: branch_false: ...to here
ffmpeg-7.1.1/libavformat/smush.c:85:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavformat/smush.c:88:9: branch_false: ...to here
ffmpeg-7.1.1/libavformat/smush.c:91:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavformat/smush.c:94:9: branch_false: ...to here
ffmpeg-7.1.1/libavformat/smush.c:100:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavformat/smush.c:103:16: branch_false: ...to here
ffmpeg-7.1.1/libavformat/smush.c:104:16: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavformat/smush.c:107:17: branch_true: ...to here
ffmpeg-7.1.1/libavformat/smush.c:107:16: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavformat/smush.c:110:26: branch_false: ...to here
ffmpeg-7.1.1/libavformat/smush.c:117:20: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavformat/smush.c:120:28: branch_false: ...to here
ffmpeg-7.1.1/libavformat/smush.c:121:20: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavformat/smush.c:124:31: branch_false: ...to here
ffmpeg-7.1.1/libavformat/smush.c:144:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavformat/smush.c:147:33: branch_false: ...to here
ffmpeg-7.1.1/libavformat/smush.c:161:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavformat/smush.c:162:20: branch_true: ...to here
ffmpeg-7.1.1/libavformat/smush.c:162:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavformat/smush.c:165:9: branch_false: ...to here
ffmpeg-7.1.1/libavformat/smush.c:166:21: branch_true: following ‘true’ branch (when ‘i != 256’)...
ffmpeg-7.1.1/libavformat/smush.c:167:13: branch_true: ...to here
ffmpeg-7.1.1/libavformat/smush.c:167:13: danger: use of uninitialized value ‘palette[i]’ here
#  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): [#def278]
ffmpeg-7.1.1/libavformat/swfdec.c:419:18: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘st’
ffmpeg-7.1.1/libavformat/swfdec.c:228:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavformat/swfdec.c:230:13: branch_false: ...to here
ffmpeg-7.1.1/libavformat/swfdec.c:230:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
ffmpeg-7.1.1/libavformat/swfdec.c:364:16: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavformat/swfdec.c:365:29: branch_false: ...to here
ffmpeg-7.1.1/libavformat/swfdec.c:364:17: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavformat/swfdec.c:366:17: branch_false: ...to here
ffmpeg-7.1.1/libavformat/swfdec.c:364:17: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavformat/swfdec.c:371:23: branch_false: ...to here
ffmpeg-7.1.1/libavformat/swfdec.c:376:16: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavformat/swfdec.c:379:20: branch_false: ...to here
ffmpeg-7.1.1/libavformat/swfdec.c:380:16: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavformat/swfdec.c:385:19: branch_false: ...to here
ffmpeg-7.1.1/libavformat/swfdec.c:386:16: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavformat/swfdec.c:389:20: branch_false: ...to here
ffmpeg-7.1.1/libavformat/swfdec.c:390:16: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavformat/swfdec.c:394:24: branch_false: ...to here
ffmpeg-7.1.1/libavformat/swfdec.c:394:16: branch_false: following ‘false’ branch...
 branch_false: ...to here
ffmpeg-7.1.1/libavformat/swfdec.c:399:25: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavformat/swfdec.c:404:16: branch_false: ...to here
ffmpeg-7.1.1/libavformat/swfdec.c:404:16: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavformat/swfdec.c:417:43: branch_false: ...to here
ffmpeg-7.1.1/libavformat/swfdec.c:417:16: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavformat/swfdec.c:419:18: branch_false: ...to here
ffmpeg-7.1.1/libavformat/swfdec.c:419:18: danger: dereference of NULL ‘st’
#  417|               if ((res = av_new_packet(pkt, out_len - colormapsize * colormapbpp)) < 0)
#  418|                   goto bitmap_end;
#  419|->             if (!st->codecpar->width && !st->codecpar->height) {
#  420|                   st->codecpar->width  = width;
#  421|                   st->codecpar->height = height;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def279]
ffmpeg-7.1.1/libavformat/swfdec.c:541:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘st’
ffmpeg-7.1.1/libavformat/swfdec.c:228:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavformat/swfdec.c:230:13: branch_false: ...to here
ffmpeg-7.1.1/libavformat/swfdec.c:230:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
ffmpeg-7.1.1/libavformat/swfdec.c:328:19: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavformat/swfdec.c:474:19: branch_false: ...to here
ffmpeg-7.1.1/libavformat/swfdec.c:496:19: branch_true: following ‘true’ branch...
 branch_true: ...to here
ffmpeg-7.1.1/libavformat/swfdec.c:497:23: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavformat/swfdec.c:502:16: branch_false: ...to here
ffmpeg-7.1.1/libavformat/swfdec.c:502:16: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavformat/swfdec.c:512:13: branch_false: ...to here
ffmpeg-7.1.1/libavformat/swfdec.c:516:16: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavformat/swfdec.c:518:31: branch_false: ...to here
ffmpeg-7.1.1/libavformat/swfdec.c:518:16: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavformat/swfdec.c:521:17: branch_false: ...to here
ffmpeg-7.1.1/libavformat/swfdec.c:541:33: danger: dereference of NULL ‘st’
#  539|   
#  540|               pkt->pos = pos;
#  541|->             pkt->stream_index = st->index;
#  542|               return pkt->size;
#  543|           } else {

Error: COMPILER_WARNING: [#def280]
ffmpeg-7.1.1/libavformat/vorbiscomment.c: scope_hint: In function ‘ff_vorbiscomment_write’
ffmpeg-7.1.1/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.1.1/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: [#def281]
ffmpeg-7.1.1/libavformat/vorbiscomment.c: scope_hint: In function ‘ff_vorbiscomment_write’
ffmpeg-7.1.1/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.1.1/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.1.1/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): [#def282]
ffmpeg-7.1.1/libavformat/webvttdec.c:111:12: warning[-Wanalyzer-deref-before-check]: check of ‘identifier’ for NULL after already dereferencing it
ffmpeg-7.1.1/libavformat/webvttdec.c:68:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavformat/webvttdec.c:70:5: branch_false: ...to here
ffmpeg-7.1.1/libavformat/webvttdec.c:86:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavformat/webvttdec.c:89:14: branch_false: ...to here
ffmpeg-7.1.1/libavformat/webvttdec.c:89:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavformat/webvttdec.c:92:13: branch_false: ...to here
ffmpeg-7.1.1/libavformat/webvttdec.c:111:12: danger: pointer ‘identifier’ is checked for NULL here but it was already dereferenced at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
#  109|               }
#  110|           }
#  111|->         if (!identifier)
#  112|               identifier_len = 0;
#  113|           else {

Error: CPPCHECK_WARNING (CWE-457): [#def283]
ffmpeg-7.1.1/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: CPPCHECK_WARNING (CWE-758): [#def284]
ffmpeg-7.1.1/libavutil/common.h:212: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
#  210|   static av_always_inline av_const uint8_t av_clip_uint8_c(int a)
#  211|   {
#  212|->     if (a&(~0xFF)) return (~a)>>31;
#  213|       else           return a;
#  214|   }

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

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

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

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

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

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

Error: CPPCHECK_WARNING (CWE-758): [#def291]
ffmpeg-7.1.1/libavutil/common.h:373: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
#  371|       int64_t s = a+(uint64_t)b;
#  372|       if ((int64_t)(a^b | ~s^b) >= 0)
#  373|->         return INT64_MAX ^ (b >> 63);
#  374|       return s;
#  375|   #endif

Error: CPPCHECK_WARNING (CWE-758): [#def292]
ffmpeg-7.1.1/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-126): [#def293]
ffmpeg-7.1.1/libavutil/frame.c:1121:27: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
ffmpeg-7.1.1/libavutil/frame.c:1071:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavutil/frame.c:1074:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavutil/frame.c:1075:9: branch_false: ...to here
ffmpeg-7.1.1/libavutil/frame.c:1074:9: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavutil/frame.c:1076:9: branch_false: ...to here
ffmpeg-7.1.1/libavutil/frame.c:1074:9: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavutil/frame.c:1077:9: branch_false: ...to here
ffmpeg-7.1.1/libavutil/frame.c:1074:9: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavutil/frame.c:1080:32: branch_false: ...to here
ffmpeg-7.1.1/libavutil/frame.c:1081:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavutil/frame.c:1088:9: branch_false: ...to here
ffmpeg-7.1.1/libavutil/frame.c:1088:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavutil/frame.c:1097:5: branch_false: ...to here
ffmpeg-7.1.1/libavutil/frame.c:1100:8: branch_false: following ‘false’ branch...
 branch_false: ...to here
ffmpeg-7.1.1/libavutil/frame.c:1120:21: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavutil/frame.c:1121:27: branch_true: ...to here
ffmpeg-7.1.1/libavutil/frame.c:1120:21: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavutil/frame.c:1121:27: branch_true: ...to here
ffmpeg-7.1.1/libavutil/frame.c:1120:21: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavutil/frame.c:1121:27: branch_true: ...to here
ffmpeg-7.1.1/libavutil/frame.c:1120:21: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavutil/frame.c:1121:27: branch_true: ...to here
ffmpeg-7.1.1/libavutil/frame.c:1120:21: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavutil/frame.c:1121:27: branch_true: ...to here
ffmpeg-7.1.1/libavutil/frame.c:1121:27: danger: out-of-bounds read from byte 32 till byte 39 but ‘offsets’ ends at byte 32
# 1119|   
# 1120|       for (int i = 0; frame->data[i]; i++)
# 1121|->         frame->data[i] += offsets[i];
# 1122|   
# 1123|       frame->width      -= (frame->crop_left + frame->crop_right);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def294]
ffmpeg-7.1.1/libavutil/hwcontext_vaapi.c:2026:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
ffmpeg-7.1.1/libavutil/hwcontext_vaapi.c:1974:8: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavutil/hwcontext_vaapi.c:1975:29: branch_true: ...to here
ffmpeg-7.1.1/libavutil/hwcontext_vaapi.c:1980:12: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavutil/hwcontext_vaapi.c:1988:29: branch_false: ...to here
ffmpeg-7.1.1/libavutil/hwcontext_vaapi.c:1990:16: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavutil/hwcontext_vaapi.c:1995:16: branch_false: ...to here
ffmpeg-7.1.1/libavutil/hwcontext_vaapi.c:1995:16: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavutil/hwcontext_vaapi.c:1998:31: branch_false: ...to here
ffmpeg-7.1.1/libavutil/hwcontext_vaapi.c:1999:20: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavutil/hwcontext_vaapi.c:2005:26: branch_false: ...to here
ffmpeg-7.1.1/libavutil/hwcontext_vaapi.c:2005:26: acquire_resource: opened here
ffmpeg-7.1.1/libavutil/hwcontext_vaapi.c:2006:24: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavutil/hwcontext_vaapi.c:2012:25: branch_false: ...to here
ffmpeg-7.1.1/libavutil/hwcontext_vaapi.c:2025:12: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavutil/hwcontext_vaapi.c:2026:23: branch_true: ...to here
ffmpeg-7.1.1/libavutil/hwcontext_vaapi.c:2026:16: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavutil/hwcontext_vaapi.c:2030:20: branch_false: ...to here
ffmpeg-7.1.1/libavutil/hwcontext_vaapi.c:2026:16: danger: ‘fd’ leaks here; was opened at [(11)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/10)
# 2024|           priv = av_mallocz(sizeof(*priv));
# 2025|           if (!priv) {
# 2026|->             if (fd != src_hwctx->fd) {
# 2027|                   // The fd was opened in this function.
# 2028|                   close(fd);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def295]
ffmpeg-7.1.1/libavutil/hwcontext_vulkan.c:2078:34: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘f’
ffmpeg-7.1.1/libavutil/hwcontext_vulkan.c:3576:12: enter_function: entry to ‘vulkan_map_to’
ffmpeg-7.1.1/libavutil/hwcontext_vulkan.c:3591:12: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavutil/hwcontext_vulkan.c:3592:20: branch_true: ...to here
ffmpeg-7.1.1/libavutil/hwcontext_vulkan.c:3592:20: call_function: calling ‘vulkan_map_from_drm’ from ‘vulkan_map_to’
# 2076|   static void vulkan_free_internal(AVVkFrame *f)
# 2077|   {
# 2078|->     av_unused AVVkFrameInternal *internal = f->internal;
# 2079|   
# 2080|   #if CONFIG_CUDA

Error: GCC_ANALYZER_WARNING (CWE-476): [#def296]
ffmpeg-7.1.1/libavutil/hwcontext_vulkan.c:3698:18: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
ffmpeg-7.1.1/libavutil/hwcontext_vulkan.c:3625:12: enter_function: entry to ‘vulkan_map_to_drm’
ffmpeg-7.1.1/libavutil/hwcontext_vulkan.c:3647:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavutil/hwcontext_vulkan.c:3650:11: branch_false: ...to here
ffmpeg-7.1.1/libavutil/hwcontext_vulkan.c:3650:11: call_function: calling ‘prepare_frame’ from ‘vulkan_map_to_drm’
ffmpeg-7.1.1/libavutil/hwcontext_vulkan.c:3650:11: return_function: returning to ‘vulkan_map_to_drm’ from ‘prepare_frame’
ffmpeg-7.1.1/libavutil/hwcontext_vulkan.c:3651:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavutil/hwcontext_vulkan.c:3655:29: branch_false: ...to here
ffmpeg-7.1.1/libavutil/hwcontext_vulkan.c:3661:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavutil/hwcontext_vulkan.c:3664:11: branch_false: ...to here
ffmpeg-7.1.1/libavutil/hwcontext_vulkan.c:3666:8: branch_false: following ‘false’ branch...
 branch_false: ...to here
ffmpeg-7.1.1/libavutil/hwcontext_vulkan.c:3693:21: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavutil/hwcontext_vulkan.c:3695:28: branch_true: ...to here
ffmpeg-7.1.1/libavutil/hwcontext_vulkan.c:3698:32: call_function: calling ‘av_vkfmt_from_pixfmt’ from ‘vulkan_map_to_drm’
ffmpeg-7.1.1/libavutil/hwcontext_vulkan.c:3698:32: return_function: returning to ‘vulkan_map_to_drm’ from ‘av_vkfmt_from_pixfmt’
ffmpeg-7.1.1/libavutil/hwcontext_vulkan.c:3698:69: release_memory: ‘0’ is NULL
ffmpeg-7.1.1/libavutil/hwcontext_vulkan.c:3698:18: danger: dereference of NULL ‘av_vkfmt_from_pixfmt(*hwfc.sw_format) + (long unsigned int)i * 4’
# 3696|               .aspectMask = VK_IMAGE_ASPECT_MEMORY_PLANE_0_BIT_EXT,
# 3697|           };
# 3698|->         VkFormat plane_vkfmt = av_vkfmt_from_pixfmt(hwfc->sw_format)[i];
# 3699|   
# 3700|           drm_desc->layers[i].format    = vulkan_fmt_to_drm(plane_vkfmt);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def297]
ffmpeg-7.1.1/libavutil/mem.c:252:5: warning[-Wanalyzer-malloc-leak]: leak of ‘*((void **)arg)’
ffmpeg-7.1.1/libavutil/mem.c:343:7: enter_function: entry to ‘av_dynarray2_add’
ffmpeg-7.1.1/libavutil/mem.c:348:5: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavutil/mem.c:348:5: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavutil/mem.c:348:5: branch_false: ...to here
ffmpeg-7.1.1/libavutil/mem.c:348:5: call_function: calling ‘av_realloc’ from ‘av_dynarray2_add’
ffmpeg-7.1.1/libavutil/mem.c:348:5: return_function: returning to ‘av_dynarray2_add’ from ‘av_realloc’
ffmpeg-7.1.1/libavutil/mem.c:348:5: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavutil/mem.c:348:5: call_function: calling ‘av_freep’ from ‘av_dynarray2_add’
#  250|   
#  251|       memcpy(&val, arg, sizeof(val));
#  252|->     memcpy(arg, &(void *){ NULL }, sizeof(val));
#  253|       av_free(val);
#  254|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def298]
ffmpeg-7.1.1/libavutil/mem.c:320:5: warning[-Wanalyzer-malloc-leak]: leak of ‘tab’
ffmpeg-7.1.1/libavutil/mem.c:315:5: enter_function: entry to ‘av_dynarray_add_nofree’
ffmpeg-7.1.1/libavutil/mem.c:320:5: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavutil/mem.c:320:5: branch_false: following ‘false’ branch (when ‘av_size_new <= 268435455’)...
ffmpeg-7.1.1/libavutil/mem.c:320:5: branch_false: ...to here
ffmpeg-7.1.1/libavutil/mem.c:320:5: call_function: calling ‘av_realloc’ from ‘av_dynarray_add_nofree’
ffmpeg-7.1.1/libavutil/mem.c:320:5: return_function: returning to ‘av_dynarray_add_nofree’ from ‘av_realloc’
ffmpeg-7.1.1/libavutil/mem.c:320:5: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavutil/mem.c:320:5: danger: ‘tab’ leaks here; was allocated at [(10)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/9)
#  318|       memcpy(&tab, tab_ptr, sizeof(tab));
#  319|   
#  320|->     FF_DYNARRAY_ADD(INT_MAX, sizeof(*tab), tab, *nb_ptr, {
#  321|           tab[*nb_ptr] = elem;
#  322|           memcpy(tab_ptr, &tab, sizeof(tab));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def299]
ffmpeg-7.1.1/libavutil/mem.c:341:1: warning[-Wanalyzer-malloc-leak]: leak of ‘tab’
ffmpeg-7.1.1/libavutil/mem.c:329:6: enter_function: entry to ‘av_dynarray_add’
ffmpeg-7.1.1/libavutil/mem.c:334:5: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/libavutil/mem.c:334:5: branch_false: following ‘false’ branch (when ‘av_size_new <= 268435455’)...
ffmpeg-7.1.1/libavutil/mem.c:334:5: branch_false: ...to here
ffmpeg-7.1.1/libavutil/mem.c:334:5: call_function: calling ‘av_realloc’ from ‘av_dynarray_add’
ffmpeg-7.1.1/libavutil/mem.c:334:5: return_function: returning to ‘av_dynarray_add’ from ‘av_realloc’
ffmpeg-7.1.1/libavutil/mem.c:334:5: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavutil/mem.c:341:1: danger: ‘tab’ leaks here; was allocated at [(10)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/9)
#  339|           av_freep(tab_ptr);
#  340|       });
#  341|-> }
#  342|   
#  343|   void *av_dynarray2_add(void **tab_ptr, int *nb_ptr, size_t elem_size,

Error: GCC_ANALYZER_WARNING (CWE-476): [#def300]
ffmpeg-7.1.1/libavutil/opt.c:180:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘num’
ffmpeg-7.1.1/libavutil/opt.c:2734:5: enter_function: entry to ‘av_opt_serialize’
ffmpeg-7.1.1/libavutil/opt.c:2740:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavutil/opt.c:2740:9: branch_false: following ‘false’ branch (when ‘key_val_sep != 92’)...
ffmpeg-7.1.1/libavutil/opt.c:2746:9: branch_false: ...to here
ffmpeg-7.1.1/libavutil/opt.c:2746:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavutil/opt.c:2749:5: branch_false: ...to here
ffmpeg-7.1.1/libavutil/opt.c:2752:11: call_function: calling ‘opt_serialize’ from ‘av_opt_serialize’
#  178|           return 0;
#  179|       case AV_OPT_TYPE_FLOAT:
#  180|->         *num = *(float *)dst;
#  181|           return 0;
#  182|       case AV_OPT_TYPE_DOUBLE:

Error: GCC_ANALYZER_WARNING (CWE-476): [#def301]
ffmpeg-7.1.1/libavutil/opt.c:183:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘num’
ffmpeg-7.1.1/libavutil/opt.c:2734:5: enter_function: entry to ‘av_opt_serialize’
ffmpeg-7.1.1/libavutil/opt.c:2740:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavutil/opt.c:2740:9: branch_false: following ‘false’ branch (when ‘key_val_sep != 92’)...
ffmpeg-7.1.1/libavutil/opt.c:2746:9: branch_false: ...to here
ffmpeg-7.1.1/libavutil/opt.c:2746:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavutil/opt.c:2749:5: branch_false: ...to here
ffmpeg-7.1.1/libavutil/opt.c:2752:11: call_function: calling ‘opt_serialize’ from ‘av_opt_serialize’
#  181|           return 0;
#  182|       case AV_OPT_TYPE_DOUBLE:
#  183|->         *num = *(double *)dst;
#  184|           return 0;
#  185|       case AV_OPT_TYPE_RATIONAL:

Error: GCC_ANALYZER_WARNING (CWE-476): [#def302]
ffmpeg-7.1.1/libavutil/opt.c:187:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘den’
ffmpeg-7.1.1/libavutil/opt.c:2734:5: enter_function: entry to ‘av_opt_serialize’
ffmpeg-7.1.1/libavutil/opt.c:2740:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavutil/opt.c:2740:9: branch_false: following ‘false’ branch (when ‘key_val_sep != 92’)...
ffmpeg-7.1.1/libavutil/opt.c:2746:9: branch_false: ...to here
ffmpeg-7.1.1/libavutil/opt.c:2746:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/libavutil/opt.c:2749:5: branch_false: ...to here
ffmpeg-7.1.1/libavutil/opt.c:2752:11: call_function: calling ‘opt_serialize’ from ‘av_opt_serialize’
#  185|       case AV_OPT_TYPE_RATIONAL:
#  186|           *intnum = ((AVRational *)dst)->num;
#  187|->         *den    = ((AVRational *)dst)->den;
#  188|           return 0;
#  189|       case AV_OPT_TYPE_CONST:

Error: CPPCHECK_WARNING (CWE-758): [#def303]
ffmpeg-7.1.1/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): [#def304]
ffmpeg-7.1.1/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): [#def305]
ffmpeg-7.1.1/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): [#def306]
ffmpeg-7.1.1/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): [#def307]
ffmpeg-7.1.1/libswscale/x86/hscale_fast_bilinear_simd.c:298:5: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘retsave’
#  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): [#def308]
ffmpeg-7.1.1/tools/graph2dot.c:148:8: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(infilename, "r")’
ffmpeg-7.1.1/tools/graph2dot.c:136:8: branch_true: following ‘true’ branch (when ‘infilename’ is NULL)...
 branch_true: ...to here
ffmpeg-7.1.1/tools/graph2dot.c:138:14: acquire_resource: opened here
ffmpeg-7.1.1/tools/graph2dot.c:139:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/tools/graph2dot.c:145:8: branch_false: ...to here
ffmpeg-7.1.1/tools/graph2dot.c:145:8: branch_true: following ‘true’ branch (when ‘outfilename’ is NULL)...
 branch_true: ...to here
ffmpeg-7.1.1/tools/graph2dot.c:148:8: danger: ‘fopen(infilename, "r")’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#  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): [#def309]
ffmpeg-7.1.1/tools/graph2dot.c:148:8: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(infilename, "r")’
ffmpeg-7.1.1/tools/graph2dot.c:136:8: branch_true: following ‘true’ branch (when ‘infilename’ is NULL)...
 branch_true: ...to here
ffmpeg-7.1.1/tools/graph2dot.c:138:14: acquire_memory: allocated here
ffmpeg-7.1.1/tools/graph2dot.c:139:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/tools/graph2dot.c:145:8: branch_false: ...to here
ffmpeg-7.1.1/tools/graph2dot.c:145:8: branch_true: following ‘true’ branch (when ‘outfilename’ is NULL)...
 branch_true: ...to here
ffmpeg-7.1.1/tools/graph2dot.c:148:8: danger: ‘fopen(infilename, "r")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#  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): [#def310]
ffmpeg-7.1.1/tools/graph2dot.c:160:12: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(infilename, "r")’
ffmpeg-7.1.1/tools/graph2dot.c:136:8: branch_true: following ‘true’ branch (when ‘infilename’ is NULL)...
 branch_true: ...to here
ffmpeg-7.1.1/tools/graph2dot.c:138:14: acquire_resource: opened here
ffmpeg-7.1.1/tools/graph2dot.c:139:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/tools/graph2dot.c:145:8: branch_false: ...to here
ffmpeg-7.1.1/tools/graph2dot.c:145:8: branch_true: following ‘true’ branch (when ‘outfilename’ is NULL)...
 branch_true: ...to here
ffmpeg-7.1.1/tools/graph2dot.c:148:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/tools/graph2dot.c:159:34: branch_false: ...to here
ffmpeg-7.1.1/tools/graph2dot.c:160:12: danger: ‘fopen(infilename, "r")’ leaks here; was opened at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
#  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): [#def311]
ffmpeg-7.1.1/tools/graph2dot.c:160:12: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(outfilename, "w")’
ffmpeg-7.1.1/tools/graph2dot.c:136:8: branch_true: following ‘true’ branch (when ‘infilename’ is NULL)...
 branch_true: ...to here
ffmpeg-7.1.1/tools/graph2dot.c:139:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/tools/graph2dot.c:145:8: branch_false: ...to here
ffmpeg-7.1.1/tools/graph2dot.c:145:8: branch_true: following ‘true’ branch (when ‘outfilename’ is NULL)...
 branch_true: ...to here
ffmpeg-7.1.1/tools/graph2dot.c:147:15: acquire_resource: opened here
ffmpeg-7.1.1/tools/graph2dot.c:148:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/tools/graph2dot.c:159:34: branch_false: ...to here
ffmpeg-7.1.1/tools/graph2dot.c:160:12: danger: ‘fopen(outfilename, "w")’ leaks here; was opened at [(7)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/6)
#  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): [#def312]
ffmpeg-7.1.1/tools/graph2dot.c:160:12: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(infilename, "r")’
ffmpeg-7.1.1/tools/graph2dot.c:136:8: branch_true: following ‘true’ branch (when ‘infilename’ is NULL)...
 branch_true: ...to here
ffmpeg-7.1.1/tools/graph2dot.c:138:14: acquire_memory: allocated here
ffmpeg-7.1.1/tools/graph2dot.c:139:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/tools/graph2dot.c:145:8: branch_false: ...to here
ffmpeg-7.1.1/tools/graph2dot.c:145:8: branch_true: following ‘true’ branch (when ‘outfilename’ is NULL)...
 branch_true: ...to here
ffmpeg-7.1.1/tools/graph2dot.c:148:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/tools/graph2dot.c:159:34: branch_false: ...to here
ffmpeg-7.1.1/tools/graph2dot.c:160:12: danger: ‘fopen(infilename, "r")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
#  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): [#def313]
ffmpeg-7.1.1/tools/graph2dot.c:160:12: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(outfilename, "w")’
ffmpeg-7.1.1/tools/graph2dot.c:136:8: branch_true: following ‘true’ branch (when ‘infilename’ is NULL)...
 branch_true: ...to here
ffmpeg-7.1.1/tools/graph2dot.c:139:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/tools/graph2dot.c:145:8: branch_false: ...to here
ffmpeg-7.1.1/tools/graph2dot.c:145:8: branch_true: following ‘true’ branch (when ‘outfilename’ is NULL)...
 branch_true: ...to here
ffmpeg-7.1.1/tools/graph2dot.c:147:15: acquire_memory: allocated here
ffmpeg-7.1.1/tools/graph2dot.c:148:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/tools/graph2dot.c:159:34: branch_false: ...to here
ffmpeg-7.1.1/tools/graph2dot.c:160:12: danger: ‘fopen(outfilename, "w")’ leaks here; was allocated at [(7)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/6)
#  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): [#def314]
ffmpeg-7.1.1/tools/graph2dot.c:165:22: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(infilename, "r")’
ffmpeg-7.1.1/tools/graph2dot.c:136:8: branch_true: following ‘true’ branch (when ‘infilename’ is NULL)...
 branch_true: ...to here
ffmpeg-7.1.1/tools/graph2dot.c:138:14: acquire_resource: opened here
ffmpeg-7.1.1/tools/graph2dot.c:139:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/tools/graph2dot.c:145:8: branch_false: ...to here
ffmpeg-7.1.1/tools/graph2dot.c:145:8: branch_true: following ‘true’ branch (when ‘outfilename’ is NULL)...
 branch_true: ...to here
ffmpeg-7.1.1/tools/graph2dot.c:148:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/tools/graph2dot.c:159:34: branch_false: ...to here
ffmpeg-7.1.1/tools/graph2dot.c:160:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
ffmpeg-7.1.1/tools/graph2dot.c:165:22: danger: ‘fopen(infilename, "r")’ leaks here; was opened at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
#  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): [#def315]
ffmpeg-7.1.1/tools/graph2dot.c:165:22: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(outfilename, "w")’
ffmpeg-7.1.1/tools/graph2dot.c:136:8: branch_true: following ‘true’ branch (when ‘infilename’ is NULL)...
 branch_true: ...to here
ffmpeg-7.1.1/tools/graph2dot.c:139:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/tools/graph2dot.c:145:8: branch_false: ...to here
ffmpeg-7.1.1/tools/graph2dot.c:145:8: branch_true: following ‘true’ branch (when ‘outfilename’ is NULL)...
 branch_true: ...to here
ffmpeg-7.1.1/tools/graph2dot.c:147:15: acquire_resource: opened here
ffmpeg-7.1.1/tools/graph2dot.c:148:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/tools/graph2dot.c:159:34: branch_false: ...to here
ffmpeg-7.1.1/tools/graph2dot.c:160:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
ffmpeg-7.1.1/tools/graph2dot.c:165:16: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/tools/graph2dot.c:166:37: branch_true: ...to here
ffmpeg-7.1.1/tools/graph2dot.c:165:22: danger: ‘fopen(outfilename, "w")’ leaks here; was opened at [(7)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/6)
#  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): [#def316]
ffmpeg-7.1.1/tools/graph2dot.c:165:22: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(infilename, "r")’
ffmpeg-7.1.1/tools/graph2dot.c:136:8: branch_true: following ‘true’ branch (when ‘infilename’ is NULL)...
 branch_true: ...to here
ffmpeg-7.1.1/tools/graph2dot.c:138:14: acquire_memory: allocated here
ffmpeg-7.1.1/tools/graph2dot.c:139:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/tools/graph2dot.c:145:8: branch_false: ...to here
ffmpeg-7.1.1/tools/graph2dot.c:145:8: branch_true: following ‘true’ branch (when ‘outfilename’ is NULL)...
 branch_true: ...to here
ffmpeg-7.1.1/tools/graph2dot.c:148:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/tools/graph2dot.c:159:34: branch_false: ...to here
ffmpeg-7.1.1/tools/graph2dot.c:160:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
ffmpeg-7.1.1/tools/graph2dot.c:165:22: danger: ‘fopen(infilename, "r")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
#  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): [#def317]
ffmpeg-7.1.1/tools/graph2dot.c:165:22: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(outfilename, "w")’
ffmpeg-7.1.1/tools/graph2dot.c:136:8: branch_true: following ‘true’ branch (when ‘infilename’ is NULL)...
 branch_true: ...to here
ffmpeg-7.1.1/tools/graph2dot.c:139:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/tools/graph2dot.c:145:8: branch_false: ...to here
ffmpeg-7.1.1/tools/graph2dot.c:145:8: branch_true: following ‘true’ branch (when ‘outfilename’ is NULL)...
 branch_true: ...to here
ffmpeg-7.1.1/tools/graph2dot.c:147:15: acquire_memory: allocated here
ffmpeg-7.1.1/tools/graph2dot.c:148:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/tools/graph2dot.c:159:34: branch_false: ...to here
ffmpeg-7.1.1/tools/graph2dot.c:160:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
ffmpeg-7.1.1/tools/graph2dot.c:165:16: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/tools/graph2dot.c:166:37: branch_true: ...to here
ffmpeg-7.1.1/tools/graph2dot.c:165:22: danger: ‘fopen(outfilename, "w")’ leaks here; was allocated at [(7)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/6)
#  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: [#def318]
ffmpeg-7.1.1/tools/ismindex.c: scope_hint: In function ‘main’
ffmpeg-7.1.1/tools/ismindex.c:185:49: warning[-Wformat-truncation=]: ‘.ismf’ directive output may be truncated writing 5 bytes into a region of size between 1 and 2048
#  185 |         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 ());
#      |                                    ~~~~~~~~~~~~~~~~~
#  183|   
#  184|       if (ismf) {
#  185|->         snprintf(idxname, sizeof(idxname), "%s%s.ismf", output_prefix, basename);
#  186|           out = fopen(idxname, "w");
#  187|           if (!out) {

Error: COMPILER_WARNING: [#def319]
ffmpeg-7.1.1/tools/ismindex.c: scope_hint: In function ‘main’
ffmpeg-7.1.1/tools/ismindex.c:196:47: warning[-Wformat-truncation=]: ‘QualityLevels(’ directive output may be truncated writing 14 bytes into a region of size between 1 and 2048
#  196 |         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 ());
#      |                                    ~~~~~~~~~~~~~~~~~
#  194|           struct Track *track = tracks->tracks[i];
#  195|           const char *type    = track->is_video ? "video" : "audio";
#  196|->         snprintf(dirname, sizeof(dirname), "%sQualityLevels(%d)", output_prefix, track->bitrate);
#  197|           if (split) {
#  198|               if (mkdir(dirname, 0777) == -1 && errno != EEXIST) {

Error: COMPILER_WARNING: [#def320]
ffmpeg-7.1.1/tools/ismindex.c: scope_hint: In function ‘main’
ffmpeg-7.1.1/tools/ismindex.c:205:53: warning[-Wformat-truncation=]: ‘/Fragments(’ directive output may be truncated writing 11 bytes into a region of size between 1 and 2048
#  205 |             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 ());
#      |                                    ~~~~~~~~~~~~~~~~~
#  203|           }
#  204|           for (j = 0; j < track->chunks; j++) {
#  205|->             snprintf(filename, sizeof(filename), "%s/Fragments(%s=%"PRId64")",
#  206|                        dirname, type, track->offsets[j].time);
#  207|               avio_seek(in, track->offsets[j].offset, SEEK_SET);

Error: COMPILER_WARNING: [#def321]
ffmpeg-7.1.1/tools/ismindex.c: scope_hint: In function ‘main’
ffmpeg-7.1.1/tools/ismindex.c:627:43: warning[-Wformat-truncation=]: ‘%s’ directive output may be truncated writing up to 2047 bytes into a region of size 1000
#  627 |     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 ());
#      |                                    ~~~~~~~~~~~~~~~~~
#  625|       int i;
#  626|   
#  627|->     snprintf(filename, sizeof(filename), "%s%s.ism", output_prefix, basename);
#  628|       out = fopen(filename, "w");
#  629|       if (!out) {

Error: COMPILER_WARNING: [#def322]
ffmpeg-7.1.1/tools/ismindex.c: scope_hint: In function ‘main’
ffmpeg-7.1.1/tools/ismindex.c:699:47: warning[-Wformat-truncation=]: ‘%s’ directive output may be truncated writing up to 2047 bytes into a region of size 1000
#  699 |         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 ());
#      |                                    ~~~~~~~~~~~~~~~~~
#  697|   
#  698|       if (split)
#  699|->         snprintf(filename, sizeof(filename), "%sManifest", output_prefix);
#  700|       else
#  701|           snprintf(filename, sizeof(filename), "%s%s.ismc", output_prefix, basename);

Error: COMPILER_WARNING: [#def323]
ffmpeg-7.1.1/tools/ismindex.c: scope_hint: In function ‘main’
ffmpeg-7.1.1/tools/ismindex.c:701:47: warning[-Wformat-truncation=]: ‘%s’ directive output may be truncated writing up to 2047 bytes into a region of size 1000
#  701 |         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 ());
#      |                                    ~~~~~~~~~~~~~~~~~
#  699|           snprintf(filename, sizeof(filename), "%sManifest", output_prefix);
#  700|       else
#  701|->         snprintf(filename, sizeof(filename), "%s%s.ismc", output_prefix, basename);
#  702|       out = fopen(filename, "w");
#  703|       if (!out) {

Error: GCC_ANALYZER_WARNING (CWE-688): [#def324]
ffmpeg-7.1.1/tools/sofa2wavs.c:70:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘fopen(&filename, "w+")’ where non-null expected
ffmpeg-7.1.1/tools/sofa2wavs.c:33:8: branch_false: following ‘false’ branch (when ‘argc > 2’)...
ffmpeg-7.1.1/tools/sofa2wavs.c:38:12: branch_false: ...to here
ffmpeg-7.1.1/tools/sofa2wavs.c:39:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/tools/sofa2wavs.c:44:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/tools/sofa2wavs.c:46:19: branch_false: ...to here
ffmpeg-7.1.1/tools/sofa2wavs.c:49:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/tools/sofa2wavs.c:52:11: branch_false: ...to here
ffmpeg-7.1.1/tools/sofa2wavs.c:53:8: branch_false: following ‘false’ branch...
 branch_false: ...to here
ffmpeg-7.1.1/tools/sofa2wavs.c:56:17: branch_true: following ‘true’ branch...
ffmpeg-7.1.1/tools/sofa2wavs.c:58:13: branch_true: ...to here
ffmpeg-7.1.1/tools/sofa2wavs.c:69:16: acquire_memory: this call could return NULL
ffmpeg-7.1.1/tools/sofa2wavs.c:70:9: danger: argument 4 (‘fopen(&filename, "w+")’) from [(13)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/12) could be NULL where non-null expected
#   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): [#def325]
ffmpeg-7.1.1/tools/trasher.c:57:16: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(argv[1], "rb+")’
ffmpeg-7.1.1/tools/trasher.c:42:5: enter_function: entry to ‘main’
ffmpeg-7.1.1/tools/trasher.c:47:8: branch_false: following ‘false’ branch (when ‘argc > 4’)...
ffmpeg-7.1.1/tools/trasher.c:52:9: branch_false: ...to here
ffmpeg-7.1.1/tools/trasher.c:52:9: acquire_resource: opened here
ffmpeg-7.1.1/tools/trasher.c:53:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/tools/trasher.c:57:16: branch_false: ...to here
ffmpeg-7.1.1/tools/trasher.c:61:5: call_function: calling ‘checked_seek’ from ‘main’
ffmpeg-7.1.1/tools/trasher.c:61:5: return_function: returning to ‘main’ from ‘checked_seek’
ffmpeg-7.1.1/tools/trasher.c:63:5: call_function: calling ‘checked_seek’ from ‘main’
ffmpeg-7.1.1/tools/trasher.c:63:5: return_function: returning to ‘main’ from ‘checked_seek’
ffmpeg-7.1.1/tools/trasher.c:57:16: danger: ‘fopen(argv[1], "rb+")’ leaks here; was opened at [(4)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/3)
#   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): [#def326]
ffmpeg-7.1.1/tools/trasher.c:57:16: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(argv[1], "rb+")’
ffmpeg-7.1.1/tools/trasher.c:42:5: enter_function: entry to ‘main’
ffmpeg-7.1.1/tools/trasher.c:47:8: branch_false: following ‘false’ branch (when ‘argc > 4’)...
ffmpeg-7.1.1/tools/trasher.c:52:9: branch_false: ...to here
ffmpeg-7.1.1/tools/trasher.c:52:9: acquire_memory: allocated here
ffmpeg-7.1.1/tools/trasher.c:53:8: branch_false: following ‘false’ branch...
ffmpeg-7.1.1/tools/trasher.c:57:16: branch_false: ...to here
ffmpeg-7.1.1/tools/trasher.c:61:5: call_function: calling ‘checked_seek’ from ‘main’
ffmpeg-7.1.1/tools/trasher.c:61:5: return_function: returning to ‘main’ from ‘checked_seek’
ffmpeg-7.1.1/tools/trasher.c:63:5: call_function: calling ‘checked_seek’ from ‘main’
ffmpeg-7.1.1/tools/trasher.c:63:5: return_function: returning to ‘main’ from ‘checked_seek’
ffmpeg-7.1.1/tools/trasher.c:57:16: danger: ‘fopen(argv[1], "rb+")’ leaks here; was allocated at [(4)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/3)
#   55|           return 2;
#   56|       }
#   57|->     count    = atoi(argv[2]);
#   58|       maxburst = atoi(argv[3]);
#   59|       state    = atoi(argv[4]);

Scan Properties

analyzer-version-clippy1.86.0
analyzer-version-cppcheck2.17.1
analyzer-version-gcc15.0.1
analyzer-version-gcc-analyzer15.0.1
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-243.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250425.124705.g1c7c448.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-nameffmpeg-7.1.1-3.fc43
store-results-to/tmp/tmps8rzmxuu/ffmpeg-7.1.1-3.fc43.tar.xz
time-created2025-04-25 12:48:49
time-finished2025-04-25 13:10:45
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmps8rzmxuu/ffmpeg-7.1.1-3.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmps8rzmxuu/ffmpeg-7.1.1-3.fc43.src.rpm'
tool-versioncsmock-3.8.1.20250422.172604.g26bc3d6-1.el9