Skip to content

packetizer: flac: fix shadow variable

Add blocks in cases declaring variables to avoid shadow variables warnings between the blocks.

../../modules/packetizer/flac.c: In function ‘Packetize’:
../../modules/packetizer/flac.c:423:40: warning: declaration of ‘streaminfo’ shadows a previous local [-Wshadow=compatible-local]
  423 |         const struct flac_stream_info *streaminfo =
      |                                        ^~~~~~~~~~
../../modules/packetizer/flac.c:371:40: note: shadowed declaration is here
  371 |         const struct flac_stream_info *streaminfo =
      |                                        ^~~~~~~~~~

Merge request reports