Debian Codegraph @

external/flac/flac_stream_decoder.c

raw symbols SCIP
1 /* libFLAC - Free Lossless Audio Codec library
2 * Copyright (C) 2000-2009 Josh Coalson
3 * Copyright (C) 2011-2025 Xiph.Org Foundation
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * - Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * - Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the distribution.
15 *
16 * - Neither the name of the Xiph.org Foundation nor the names of its
17 * contributors may be used to endorse or promote products derived from
18 * this software without specific prior written permission.
19 *
20 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR
24 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
25 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
26 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
27 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
28 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
29 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
30 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 */
32
33 //ppgb #ifdef HAVE_CONFIG_H
34 #include "flac_config.h"cxx . . $ `<file>/external/flac/flac_config.h`/
35 //ppgb #endif
36
37 #include <stdio.h>
38 #include <stdlib.h> /* for malloc() */
39 #include <string.h> /* for memset/memcpy() */
40 #include <sys/types.h> /* for off_t */
41 #include <sys/stat.h> /* for stat() */
42 #include "flac_share_compat.h"cxx . . $ `<file>/external/flac/flac_share_compat.h`/
43 #include "flac_FLAC_assert.h"cxx . . $ `<file>/external/flac/flac_FLAC_assert.h`/
44 #include "flac_share_alloc.h"cxx . . $ `<file>/external/flac/flac_share_alloc.h`/
45 #include "flac_protected_stream_decoder.h"cxx . . $ `<file>/external/flac/flac_protected_stream_decoder.h`/
46 #include "flac_private_bitreader.h"cxx . . $ `<file>/external/flac/flac_private_bitreader.h`/
47 #include "flac_private_bitmath.h"cxx . . $ `<file>/external/flac/flac_private_bitmath.h`/
48 #include "flac_private_cpu.h"cxx . . $ `<file>/external/flac/flac_private_cpu.h`/
49 #include "flac_private_crc.h"cxx . . $ `<file>/external/flac/flac_private_crc.h`/
50 #include "flac_private_fixed.h"cxx . . $ `<file>/external/flac/flac_private_fixed.h`/
51 #include "flac_private_format.h"cxx . . $ `<file>/external/flac/flac_private_format.h`/
52 #include "flac_private_lpc.h"cxx . . $ `<file>/external/flac/flac_private_lpc.h`/
53 #include "flac_private_md5.h"cxx . . $ `<file>/external/flac/flac_private_md5.h`/
54 #include "flac_private_memory.h"cxx . . $ `<file>/external/flac/flac_private_memory.h`/
55 #include "flac_private_macros.h"cxx . . $ `<file>/external/flac/flac_private_macros.h`/
56
57
58 /* technically this should be in an "export.c" but this is convenient enough */
59 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! int FLAC_API_SUPPORTS_OGG_FLACcxx . . $ FLAC_API_SUPPORTS_OGG_FLAC. = FLAC__HAS_OGGcxx . . $ `./flac_config.h:42:9`!;
60
61
62 /***********************************************************************
63 *
64 * Private static data
65 *
66 ***********************************************************************/
67
68 static const FLAC__bytecxx . . $ FLAC__byte# ID3V2_TAG_cxx . . $ ID3V2_TAG_.[3] = { 'I', 'D', '3' };
69
70 /***********************************************************************
71 *
72 * Private class method prototypes
73 *
74 ***********************************************************************/
75
76 static void set_defaults_cxx . . $ set_defaults_(1ffd9838c68f2516).(FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder);
77 static FILEcxx . . $ FILE# *get_binary_stdin_cxx . . $ get_binary_stdin_(3637adb0f06093ef).(void);
78 static FLAC__boolcxx . . $ FLAC__bool# allocate_output_cxx . . $ allocate_output_(5ba12e1b1278ecb2).(FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder, uint32_tcxx . . $ uint32_t# size, uint32_tcxx . . $ uint32_t# channels, uint32_tcxx . . $ uint32_t# bps);
79 static FLAC__boolcxx . . $ FLAC__bool# has_id_filtered_cxx . . $ has_id_filtered_(660469bb510a7660).(FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder, FLAC__bytecxx . . $ FLAC__byte# *id);
80 static FLAC__boolcxx . . $ FLAC__bool# find_metadata_cxx . . $ find_metadata_(d92048749c4f1284).(FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder);
81 static FLAC__boolcxx . . $ FLAC__bool# read_metadata_cxx . . $ read_metadata_(d92048749c4f1284).(FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder);
82 static FLAC__boolcxx . . $ FLAC__bool# read_metadata_streaminfo_cxx . . $ read_metadata_streaminfo_(392e0515e5d09fa8).(FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder, FLAC__boolcxx . . $ FLAC__bool# is_last, uint32_tcxx . . $ uint32_t# length);
83 static FLAC__boolcxx . . $ FLAC__bool# read_metadata_seektable_cxx . . $ read_metadata_seektable_(392e0515e5d09fa8).(FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder, FLAC__boolcxx . . $ FLAC__bool# is_last, uint32_tcxx . . $ uint32_t# length);
84 static FLAC__boolcxx . . $ FLAC__bool# read_metadata_vorbiscomment_cxx . . $ read_metadata_vorbiscomment_(6fbb57256c616ac6).(FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder, FLAC__StreamMetadata_VorbisCommentcxx . . $ FLAC__StreamMetadata_VorbisComment# *obj, uint32_tcxx . . $ uint32_t# length);
85 static FLAC__boolcxx . . $ FLAC__bool# read_metadata_cuesheet_cxx . . $ read_metadata_cuesheet_(afdd464cbd786c4d).(FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder, FLAC__StreamMetadata_CueSheetcxx . . $ FLAC__StreamMetadata_CueSheet# *obj);
86 static FLAC__boolcxx . . $ FLAC__bool# read_metadata_picture_cxx . . $ read_metadata_picture_(6991bb8537349498).(FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder, FLAC__StreamMetadata_Picturecxx . . $ FLAC__StreamMetadata_Picture# *obj);
87 static FLAC__boolcxx . . $ FLAC__bool# skip_id3v2_tag_cxx . . $ skip_id3v2_tag_(d92048749c4f1284).(FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder);
88 static FLAC__boolcxx . . $ FLAC__bool# frame_sync_cxx . . $ frame_sync_(d92048749c4f1284).(FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder);
89 static FLAC__boolcxx . . $ FLAC__bool# read_frame_cxx . . $ read_frame_(5998d726cdafdde1).(FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder, FLAC__boolcxx . . $ FLAC__bool# *got_a_frame, FLAC__boolcxx . . $ FLAC__bool# do_full_decode);
90 static FLAC__boolcxx . . $ FLAC__bool# read_frame_header_cxx . . $ read_frame_header_(d92048749c4f1284).(FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder);
91 static FLAC__boolcxx . . $ FLAC__bool# read_subframe_cxx . . $ read_subframe_(7b4273826c07efaa).(FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder, uint32_tcxx . . $ uint32_t# channel, uint32_tcxx . . $ uint32_t# bps, FLAC__boolcxx . . $ FLAC__bool# do_full_decode);
92 static FLAC__boolcxx . . $ FLAC__bool# read_subframe_constant_cxx . . $ read_subframe_constant_(7b4273826c07efaa).(FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder, uint32_tcxx . . $ uint32_t# channel, uint32_tcxx . . $ uint32_t# bps, FLAC__boolcxx . . $ FLAC__bool# do_full_decode);
93 static FLAC__boolcxx . . $ FLAC__bool# read_subframe_fixed_cxx . . $ read_subframe_fixed_(116d129310282964).(FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder, uint32_tcxx . . $ uint32_t# channel, uint32_tcxx . . $ uint32_t# bps, const uint32_tcxx . . $ uint32_t# order, FLAC__boolcxx . . $ FLAC__bool# do_full_decode);
94 static FLAC__boolcxx . . $ FLAC__bool# read_subframe_lpc_cxx . . $ read_subframe_lpc_(116d129310282964).(FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder, uint32_tcxx . . $ uint32_t# channel, uint32_tcxx . . $ uint32_t# bps, const uint32_tcxx . . $ uint32_t# order, FLAC__boolcxx . . $ FLAC__bool# do_full_decode);
95 static FLAC__boolcxx . . $ FLAC__bool# read_subframe_verbatim_cxx . . $ read_subframe_verbatim_(7b4273826c07efaa).(FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder, uint32_tcxx . . $ uint32_t# channel, uint32_tcxx . . $ uint32_t# bps, FLAC__boolcxx . . $ FLAC__bool# do_full_decode);
96 static FLAC__boolcxx . . $ FLAC__bool# read_residual_partitioned_rice_cxx . . $ read_residual_partitioned_rice_(6989f87ac5debb61).(FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder, uint32_tcxx . . $ uint32_t# predictor_order, uint32_tcxx . . $ uint32_t# partition_order, FLAC__EntropyCodingMethod_PartitionedRiceContentscxx . . $ FLAC__EntropyCodingMethod_PartitionedRiceContents# *partitioned_rice_contents, FLAC__int32cxx . . $ FLAC__int32# *residual, FLAC__boolcxx . . $ FLAC__bool# is_extended);
97 static FLAC__boolcxx . . $ FLAC__bool# read_zero_padding_cxx . . $ read_zero_padding_(d92048749c4f1284).(FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder);
98 static void undo_channel_codingcxx . . $ undo_channel_coding(1ffd9838c68f2516).(FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder);
99 static FLAC__boolcxx . . $ FLAC__bool# read_callback_cxx . . $ read_callback_(a63a13006dfa3a4e).(FLAC__bytecxx . . $ FLAC__byte# buffer[], size_t *bytes, void *client_data);
100 #if FLAC__HAS_OGGcxx . . $ `./flac_config.h:42:9`!
101 static FLAC__StreamDecoderReadStatus read_callback_ogg_aspect_(const FLAC__StreamDecoder *decoder, FLAC__byte buffer[], size_t *bytes);
102 static FLAC__OggDecoderAspectReadStatus read_callback_proxy_(const void *void_decoder, FLAC__byte buffer[], size_t *bytes, void *client_data);
103 #endif
104 static FLAC__StreamDecoderWriteStatuscxx . . $ FLAC__StreamDecoderWriteStatus# write_audio_frame_to_client_cxx . . $ write_audio_frame_to_client_(4162e1e0b33b291e).(FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder, const FLAC__Framecxx . . $ FLAC__Frame# *frame, const FLAC__int32cxx . . $ FLAC__int32# * const buffer[]);
105 static void send_error_to_client_cxx . . $ send_error_to_client_(cc791be6cdc6ea1d).(const FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder, FLAC__StreamDecoderErrorStatuscxx . . $ FLAC__StreamDecoderErrorStatus# status);
106 static FLAC__boolcxx . . $ FLAC__bool# seek_to_absolute_sample_cxx . . $ seek_to_absolute_sample_(a5b871fcbd906fe3).(FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder, FLAC__uint64cxx . . $ FLAC__uint64# stream_length, FLAC__uint64cxx . . $ FLAC__uint64# target_sample);
107 #if FLAC__HAS_OGGcxx . . $ `./flac_config.h:42:9`!
108 static FLAC__bool seek_to_absolute_sample_ogg_(FLAC__StreamDecoder *decoder, FLAC__uint64 stream_length, FLAC__uint64 target_sample);
109 #endif
110 static FLAC__StreamDecoderReadStatuscxx . . $ FLAC__StreamDecoderReadStatus# file_read_callback_cxx . . $ file_read_callback_(96f630744ee4379c).(const FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder, FLAC__bytecxx . . $ FLAC__byte# buffer[], size_t *bytes, void *client_data);
111 static FLAC__StreamDecoderSeekStatuscxx . . $ FLAC__StreamDecoderSeekStatus# file_seek_callback_cxx . . $ file_seek_callback_(9c12e157eefe73f4).(const FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder, FLAC__uint64cxx . . $ FLAC__uint64# absolute_byte_offset, void *client_data);
112 static FLAC__StreamDecoderTellStatuscxx . . $ FLAC__StreamDecoderTellStatus# file_tell_callback_cxx . . $ file_tell_callback_(7bc2151b1e5dfc77).(const FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder, FLAC__uint64cxx . . $ FLAC__uint64# *absolute_byte_offset, void *client_data);
113 static FLAC__StreamDecoderLengthStatuscxx . . $ FLAC__StreamDecoderLengthStatus# file_length_callback_cxx . . $ file_length_callback_(93230fe99f0bb400).(const FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder, FLAC__uint64cxx . . $ FLAC__uint64# *stream_length, void *client_data);
114 static FLAC__boolcxx . . $ FLAC__bool# file_eof_callback_cxx . . $ file_eof_callback_(fce8f04acd72eae6).(const FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder, void *client_data);
115 static void reset_decoder_internal_cxx . . $ reset_decoder_internal_(1ffd9838c68f2516).(FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder#* decoder);
116
117 /***********************************************************************
118 *
119 * Private class data
120 *
121 ***********************************************************************/
122
123 typedef struct FLAC__StreamDecoderPrivatecxx . . $ FLAC__StreamDecoderPrivate# {
124 FLAC__boolcxx . . $ FLAC__bool# is_oggcxx . . $ FLAC__StreamDecoderPrivate#is_ogg.;
125 FLAC__StreamDecoderReadCallbackcxx . . $ FLAC__StreamDecoderReadCallback# read_callbackcxx . . $ FLAC__StreamDecoderPrivate#read_callback.;
126 FLAC__StreamDecoderSeekCallbackcxx . . $ FLAC__StreamDecoderSeekCallback# seek_callbackcxx . . $ FLAC__StreamDecoderPrivate#seek_callback.;
127 FLAC__StreamDecoderTellCallbackcxx . . $ FLAC__StreamDecoderTellCallback# tell_callbackcxx . . $ FLAC__StreamDecoderPrivate#tell_callback.;
128 FLAC__StreamDecoderLengthCallbackcxx . . $ FLAC__StreamDecoderLengthCallback# length_callbackcxx . . $ FLAC__StreamDecoderPrivate#length_callback.;
129 FLAC__StreamDecoderEofCallbackcxx . . $ FLAC__StreamDecoderEofCallback# eof_callbackcxx . . $ FLAC__StreamDecoderPrivate#eof_callback.;
130 FLAC__StreamDecoderWriteCallbackcxx . . $ FLAC__StreamDecoderWriteCallback# write_callbackcxx . . $ FLAC__StreamDecoderPrivate#write_callback.;
131 FLAC__StreamDecoderMetadataCallbackcxx . . $ FLAC__StreamDecoderMetadataCallback# metadata_callbackcxx . . $ FLAC__StreamDecoderPrivate#metadata_callback.;
132 FLAC__StreamDecoderErrorCallbackcxx . . $ FLAC__StreamDecoderErrorCallback# error_callbackcxx . . $ FLAC__StreamDecoderPrivate#error_callback.;
133 void *client_datacxx . . $ FLAC__StreamDecoderPrivate#client_data.;
134 FILEcxx . . $ FILE# *filecxx . . $ FLAC__StreamDecoderPrivate#file.; /* only used if FLAC__stream_decoder_init_file()/FLAC__stream_decoder_init_file() called, else NULL */
135 FLAC__BitReadercxx . . $ FLAC__BitReader# *inputcxx . . $ FLAC__StreamDecoderPrivate#input.;
136 FLAC__int32cxx . . $ FLAC__int32# *outputcxx . . $ FLAC__StreamDecoderPrivate#output.[FLAC__MAX_CHANNELScxx . . $ `external/flac/flac_FLAC_format.h:106:9`!];
137 FLAC__int32cxx . . $ FLAC__int32# *residualcxx . . $ FLAC__StreamDecoderPrivate#residual.[FLAC__MAX_CHANNELScxx . . $ `external/flac/flac_FLAC_format.h:106:9`!]; /* WATCHOUT: these are the aligned pointers; the real pointers that should be free()'d are residual_unaligned[] below */
138 FLAC__int64cxx . . $ FLAC__int64# *side_subframecxx . . $ FLAC__StreamDecoderPrivate#side_subframe.;
139 FLAC__boolcxx . . $ FLAC__bool# side_subframe_in_usecxx . . $ FLAC__StreamDecoderPrivate#side_subframe_in_use.;
140 FLAC__EntropyCodingMethod_PartitionedRiceContentscxx . . $ FLAC__EntropyCodingMethod_PartitionedRiceContents# partitioned_rice_contentscxx . . $ FLAC__StreamDecoderPrivate#partitioned_rice_contents.[FLAC__MAX_CHANNELScxx . . $ `external/flac/flac_FLAC_format.h:106:9`!];
141 uint32_tcxx . . $ uint32_t# output_capacitycxx . . $ FLAC__StreamDecoderPrivate#output_capacity., output_channelscxx . . $ FLAC__StreamDecoderPrivate#output_channels.;
142 FLAC__uint32cxx . . $ FLAC__uint32# fixed_block_sizecxx . . $ FLAC__StreamDecoderPrivate#fixed_block_size., next_fixed_block_sizecxx . . $ FLAC__StreamDecoderPrivate#next_fixed_block_size.;
143 FLAC__uint64cxx . . $ FLAC__uint64# samples_decodedcxx . . $ FLAC__StreamDecoderPrivate#samples_decoded.;
144 FLAC__boolcxx . . $ FLAC__bool# has_stream_infocxx . . $ FLAC__StreamDecoderPrivate#has_stream_info., has_seek_tablecxx . . $ FLAC__StreamDecoderPrivate#has_seek_table.;
145 FLAC__StreamMetadatacxx . . $ FLAC__StreamMetadata# stream_infocxx . . $ FLAC__StreamDecoderPrivate#stream_info.;
146 FLAC__StreamMetadatacxx . . $ FLAC__StreamMetadata# seek_tablecxx . . $ FLAC__StreamDecoderPrivate#seek_table.;
147 FLAC__boolcxx . . $ FLAC__bool# metadata_filtercxx . . $ FLAC__StreamDecoderPrivate#metadata_filter.[128]; /* MAGIC number 128 == total number of metadata block types == 1 << 7 */
148 FLAC__bytecxx . . $ FLAC__byte# *metadata_filter_idscxx . . $ FLAC__StreamDecoderPrivate#metadata_filter_ids.;
149 size_t metadata_filter_ids_countcxx . . $ FLAC__StreamDecoderPrivate#metadata_filter_ids_count., metadata_filter_ids_capacitycxx . . $ FLAC__StreamDecoderPrivate#metadata_filter_ids_capacity.; /* units for both are IDs, not bytes */
150 FLAC__Framecxx . . $ FLAC__Frame# framecxx . . $ FLAC__StreamDecoderPrivate#frame.;
151 FLAC__boolcxx . . $ FLAC__bool# cachedcxx . . $ FLAC__StreamDecoderPrivate#cached.; /* true if there is a byte in lookahead */
152 FLAC__CPUInfocxx . . $ FLAC__CPUInfo# cpuinfocxx . . $ FLAC__StreamDecoderPrivate#cpuinfo.;
153 FLAC__bytecxx . . $ FLAC__byte# header_warmupcxx . . $ FLAC__StreamDecoderPrivate#header_warmup.[2]; /* contains the sync code and reserved bits */
154 FLAC__bytecxx . . $ FLAC__byte# lookaheadcxx . . $ FLAC__StreamDecoderPrivate#lookahead.; /* temp storage when we need to look ahead one byte in the stream */
155 /* unaligned (original) pointers to allocated data */
156 FLAC__int32cxx . . $ FLAC__int32# *residual_unalignedcxx . . $ FLAC__StreamDecoderPrivate#residual_unaligned.[FLAC__MAX_CHANNELScxx . . $ `external/flac/flac_FLAC_format.h:106:9`!];
157 FLAC__boolcxx . . $ FLAC__bool# do_md5_checkingcxx . . $ FLAC__StreamDecoderPrivate#do_md5_checking.; /* initially gets protected_->md5_checking but is turned off after a seek or if the metadata has a zero MD5 */
158 FLAC__boolcxx . . $ FLAC__bool# internal_reset_hackcxx . . $ FLAC__StreamDecoderPrivate#internal_reset_hack.; /* used only during init() so we can call reset to set up the decoder without rewinding the input */
159 FLAC__boolcxx . . $ FLAC__bool# is_seekingcxx . . $ FLAC__StreamDecoderPrivate#is_seeking.;
160 FLAC__boolcxx . . $ FLAC__bool# is_indexingcxx . . $ FLAC__StreamDecoderPrivate#is_indexing.; /* to be able to seek in chained streams */
161 FLAC__MD5Contextcxx . . $ FLAC__MD5Context# md5contextcxx . . $ FLAC__StreamDecoderPrivate#md5context.;
162 FLAC__bytecxx . . $ FLAC__byte# computed_md5sumcxx . . $ FLAC__StreamDecoderPrivate#computed_md5sum.[16]; /* this is the sum we computed from the decoded data */
163 /* (the rest of these are only used for seeking) */
164 FLAC__Framecxx . . $ FLAC__Frame# last_framecxx . . $ FLAC__StreamDecoderPrivate#last_frame.; /* holds the info of the last frame we decoded or seeked to */
165 FLAC__boolcxx . . $ FLAC__bool# last_frame_is_setcxx . . $ FLAC__StreamDecoderPrivate#last_frame_is_set.;
166 FLAC__uint64cxx . . $ FLAC__uint64# first_frame_offsetcxx . . $ FLAC__StreamDecoderPrivate#first_frame_offset.; /* hint to the seek routine of where in the stream the first audio frame starts */
167 FLAC__uint64cxx . . $ FLAC__uint64# last_seen_framesynccxx . . $ FLAC__StreamDecoderPrivate#last_seen_framesync.; /* if tell callback works, the location of the last seen frame sync code, to rewind to if needed */
168 FLAC__uint64cxx . . $ FLAC__uint64# target_samplecxx . . $ FLAC__StreamDecoderPrivate#target_sample.;
169 uint32_tcxx . . $ uint32_t# unparseable_frame_countcxx . . $ FLAC__StreamDecoderPrivate#unparseable_frame_count.; /* used to tell whether we're decoding a future version of FLAC or just got a bad sync */
170 FLAC__boolcxx . . $ FLAC__bool# got_a_framecxx . . $ FLAC__StreamDecoderPrivate#got_a_frame.; /* hack needed in Ogg FLAC seek routine and find_total_samples to check when process_single() actually writes a frame */
171 FLAC__boolcxx . . $ FLAC__bool# (*local_bitreader_read_rice_signed_blockcxx . . $ FLAC__StreamDecoderPrivate#local_bitreader_read_rice_signed_block.)(FLAC__BitReadercxx . . $ FLAC__BitReader# *br, int vals[], uint32_tcxx . . $ uint32_t# nvals, uint32_tcxx . . $ uint32_t# parameter);
172 FLAC__boolcxx . . $ FLAC__bool# error_has_been_sentcxx . . $ FLAC__StreamDecoderPrivate#error_has_been_sent.; /* To check whether a missing frame has been signalled yet */
173 #if FLAC__HAS_OGGcxx . . $ `./flac_config.h:42:9`!
174 FLAC__bool ogg_decoder_aspect_allocation_failure;
175 #endif
176 #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
177 uint32_t fuzzing_rewind_count; /* To stop excessive rewinding, as it causes timeouts */
178 #endif
179 } FLAC__StreamDecoderPrivatecxx . . $ FLAC__StreamDecoderPrivate#;
180
181 /***********************************************************************
182 *
183 * Public static class data
184 *
185 ***********************************************************************/
186
187 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! const char * const FLAC__StreamDecoderStateStringcxx . . $ FLAC__StreamDecoderStateString.[] = {
188 "FLAC__STREAM_DECODER_SEARCH_FOR_METADATA",
189 "FLAC__STREAM_DECODER_READ_METADATA",
190 "FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC",
191 "FLAC__STREAM_DECODER_READ_FRAME",
192 "FLAC__STREAM_DECODER_END_OF_STREAM",
193 "FLAC__STREAM_DECODER_OGG_ERROR",
194 "FLAC__STREAM_DECODER_SEEK_ERROR",
195 "FLAC__STREAM_DECODER_ABORTED",
196 "FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR",
197 "FLAC__STREAM_DECODER_UNINITIALIZED",
198 "FLAC__STREAM_DECODER_END_OF_LINK"
199 };
200
201 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! const char * const FLAC__StreamDecoderInitStatusStringcxx . . $ FLAC__StreamDecoderInitStatusString.[] = {
202 "FLAC__STREAM_DECODER_INIT_STATUS_OK",
203 "FLAC__STREAM_DECODER_INIT_STATUS_UNSUPPORTED_CONTAINER",
204 "FLAC__STREAM_DECODER_INIT_STATUS_INVALID_CALLBACKS",
205 "FLAC__STREAM_DECODER_INIT_STATUS_MEMORY_ALLOCATION_ERROR",
206 "FLAC__STREAM_DECODER_INIT_STATUS_ERROR_OPENING_FILE",
207 "FLAC__STREAM_DECODER_INIT_STATUS_ALREADY_INITIALIZED"
208 };
209
210 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! const char * const FLAC__StreamDecoderReadStatusStringcxx . . $ FLAC__StreamDecoderReadStatusString.[] = {
211 "FLAC__STREAM_DECODER_READ_STATUS_CONTINUE",
212 "FLAC__STREAM_DECODER_READ_STATUS_END_OF_STREAM",
213 "FLAC__STREAM_DECODER_READ_STATUS_ABORT",
214 "FLAC__STREAM_DECODER_READ_STATUS_END_OF_LINK"
215 };
216
217 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! const char * const FLAC__StreamDecoderSeekStatusStringcxx . . $ FLAC__StreamDecoderSeekStatusString.[] = {
218 "FLAC__STREAM_DECODER_SEEK_STATUS_OK",
219 "FLAC__STREAM_DECODER_SEEK_STATUS_ERROR",
220 "FLAC__STREAM_DECODER_SEEK_STATUS_UNSUPPORTED"
221 };
222
223 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! const char * const FLAC__StreamDecoderTellStatusStringcxx . . $ FLAC__StreamDecoderTellStatusString.[] = {
224 "FLAC__STREAM_DECODER_TELL_STATUS_OK",
225 "FLAC__STREAM_DECODER_TELL_STATUS_ERROR",
226 "FLAC__STREAM_DECODER_TELL_STATUS_UNSUPPORTED"
227 };
228
229 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! const char * const FLAC__StreamDecoderLengthStatusStringcxx . . $ FLAC__StreamDecoderLengthStatusString.[] = {
230 "FLAC__STREAM_DECODER_LENGTH_STATUS_OK",
231 "FLAC__STREAM_DECODER_LENGTH_STATUS_ERROR",
232 "FLAC__STREAM_DECODER_LENGTH_STATUS_UNSUPPORTED"
233 };
234
235 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! const char * const FLAC__StreamDecoderWriteStatusStringcxx . . $ FLAC__StreamDecoderWriteStatusString.[] = {
236 "FLAC__STREAM_DECODER_WRITE_STATUS_CONTINUE",
237 "FLAC__STREAM_DECODER_WRITE_STATUS_ABORT"
238 };
239
240 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! const char * const FLAC__StreamDecoderErrorStatusStringcxx . . $ FLAC__StreamDecoderErrorStatusString.[] = {
241 "FLAC__STREAM_DECODER_ERROR_STATUS_LOST_SYNC",
242 "FLAC__STREAM_DECODER_ERROR_STATUS_BAD_HEADER",
243 "FLAC__STREAM_DECODER_ERROR_STATUS_FRAME_CRC_MISMATCH",
244 "FLAC__STREAM_DECODER_ERROR_STATUS_UNPARSEABLE_STREAM",
245 "FLAC__STREAM_DECODER_ERROR_STATUS_BAD_METADATA",
246 "FLAC__STREAM_DECODER_ERROR_STATUS_OUT_OF_BOUNDS",
247 "FLAC__STREAM_DECODER_ERROR_STATUS_MISSING_FRAME"
248 };
249
250 /***********************************************************************
251 *
252 * Class constructor/destructor
253 *
254 ***********************************************************************/
255 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *FLAC__stream_decoder_newcxx . . $ FLAC__stream_decoder_new(7336f55c5f66a48b).(void)
256 {
257 FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder;
258 uint32_tcxx . . $ uint32_t# i;
259
260 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(sizeof(int) >= 4); /* we want to die right away if this is not true */
261
262 decoder = safe_calloc_cxx . . $ safe_calloc_(63a7bf2941bfcd7a).(1, sizeof(FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder#));
263 if(decoder == 0) {
264 return 0;
265 }
266
267 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_. = safe_calloc_cxx . . $ safe_calloc_(63a7bf2941bfcd7a).(1, sizeof(FLAC__StreamDecoderProtectedcxx . . $ FLAC__StreamDecoderProtected#));
268 if(decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_. == 0) {
269 freecxx . . $ free(5d22bdacc48458e8).(decoder);
270 return 0;
271 }
272
273 decoder->private_cxx . . $ FLAC__StreamDecoder#private_. = safe_calloc_cxx . . $ safe_calloc_(63a7bf2941bfcd7a).(1, sizeof(FLAC__StreamDecoderPrivatecxx . . $ FLAC__StreamDecoderPrivate#));
274 if(decoder->private_cxx . . $ FLAC__StreamDecoder#private_. == 0) {
275 freecxx . . $ free(5d22bdacc48458e8).(decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.);
276 freecxx . . $ free(5d22bdacc48458e8).(decoder);
277 return 0;
278 }
279
280 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input. = FLAC__bitreader_newcxx . . $ FLAC__bitreader_new(925105cc1ce0d636).();
281 if(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input. == 0) {
282 freecxx . . $ free(5d22bdacc48458e8).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.);
283 freecxx . . $ free(5d22bdacc48458e8).(decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.);
284 freecxx . . $ free(5d22bdacc48458e8).(decoder);
285 return 0;
286 }
287
288 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->metadata_filter_ids_capacitycxx . . $ FLAC__StreamDecoderPrivate#metadata_filter_ids_capacity. = 16;
289 if(0 == (decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->metadata_filter_idscxx . . $ FLAC__StreamDecoderPrivate#metadata_filter_ids. = malloccxx . . $ malloc(bfcfa4d6b7f7ef64).((FLAC__STREAM_METADATA_APPLICATION_ID_LENcxx . . $ FLAC__STREAM_METADATA_APPLICATION_ID_LEN./8) * decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->metadata_filter_ids_capacitycxx . . $ FLAC__StreamDecoderPrivate#metadata_filter_ids_capacity.))) {
290 FLAC__bitreader_deletecxx . . $ FLAC__bitreader_delete(5639cb4d47c4565e).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input.);
291 freecxx . . $ free(5d22bdacc48458e8).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.);
292 freecxx . . $ free(5d22bdacc48458e8).(decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.);
293 freecxx . . $ free(5d22bdacc48458e8).(decoder);
294 return 0;
295 }
296
297 for(i = 0; i < FLAC__MAX_CHANNELScxx . . $ `external/flac/flac_FLAC_format.h:106:9`!; i++) {
298 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->outputcxx . . $ FLAC__StreamDecoderPrivate#output.[i] = 0;
299 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->residual_unalignedcxx . . $ FLAC__StreamDecoderPrivate#residual_unaligned.[i] = decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->residualcxx . . $ FLAC__StreamDecoderPrivate#residual.[i] = 0;
300 }
301
302 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->side_subframecxx . . $ FLAC__StreamDecoderPrivate#side_subframe. = 0;
303
304 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->output_capacitycxx . . $ FLAC__StreamDecoderPrivate#output_capacity. = 0;
305 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->output_channelscxx . . $ FLAC__StreamDecoderPrivate#output_channels. = 0;
306 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->has_seek_tablecxx . . $ FLAC__StreamDecoderPrivate#has_seek_table. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
307
308 for(i = 0; i < FLAC__MAX_CHANNELScxx . . $ `external/flac/flac_FLAC_format.h:106:9`!; i++)
309 FLAC__format_entropy_coding_method_partitioned_rice_contents_initcxx . . $ FLAC__format_entropy_coding_method_partitioned_rice_contents_init(925dcfdf3d8eb675).(&decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->partitioned_rice_contentscxx . . $ FLAC__StreamDecoderPrivate#partitioned_rice_contents.[i]);
310
311 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->filecxx . . $ FLAC__StreamDecoderPrivate#file. = 0;
312
313 set_defaults_cxx . . $ set_defaults_(1ffd9838c68f2516).(decoder);
314
315 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. = FLAC__STREAM_DECODER_UNINITIALIZEDcxx . . $ FLAC__STREAM_DECODER_UNINITIALIZED.;
316
317 return decoder;
318 }
319
320 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! void FLAC__stream_decoder_deletecxx . . $ FLAC__stream_decoder_delete(1ffd9838c68f2516).(FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder)
321 {
322 uint32_tcxx . . $ uint32_t# i;
323
324 if (decoder == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
325 return ;
326
327 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0 != decoder->protected_);
328 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0 != decoder->private_);
329 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0 != decoder->private_->input);
330
331 (void)FLAC__stream_decoder_finishcxx . . $ FLAC__stream_decoder_finish(d92048749c4f1284).(decoder);
332
333 if(0 != decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->metadata_filter_idscxx . . $ FLAC__StreamDecoderPrivate#metadata_filter_ids.)
334 freecxx . . $ free(5d22bdacc48458e8).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->metadata_filter_idscxx . . $ FLAC__StreamDecoderPrivate#metadata_filter_ids.);
335
336 FLAC__bitreader_deletecxx . . $ FLAC__bitreader_delete(5639cb4d47c4565e).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input.);
337
338 for(i = 0; i < FLAC__MAX_CHANNELScxx . . $ `external/flac/flac_FLAC_format.h:106:9`!; i++)
339 FLAC__format_entropy_coding_method_partitioned_rice_contents_clearcxx . . $ FLAC__format_entropy_coding_method_partitioned_rice_contents_clear(925dcfdf3d8eb675).(&decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->partitioned_rice_contentscxx . . $ FLAC__StreamDecoderPrivate#partitioned_rice_contents.[i]);
340
341 freecxx . . $ free(5d22bdacc48458e8).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.);
342 freecxx . . $ free(5d22bdacc48458e8).(decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.);
343 freecxx . . $ free(5d22bdacc48458e8).(decoder);
344 }
345
346 /***********************************************************************
347 *
348 * Public class methods
349 *
350 ***********************************************************************/
351
352 static FLAC__StreamDecoderInitStatuscxx . . $ FLAC__StreamDecoderInitStatus# init_stream_internal_cxx . . $ init_stream_internal_(4d2b6b78c344c01f).(
353 FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder,
354 FLAC__StreamDecoderReadCallbackcxx . . $ FLAC__StreamDecoderReadCallback# read_callback,
355 FLAC__StreamDecoderSeekCallbackcxx . . $ FLAC__StreamDecoderSeekCallback# seek_callback,
356 FLAC__StreamDecoderTellCallbackcxx . . $ FLAC__StreamDecoderTellCallback# tell_callback,
357 FLAC__StreamDecoderLengthCallbackcxx . . $ FLAC__StreamDecoderLengthCallback# length_callback,
358 FLAC__StreamDecoderEofCallbackcxx . . $ FLAC__StreamDecoderEofCallback# eof_callback,
359 FLAC__StreamDecoderWriteCallbackcxx . . $ FLAC__StreamDecoderWriteCallback# write_callback,
360 FLAC__StreamDecoderMetadataCallbackcxx . . $ FLAC__StreamDecoderMetadataCallback# metadata_callback,
361 FLAC__StreamDecoderErrorCallbackcxx . . $ FLAC__StreamDecoderErrorCallback# error_callback,
362 void *client_data,
363 FLAC__boolcxx . . $ FLAC__bool# is_ogg
364 )
365 {
366 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0 != decoder);
367
368 if(decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. != FLAC__STREAM_DECODER_UNINITIALIZEDcxx . . $ FLAC__STREAM_DECODER_UNINITIALIZED.)
369 return FLAC__STREAM_DECODER_INIT_STATUS_ALREADY_INITIALIZEDcxx . . $ FLAC__STREAM_DECODER_INIT_STATUS_ALREADY_INITIALIZED.;
370
371 if(FLAC__HAS_OGGcxx . . $ `./flac_config.h:42:9`! == 0 && is_ogg)
372 return FLAC__STREAM_DECODER_INIT_STATUS_UNSUPPORTED_CONTAINERcxx . . $ FLAC__STREAM_DECODER_INIT_STATUS_UNSUPPORTED_CONTAINER.;
373
374 if(
375 0 == read_callback ||
376 0 == write_callback ||
377 0 == error_callback ||
378 (seek_callback && (0 == tell_callback || 0 == length_callback || 0 == eof_callback))
379 )
380 return FLAC__STREAM_DECODER_INIT_STATUS_INVALID_CALLBACKScxx . . $ FLAC__STREAM_DECODER_INIT_STATUS_INVALID_CALLBACKS.;
381
382 #if FLAC__HAS_OGGcxx . . $ `./flac_config.h:42:9`!
383 decoder->private_->is_ogg = is_ogg;
384 if(is_ogg && !FLAC__ogg_decoder_aspect_init(&decoder->protected_->ogg_decoder_aspect)) {
385 FLAC__ogg_decoder_aspect_finish(&decoder->protected_->ogg_decoder_aspect);
386 return decoder->protected_->initstate = FLAC__STREAM_DECODER_INIT_STATUS_ERROR_OPENING_FILE;
387 }
388 #endif
389
390 FLAC__cpu_infocxx . . $ FLAC__cpu_info(add83a8062c32f2e).(&decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->cpuinfocxx . . $ FLAC__StreamDecoderPrivate#cpuinfo.);
391 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->local_bitreader_read_rice_signed_blockcxx . . $ FLAC__StreamDecoderPrivate#local_bitreader_read_rice_signed_block. = FLAC__bitreader_read_rice_signed_blockcxx . . $ FLAC__bitreader_read_rice_signed_block(c8c9976842d03b12).;
392
393 #ifdef FLAC__BMI2_SUPPORTED
394 if (decoder->private_->cpuinfo.x86.bmi2) {
395 decoder->private_->local_bitreader_read_rice_signed_block = FLAC__bitreader_read_rice_signed_block_bmi2;
396 }
397 #endif
398
399 /* from here on, errors are fatal */
400
401 if(!FLAC__bitreader_initcxx . . $ FLAC__bitreader_init(4af8c238fd0c2490).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., read_callback_cxx . . $ read_callback_(a63a13006dfa3a4e)., decoder)) {
402 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. = FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERRORcxx . . $ FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR.;
403 return FLAC__STREAM_DECODER_INIT_STATUS_MEMORY_ALLOCATION_ERRORcxx . . $ FLAC__STREAM_DECODER_INIT_STATUS_MEMORY_ALLOCATION_ERROR.;
404 }
405
406 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->read_callbackcxx . . $ FLAC__StreamDecoderPrivate#read_callback. = read_callback;
407 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->seek_callbackcxx . . $ FLAC__StreamDecoderPrivate#seek_callback. = seek_callback;
408 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->tell_callbackcxx . . $ FLAC__StreamDecoderPrivate#tell_callback. = tell_callback;
409 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->length_callbackcxx . . $ FLAC__StreamDecoderPrivate#length_callback. = length_callback;
410 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->eof_callbackcxx . . $ FLAC__StreamDecoderPrivate#eof_callback. = eof_callback;
411 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->write_callbackcxx . . $ FLAC__StreamDecoderPrivate#write_callback. = write_callback;
412 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->metadata_callbackcxx . . $ FLAC__StreamDecoderPrivate#metadata_callback. = metadata_callback;
413 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->error_callbackcxx . . $ FLAC__StreamDecoderPrivate#error_callback. = error_callback;
414 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->client_datacxx . . $ FLAC__StreamDecoderPrivate#client_data. = client_data;
415 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->fixed_block_sizecxx . . $ FLAC__StreamDecoderPrivate#fixed_block_size. = decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->next_fixed_block_sizecxx . . $ FLAC__StreamDecoderPrivate#next_fixed_block_size. = 0;
416 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->samples_decodedcxx . . $ FLAC__StreamDecoderPrivate#samples_decoded. = 0;
417 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->has_stream_infocxx . . $ FLAC__StreamDecoderPrivate#has_stream_info. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
418 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->cachedcxx . . $ FLAC__StreamDecoderPrivate#cached. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
419
420 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->do_md5_checkingcxx . . $ FLAC__StreamDecoderPrivate#do_md5_checking. = decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->md5_checkingcxx . . $ FLAC__StreamDecoderProtected#md5_checking.;
421 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->is_seekingcxx . . $ FLAC__StreamDecoderPrivate#is_seeking. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
422 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->is_indexingcxx . . $ FLAC__StreamDecoderPrivate#is_indexing. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
423
424 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->internal_reset_hackcxx . . $ FLAC__StreamDecoderPrivate#internal_reset_hack. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!; /* so the following reset does not try to rewind the input */
425 if(!FLAC__stream_decoder_resetcxx . . $ FLAC__stream_decoder_reset(d92048749c4f1284).(decoder)) {
426 /* above call sets the state for us */
427 return FLAC__STREAM_DECODER_INIT_STATUS_MEMORY_ALLOCATION_ERRORcxx . . $ FLAC__STREAM_DECODER_INIT_STATUS_MEMORY_ALLOCATION_ERROR.;
428 }
429
430 return FLAC__STREAM_DECODER_INIT_STATUS_OKcxx . . $ FLAC__STREAM_DECODER_INIT_STATUS_OK.;
431 }
432
433 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! FLAC__StreamDecoderInitStatuscxx . . $ FLAC__StreamDecoderInitStatus# FLAC__stream_decoder_init_streamcxx . . $ FLAC__stream_decoder_init_stream(fc0e47a783f86a6a).(
434 FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder,
435 FLAC__StreamDecoderReadCallbackcxx . . $ FLAC__StreamDecoderReadCallback# read_callback,
436 FLAC__StreamDecoderSeekCallbackcxx . . $ FLAC__StreamDecoderSeekCallback# seek_callback,
437 FLAC__StreamDecoderTellCallbackcxx . . $ FLAC__StreamDecoderTellCallback# tell_callback,
438 FLAC__StreamDecoderLengthCallbackcxx . . $ FLAC__StreamDecoderLengthCallback# length_callback,
439 FLAC__StreamDecoderEofCallbackcxx . . $ FLAC__StreamDecoderEofCallback# eof_callback,
440 FLAC__StreamDecoderWriteCallbackcxx . . $ FLAC__StreamDecoderWriteCallback# write_callback,
441 FLAC__StreamDecoderMetadataCallbackcxx . . $ FLAC__StreamDecoderMetadataCallback# metadata_callback,
442 FLAC__StreamDecoderErrorCallbackcxx . . $ FLAC__StreamDecoderErrorCallback# error_callback,
443 void *client_data
444 )
445 {
446 return init_stream_internal_cxx . . $ init_stream_internal_(4d2b6b78c344c01f).(
447 decoder,
448 read_callback,
449 seek_callback,
450 tell_callback,
451 length_callback,
452 eof_callback,
453 write_callback,
454 metadata_callback,
455 error_callback,
456 client_data,
457 /*is_ogg=*/falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!
458 );
459 }
460
461 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! FLAC__StreamDecoderInitStatuscxx . . $ FLAC__StreamDecoderInitStatus# FLAC__stream_decoder_init_ogg_streamcxx . . $ FLAC__stream_decoder_init_ogg_stream(fc0e47a783f86a6a).(
462 FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder,
463 FLAC__StreamDecoderReadCallbackcxx . . $ FLAC__StreamDecoderReadCallback# read_callback,
464 FLAC__StreamDecoderSeekCallbackcxx . . $ FLAC__StreamDecoderSeekCallback# seek_callback,
465 FLAC__StreamDecoderTellCallbackcxx . . $ FLAC__StreamDecoderTellCallback# tell_callback,
466 FLAC__StreamDecoderLengthCallbackcxx . . $ FLAC__StreamDecoderLengthCallback# length_callback,
467 FLAC__StreamDecoderEofCallbackcxx . . $ FLAC__StreamDecoderEofCallback# eof_callback,
468 FLAC__StreamDecoderWriteCallbackcxx . . $ FLAC__StreamDecoderWriteCallback# write_callback,
469 FLAC__StreamDecoderMetadataCallbackcxx . . $ FLAC__StreamDecoderMetadataCallback# metadata_callback,
470 FLAC__StreamDecoderErrorCallbackcxx . . $ FLAC__StreamDecoderErrorCallback# error_callback,
471 void *client_data
472 )
473 {
474 return init_stream_internal_cxx . . $ init_stream_internal_(4d2b6b78c344c01f).(
475 decoder,
476 read_callback,
477 seek_callback,
478 tell_callback,
479 length_callback,
480 eof_callback,
481 write_callback,
482 metadata_callback,
483 error_callback,
484 client_data,
485 /*is_ogg=*/truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!
486 );
487 }
488
489 static FLAC__StreamDecoderInitStatuscxx . . $ FLAC__StreamDecoderInitStatus# init_FILE_internal_cxx . . $ init_FILE_internal_(fd630393c66288eb).(
490 FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder,
491 FILEcxx . . $ FILE# *file,
492 FLAC__StreamDecoderWriteCallbackcxx . . $ FLAC__StreamDecoderWriteCallback# write_callback,
493 FLAC__StreamDecoderMetadataCallbackcxx . . $ FLAC__StreamDecoderMetadataCallback# metadata_callback,
494 FLAC__StreamDecoderErrorCallbackcxx . . $ FLAC__StreamDecoderErrorCallback# error_callback,
495 void *client_data,
496 FLAC__boolcxx . . $ FLAC__bool# is_ogg
497 )
498 {
499 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0 != decoder);
500 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0 != file);
501
502 if(decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. != FLAC__STREAM_DECODER_UNINITIALIZEDcxx . . $ FLAC__STREAM_DECODER_UNINITIALIZED.)
503 return decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->initstatecxx . . $ FLAC__StreamDecoderProtected#initstate. = FLAC__STREAM_DECODER_INIT_STATUS_ALREADY_INITIALIZEDcxx . . $ FLAC__STREAM_DECODER_INIT_STATUS_ALREADY_INITIALIZED.;
504
505 if(0 == write_callback || 0 == error_callback)
506 return decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->initstatecxx . . $ FLAC__StreamDecoderProtected#initstate. = FLAC__STREAM_DECODER_INIT_STATUS_INVALID_CALLBACKScxx . . $ FLAC__STREAM_DECODER_INIT_STATUS_INVALID_CALLBACKS.;
507
508 /*
509 * To make sure that our file does not go unclosed after an error, we
510 * must assign the FILE pointer before any further error can occur in
511 * this routine.
512 */
513 if(file == stdincxx . . $ `<external>/232824719582829767/stdio.h:153:9`!)
514 file = get_binary_stdin_cxx . . $ get_binary_stdin_(3637adb0f06093ef).(); /* just to be safe */
515
516 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->filecxx . . $ FLAC__StreamDecoderPrivate#file. = file;
517
518 return init_stream_internal_cxx . . $ init_stream_internal_(4d2b6b78c344c01f).(
519 decoder,
520 file_read_callback_cxx . . $ file_read_callback_(96f630744ee4379c).,
521 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->filecxx . . $ FLAC__StreamDecoderPrivate#file. == stdincxx . . $ `<external>/232824719582829767/stdio.h:153:9`!? 0: file_seek_callback_cxx . . $ file_seek_callback_(9c12e157eefe73f4).,
522 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->filecxx . . $ FLAC__StreamDecoderPrivate#file. == stdincxx . . $ `<external>/232824719582829767/stdio.h:153:9`!? 0: file_tell_callback_cxx . . $ file_tell_callback_(7bc2151b1e5dfc77).,
523 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->filecxx . . $ FLAC__StreamDecoderPrivate#file. == stdincxx . . $ `<external>/232824719582829767/stdio.h:153:9`!? 0: file_length_callback_cxx . . $ file_length_callback_(93230fe99f0bb400).,
524 file_eof_callback_cxx . . $ file_eof_callback_(fce8f04acd72eae6).,
525 write_callback,
526 metadata_callback,
527 error_callback,
528 client_data,
529 is_ogg
530 );
531 }
532
533 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! FLAC__StreamDecoderInitStatuscxx . . $ FLAC__StreamDecoderInitStatus# FLAC__stream_decoder_init_FILEcxx . . $ FLAC__stream_decoder_init_FILE(e87fc0e2dde00fdd).(
534 FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder,
535 FILEcxx . . $ FILE# *file,
536 FLAC__StreamDecoderWriteCallbackcxx . . $ FLAC__StreamDecoderWriteCallback# write_callback,
537 FLAC__StreamDecoderMetadataCallbackcxx . . $ FLAC__StreamDecoderMetadataCallback# metadata_callback,
538 FLAC__StreamDecoderErrorCallbackcxx . . $ FLAC__StreamDecoderErrorCallback# error_callback,
539 void *client_data
540 )
541 {
542 return init_FILE_internal_cxx . . $ init_FILE_internal_(fd630393c66288eb).(decoder, file, write_callback, metadata_callback, error_callback, client_data, /*is_ogg=*/falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!);
543 }
544
545 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! FLAC__StreamDecoderInitStatuscxx . . $ FLAC__StreamDecoderInitStatus# FLAC__stream_decoder_init_ogg_FILEcxx . . $ FLAC__stream_decoder_init_ogg_FILE(e87fc0e2dde00fdd).(
546 FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder,
547 FILEcxx . . $ FILE# *file,
548 FLAC__StreamDecoderWriteCallbackcxx . . $ FLAC__StreamDecoderWriteCallback# write_callback,
549 FLAC__StreamDecoderMetadataCallbackcxx . . $ FLAC__StreamDecoderMetadataCallback# metadata_callback,
550 FLAC__StreamDecoderErrorCallbackcxx . . $ FLAC__StreamDecoderErrorCallback# error_callback,
551 void *client_data
552 )
553 {
554 return init_FILE_internal_cxx . . $ init_FILE_internal_(fd630393c66288eb).(decoder, file, write_callback, metadata_callback, error_callback, client_data, /*is_ogg=*/truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!);
555 }
556
557 static FLAC__StreamDecoderInitStatuscxx . . $ FLAC__StreamDecoderInitStatus# init_file_internal_cxx . . $ init_file_internal_(e75d9e217403ac99).(
558 FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder,
559 const char *filename,
560 FLAC__StreamDecoderWriteCallbackcxx . . $ FLAC__StreamDecoderWriteCallback# write_callback,
561 FLAC__StreamDecoderMetadataCallbackcxx . . $ FLAC__StreamDecoderMetadataCallback# metadata_callback,
562 FLAC__StreamDecoderErrorCallbackcxx . . $ FLAC__StreamDecoderErrorCallback# error_callback,
563 void *client_data,
564 FLAC__boolcxx . . $ FLAC__bool# is_ogg
565 )
566 {
567 FILEcxx . . $ FILE# *file;
568
569 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0 != decoder);
570
571 /*
572 * To make sure that our file does not go unclosed after an error, we
573 * have to do the same entrance checks here that are later performed
574 * in FLAC__stream_decoder_init_FILE() before the FILE* is assigned.
575 */
576 if(decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. != FLAC__STREAM_DECODER_UNINITIALIZEDcxx . . $ FLAC__STREAM_DECODER_UNINITIALIZED.)
577 return decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->initstatecxx . . $ FLAC__StreamDecoderProtected#initstate. = FLAC__STREAM_DECODER_INIT_STATUS_ALREADY_INITIALIZEDcxx . . $ FLAC__STREAM_DECODER_INIT_STATUS_ALREADY_INITIALIZED.;
578
579 if(0 == write_callback || 0 == error_callback)
580 return decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->initstatecxx . . $ FLAC__StreamDecoderProtected#initstate. = FLAC__STREAM_DECODER_INIT_STATUS_INVALID_CALLBACKScxx . . $ FLAC__STREAM_DECODER_INIT_STATUS_INVALID_CALLBACKS.;
581
582 file = filename? flac_fopencxx . . $ `external/flac/flac_share_compat.h:200:9`!(filename, "rb") : stdincxx . . $ `<external>/232824719582829767/stdio.h:153:9`!;
583
584 if(0 == file)
585 return FLAC__STREAM_DECODER_INIT_STATUS_ERROR_OPENING_FILEcxx . . $ FLAC__STREAM_DECODER_INIT_STATUS_ERROR_OPENING_FILE.;
586
587 return init_FILE_internal_cxx . . $ init_FILE_internal_(fd630393c66288eb).(decoder, file, write_callback, metadata_callback, error_callback, client_data, is_ogg);
588 }
589
590 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! FLAC__StreamDecoderInitStatuscxx . . $ FLAC__StreamDecoderInitStatus# FLAC__stream_decoder_init_filecxx . . $ FLAC__stream_decoder_init_file(8533d49b78a1e68d).(
591 FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder,
592 const char *filename,
593 FLAC__StreamDecoderWriteCallbackcxx . . $ FLAC__StreamDecoderWriteCallback# write_callback,
594 FLAC__StreamDecoderMetadataCallbackcxx . . $ FLAC__StreamDecoderMetadataCallback# metadata_callback,
595 FLAC__StreamDecoderErrorCallbackcxx . . $ FLAC__StreamDecoderErrorCallback# error_callback,
596 void *client_data
597 )
598 {
599 return init_file_internal_cxx . . $ init_file_internal_(e75d9e217403ac99).(decoder, filename, write_callback, metadata_callback, error_callback, client_data, /*is_ogg=*/falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!);
600 }
601
602 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! FLAC__StreamDecoderInitStatuscxx . . $ FLAC__StreamDecoderInitStatus# FLAC__stream_decoder_init_ogg_filecxx . . $ FLAC__stream_decoder_init_ogg_file(8533d49b78a1e68d).(
603 FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder,
604 const char *filename,
605 FLAC__StreamDecoderWriteCallbackcxx . . $ FLAC__StreamDecoderWriteCallback# write_callback,
606 FLAC__StreamDecoderMetadataCallbackcxx . . $ FLAC__StreamDecoderMetadataCallback# metadata_callback,
607 FLAC__StreamDecoderErrorCallbackcxx . . $ FLAC__StreamDecoderErrorCallback# error_callback,
608 void *client_data
609 )
610 {
611 return init_file_internal_cxx . . $ init_file_internal_(e75d9e217403ac99).(decoder, filename, write_callback, metadata_callback, error_callback, client_data, /*is_ogg=*/truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!);
612 }
613
614 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! FLAC__boolcxx . . $ FLAC__bool# FLAC__stream_decoder_finishcxx . . $ FLAC__stream_decoder_finish(d92048749c4f1284).(FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder)
615 {
616 FLAC__boolcxx . . $ FLAC__bool# md5_failed = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
617 uint32_tcxx . . $ uint32_t# i;
618
619 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0 != decoder);
620 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0 != decoder->private_);
621 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0 != decoder->protected_);
622
623 if(decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. == FLAC__STREAM_DECODER_UNINITIALIZEDcxx . . $ FLAC__STREAM_DECODER_UNINITIALIZED.)
624 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
625
626 /* see the comment in FLAC__stream_decoder_reset() as to why we
627 * always call FLAC__MD5Final()
628 */
629 FLAC__MD5Finalcxx . . $ FLAC__MD5Final(ec6550fe48f30192).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->computed_md5sumcxx . . $ FLAC__StreamDecoderPrivate#computed_md5sum., &decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->md5contextcxx . . $ FLAC__StreamDecoderPrivate#md5context.);
630
631 freecxx . . $ free(5d22bdacc48458e8).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->seek_tablecxx . . $ FLAC__StreamDecoderPrivate#seek_table..datacxx . . $ FLAC__StreamMetadata#data..seek_tablecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#seek_table..pointscxx . . $ $anonymous_type_81a4853959168ec7_25#points.);
632 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->seek_tablecxx . . $ FLAC__StreamDecoderPrivate#seek_table..datacxx . . $ FLAC__StreamMetadata#data..seek_tablecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#seek_table..pointscxx . . $ $anonymous_type_81a4853959168ec7_25#points. = 0;
633 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->has_seek_tablecxx . . $ FLAC__StreamDecoderPrivate#has_seek_table. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
634
635 FLAC__bitreader_freecxx . . $ FLAC__bitreader_free(5639cb4d47c4565e).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input.);
636 for(i = 0; i < FLAC__MAX_CHANNELScxx . . $ `external/flac/flac_FLAC_format.h:106:9`!; i++) {
637 /* WATCHOUT:
638 * FLAC__lpc_restore_signal_asm_ia32_mmx() and ..._intrin_sseN()
639 * require that the output arrays have a buffer of up to 3 zeroes
640 * in front (at negative indices) for alignment purposes;
641 * we use 4 to keep the data well-aligned.
642 */
643 if(0 != decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->outputcxx . . $ FLAC__StreamDecoderPrivate#output.[i]) {
644 freecxx . . $ free(5d22bdacc48458e8).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->outputcxx . . $ FLAC__StreamDecoderPrivate#output.[i]-4);
645 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->outputcxx . . $ FLAC__StreamDecoderPrivate#output.[i] = 0;
646 }
647 if(0 != decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->residual_unalignedcxx . . $ FLAC__StreamDecoderPrivate#residual_unaligned.[i]) {
648 freecxx . . $ free(5d22bdacc48458e8).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->residual_unalignedcxx . . $ FLAC__StreamDecoderPrivate#residual_unaligned.[i]);
649 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->residual_unalignedcxx . . $ FLAC__StreamDecoderPrivate#residual_unaligned.[i] = decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->residualcxx . . $ FLAC__StreamDecoderPrivate#residual.[i] = 0;
650 }
651 }
652 if(0 != decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->side_subframecxx . . $ FLAC__StreamDecoderPrivate#side_subframe.) {
653 freecxx . . $ free(5d22bdacc48458e8).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->side_subframecxx . . $ FLAC__StreamDecoderPrivate#side_subframe.);
654 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->side_subframecxx . . $ FLAC__StreamDecoderPrivate#side_subframe. = 0;
655 }
656 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->output_capacitycxx . . $ FLAC__StreamDecoderPrivate#output_capacity. = 0;
657 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->output_channelscxx . . $ FLAC__StreamDecoderPrivate#output_channels. = 0;
658
659 #if FLAC__HAS_OGGcxx . . $ `./flac_config.h:42:9`!
660 if(decoder->private_->is_ogg)
661 FLAC__ogg_decoder_aspect_finish(&decoder->protected_->ogg_decoder_aspect);
662 #endif
663
664 if(0 != decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->filecxx . . $ FLAC__StreamDecoderPrivate#file.) {
665 if(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->filecxx . . $ FLAC__StreamDecoderPrivate#file. != stdincxx . . $ `<external>/232824719582829767/stdio.h:153:9`!)
666 fclosecxx . . $ fclose(89bc1efcdac0ca22).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->filecxx . . $ FLAC__StreamDecoderPrivate#file.);
667 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->filecxx . . $ FLAC__StreamDecoderPrivate#file. = 0;
668 }
669
670 if(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->do_md5_checkingcxx . . $ FLAC__StreamDecoderPrivate#do_md5_checking.) {
671 if(memcmpcxx . . $ memcmp(36f949851efa3055).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->stream_infocxx . . $ FLAC__StreamDecoderPrivate#stream_info..datacxx . . $ FLAC__StreamMetadata#data..stream_infocxx . . $ FLAC__StreamMetadata#$anonymous_type_34#stream_info..md5sumcxx . . $ $anonymous_type_81a4853959168ec7_21#md5sum., decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->computed_md5sumcxx . . $ FLAC__StreamDecoderPrivate#computed_md5sum., 16))
672 md5_failed = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
673 }
674 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->is_seekingcxx . . $ FLAC__StreamDecoderPrivate#is_seeking. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
675 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->is_indexingcxx . . $ FLAC__StreamDecoderPrivate#is_indexing. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
676
677 set_defaults_cxx . . $ set_defaults_(1ffd9838c68f2516).(decoder);
678
679 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. = FLAC__STREAM_DECODER_UNINITIALIZEDcxx . . $ FLAC__STREAM_DECODER_UNINITIALIZED.;
680
681 return !md5_failed;
682 }
683
684 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! FLAC__boolcxx . . $ FLAC__bool# FLAC__stream_decoder_set_ogg_serial_numbercxx . . $ FLAC__stream_decoder_set_ogg_serial_number(9a156266a02e794f).(FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder, long value)
685 {
686 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0 != decoder);
687 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0 != decoder->private_);
688 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0 != decoder->protected_);
689 if(decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. != FLAC__STREAM_DECODER_UNINITIALIZEDcxx . . $ FLAC__STREAM_DECODER_UNINITIALIZED.)
690 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
691 #if FLAC__HAS_OGGcxx . . $ `./flac_config.h:42:9`!
692 /* can't check decoder->private_->is_ogg since that's not set until init time */
693 FLAC__ogg_decoder_aspect_set_serial_number(&decoder->protected_->ogg_decoder_aspect, value);
694 return true;
695 #else
696 (void)value;
697 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
698 #endif
699 }
700
701 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! FLAC__boolcxx . . $ FLAC__bool# FLAC__stream_decoder_set_decode_chained_streamcxx . . $ FLAC__stream_decoder_set_decode_chained_stream(179b1a96f8cf0980).(FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder#* decoder, FLAC__boolcxx . . $ FLAC__bool# value)
702 {
703 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0 != decoder);
704 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0 != decoder->protected_);
705 if (decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. != FLAC__STREAM_DECODER_UNINITIALIZEDcxx . . $ FLAC__STREAM_DECODER_UNINITIALIZED.)
706 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
707 #if FLAC__HAS_OGGcxx . . $ `./flac_config.h:42:9`!
708 FLAC__ogg_decoder_aspect_set_decode_chained_stream(&decoder->protected_->ogg_decoder_aspect, value);
709 return true;
710 #else
711 (void)value;
712 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
713 #endif
714 }
715
716 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! FLAC__boolcxx . . $ FLAC__bool# FLAC__stream_decoder_set_md5_checkingcxx . . $ FLAC__stream_decoder_set_md5_checking(179b1a96f8cf0980).(FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder, FLAC__boolcxx . . $ FLAC__bool# value)
717 {
718 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0 != decoder);
719 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0 != decoder->protected_);
720 if(decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. != FLAC__STREAM_DECODER_UNINITIALIZEDcxx . . $ FLAC__STREAM_DECODER_UNINITIALIZED.)
721 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
722 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->md5_checkingcxx . . $ FLAC__StreamDecoderProtected#md5_checking. = value;
723 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
724 }
725
726 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! FLAC__boolcxx . . $ FLAC__bool# FLAC__stream_decoder_set_metadata_respondcxx . . $ FLAC__stream_decoder_set_metadata_respond(b396ab4035fefde5).(FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder, FLAC__MetadataTypecxx . . $ FLAC__MetadataType# type)
727 {
728 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0 != decoder);
729 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0 != decoder->private_);
730 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0 != decoder->protected_);
731 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!((uint32_t)type <= FLAC__MAX_METADATA_TYPE_CODEcxx . . $ `external/flac/flac_FLAC_format.h:93:9`!);
732 /* double protection */
733 if((uint32_tcxx . . $ uint32_t#)type > FLAC__MAX_METADATA_TYPE_CODEcxx . . $ `external/flac/flac_FLAC_format.h:93:9`!)
734 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
735 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->metadata_filtercxx . . $ FLAC__StreamDecoderPrivate#metadata_filter.[type] = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
736 if(type == FLAC__METADATA_TYPE_APPLICATIONcxx . . $ FLAC__METADATA_TYPE_APPLICATION.)
737 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->metadata_filter_ids_countcxx . . $ FLAC__StreamDecoderPrivate#metadata_filter_ids_count. = 0;
738 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
739 }
740
741 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! FLAC__boolcxx . . $ FLAC__bool# FLAC__stream_decoder_set_metadata_respond_applicationcxx . . $ FLAC__stream_decoder_set_metadata_respond_application(23758cddfaa77620).(FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder, const FLAC__bytecxx . . $ FLAC__byte# id[4])
742 {
743 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0 != decoder);
744 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0 != decoder->private_);
745 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0 != decoder->protected_);
746 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0 != id);
747
748 if(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->metadata_filtercxx . . $ FLAC__StreamDecoderPrivate#metadata_filter.[FLAC__METADATA_TYPE_APPLICATIONcxx . . $ FLAC__METADATA_TYPE_APPLICATION.])
749 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
750
751 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0 != decoder->private_->metadata_filter_ids);
752
753 if(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->metadata_filter_ids_countcxx . . $ FLAC__StreamDecoderPrivate#metadata_filter_ids_count. == decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->metadata_filter_ids_capacitycxx . . $ FLAC__StreamDecoderPrivate#metadata_filter_ids_capacity.) {
754 if(0 == (decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->metadata_filter_idscxx . . $ FLAC__StreamDecoderPrivate#metadata_filter_ids. = safe_realloc_mul_2op_cxx . . $ safe_realloc_mul_2op_(dfa4a9ebc9436eff).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->metadata_filter_idscxx . . $ FLAC__StreamDecoderPrivate#metadata_filter_ids., decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->metadata_filter_ids_capacitycxx . . $ FLAC__StreamDecoderPrivate#metadata_filter_ids_capacity., /*times*/2))) {
755 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. = FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERRORcxx . . $ FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR.;
756 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
757 }
758 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->metadata_filter_ids_capacitycxx . . $ FLAC__StreamDecoderPrivate#metadata_filter_ids_capacity. *= 2;
759 }
760
761 memcpycxx . . $ memcpy(cc817cb175f282d).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->metadata_filter_idscxx . . $ FLAC__StreamDecoderPrivate#metadata_filter_ids. + decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->metadata_filter_ids_countcxx . . $ FLAC__StreamDecoderPrivate#metadata_filter_ids_count. * (FLAC__STREAM_METADATA_APPLICATION_ID_LENcxx . . $ FLAC__STREAM_METADATA_APPLICATION_ID_LEN./8), id, (FLAC__STREAM_METADATA_APPLICATION_ID_LENcxx . . $ FLAC__STREAM_METADATA_APPLICATION_ID_LEN./8));
762 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->metadata_filter_ids_countcxx . . $ FLAC__StreamDecoderPrivate#metadata_filter_ids_count.++;
763
764 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
765 }
766
767 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! FLAC__boolcxx . . $ FLAC__bool# FLAC__stream_decoder_set_metadata_respond_allcxx . . $ FLAC__stream_decoder_set_metadata_respond_all(d92048749c4f1284).(FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder)
768 {
769 uint32_tcxx . . $ uint32_t# i;
770 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0 != decoder);
771 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0 != decoder->private_);
772 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0 != decoder->protected_);
773 for(i = 0; i < sizeof(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->metadata_filtercxx . . $ FLAC__StreamDecoderPrivate#metadata_filter.) / sizeof(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->metadata_filtercxx . . $ FLAC__StreamDecoderPrivate#metadata_filter.[0]); i++)
774 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->metadata_filtercxx . . $ FLAC__StreamDecoderPrivate#metadata_filter.[i] = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
775 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->metadata_filter_ids_countcxx . . $ FLAC__StreamDecoderPrivate#metadata_filter_ids_count. = 0;
776 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
777 }
778
779 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! FLAC__boolcxx . . $ FLAC__bool# FLAC__stream_decoder_set_metadata_ignorecxx . . $ FLAC__stream_decoder_set_metadata_ignore(b396ab4035fefde5).(FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder, FLAC__MetadataTypecxx . . $ FLAC__MetadataType# type)
780 {
781 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0 != decoder);
782 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0 != decoder->private_);
783 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0 != decoder->protected_);
784 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!((uint32_t)type <= FLAC__MAX_METADATA_TYPE_CODEcxx . . $ `external/flac/flac_FLAC_format.h:93:9`!);
785 /* double protection */
786 if((uint32_tcxx . . $ uint32_t#)type > FLAC__MAX_METADATA_TYPE_CODEcxx . . $ `external/flac/flac_FLAC_format.h:93:9`!)
787 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
788 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->metadata_filtercxx . . $ FLAC__StreamDecoderPrivate#metadata_filter.[type] = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
789 if(type == FLAC__METADATA_TYPE_APPLICATIONcxx . . $ FLAC__METADATA_TYPE_APPLICATION.)
790 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->metadata_filter_ids_countcxx . . $ FLAC__StreamDecoderPrivate#metadata_filter_ids_count. = 0;
791 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
792 }
793
794 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! FLAC__boolcxx . . $ FLAC__bool# FLAC__stream_decoder_set_metadata_ignore_applicationcxx . . $ FLAC__stream_decoder_set_metadata_ignore_application(23758cddfaa77620).(FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder, const FLAC__bytecxx . . $ FLAC__byte# id[4])
795 {
796 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0 != decoder);
797 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0 != decoder->private_);
798 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0 != decoder->protected_);
799 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0 != id);
800
801 if(!decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->metadata_filtercxx . . $ FLAC__StreamDecoderPrivate#metadata_filter.[FLAC__METADATA_TYPE_APPLICATIONcxx . . $ FLAC__METADATA_TYPE_APPLICATION.])
802 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
803
804 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0 != decoder->private_->metadata_filter_ids);
805
806 if(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->metadata_filter_ids_countcxx . . $ FLAC__StreamDecoderPrivate#metadata_filter_ids_count. == decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->metadata_filter_ids_capacitycxx . . $ FLAC__StreamDecoderPrivate#metadata_filter_ids_capacity.) {
807 if(0 == (decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->metadata_filter_idscxx . . $ FLAC__StreamDecoderPrivate#metadata_filter_ids. = safe_realloc_mul_2op_cxx . . $ safe_realloc_mul_2op_(dfa4a9ebc9436eff).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->metadata_filter_idscxx . . $ FLAC__StreamDecoderPrivate#metadata_filter_ids., decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->metadata_filter_ids_capacitycxx . . $ FLAC__StreamDecoderPrivate#metadata_filter_ids_capacity., /*times*/2))) {
808 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. = FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERRORcxx . . $ FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR.;
809 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
810 }
811 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->metadata_filter_ids_capacitycxx . . $ FLAC__StreamDecoderPrivate#metadata_filter_ids_capacity. *= 2;
812 }
813
814 memcpycxx . . $ memcpy(cc817cb175f282d).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->metadata_filter_idscxx . . $ FLAC__StreamDecoderPrivate#metadata_filter_ids. + decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->metadata_filter_ids_countcxx . . $ FLAC__StreamDecoderPrivate#metadata_filter_ids_count. * (FLAC__STREAM_METADATA_APPLICATION_ID_LENcxx . . $ FLAC__STREAM_METADATA_APPLICATION_ID_LEN./8), id, (FLAC__STREAM_METADATA_APPLICATION_ID_LENcxx . . $ FLAC__STREAM_METADATA_APPLICATION_ID_LEN./8));
815 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->metadata_filter_ids_countcxx . . $ FLAC__StreamDecoderPrivate#metadata_filter_ids_count.++;
816
817 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
818 }
819
820 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! FLAC__boolcxx . . $ FLAC__bool# FLAC__stream_decoder_set_metadata_ignore_allcxx . . $ FLAC__stream_decoder_set_metadata_ignore_all(d92048749c4f1284).(FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder)
821 {
822 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0 != decoder);
823 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0 != decoder->private_);
824 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0 != decoder->protected_);
825 memsetcxx . . $ memset(d1de1e4fb215f1c6).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->metadata_filtercxx . . $ FLAC__StreamDecoderPrivate#metadata_filter., 0, sizeof(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->metadata_filtercxx . . $ FLAC__StreamDecoderPrivate#metadata_filter.));
826 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->metadata_filter_ids_countcxx . . $ FLAC__StreamDecoderPrivate#metadata_filter_ids_count. = 0;
827 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
828 }
829
830 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! FLAC__StreamDecoderStatecxx . . $ FLAC__StreamDecoderState# FLAC__stream_decoder_get_statecxx . . $ FLAC__stream_decoder_get_state(679df3872b59f0a2).(const FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder)
831 {
832 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0 != decoder);
833 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0 != decoder->protected_);
834 return decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state.;
835 }
836
837 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! const char *FLAC__stream_decoder_get_resolved_state_stringcxx . . $ FLAC__stream_decoder_get_resolved_state_string(ddd14073d3bb9c03).(const FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder)
838 {
839 return FLAC__StreamDecoderStateStringcxx . . $ FLAC__StreamDecoderStateString.[decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state.];
840 }
841
842 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! FLAC__boolcxx . . $ FLAC__bool# FLAC__stream_decoder_get_decode_chained_streamcxx . . $ FLAC__stream_decoder_get_decode_chained_stream(97f9bafe5baac2ad).(const FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder#* decoder)
843 {
844 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0 != decoder);
845 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0 != decoder->protected_);
846 #if FLAC__HAS_OGGcxx . . $ `./flac_config.h:42:9`!
847 return FLAC__ogg_decoder_aspect_get_decode_chained_stream(&decoder->protected_->ogg_decoder_aspect);
848 #else
849 (void)decoder;
850 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
851 #endif
852 }
853
854 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! FLAC__boolcxx . . $ FLAC__bool# FLAC__stream_decoder_get_md5_checkingcxx . . $ FLAC__stream_decoder_get_md5_checking(97f9bafe5baac2ad).(const FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder)
855 {
856 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0 != decoder);
857 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0 != decoder->protected_);
858 return decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->md5_checkingcxx . . $ FLAC__StreamDecoderProtected#md5_checking.;
859 }
860
861 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! FLAC__uint64cxx . . $ FLAC__uint64# FLAC__stream_decoder_get_total_samplescxx . . $ FLAC__stream_decoder_get_total_samples(c220651b448e368d).(const FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder)
862 {
863 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0 != decoder);
864 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0 != decoder->protected_);
865 return decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->has_stream_infocxx . . $ FLAC__StreamDecoderPrivate#has_stream_info.? decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->stream_infocxx . . $ FLAC__StreamDecoderPrivate#stream_info..datacxx . . $ FLAC__StreamMetadata#data..stream_infocxx . . $ FLAC__StreamMetadata#$anonymous_type_34#stream_info..total_samplescxx . . $ $anonymous_type_81a4853959168ec7_21#total_samples. : 0;
866 }
867
868 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! uint32_tcxx . . $ uint32_t# FLAC__stream_decoder_get_channelscxx . . $ FLAC__stream_decoder_get_channels(517ab728c8f24dd5).(const FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder)
869 {
870 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0 != decoder);
871 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0 != decoder->protected_);
872 return decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->channelscxx . . $ FLAC__StreamDecoderProtected#channels.;
873 }
874
875 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! FLAC__ChannelAssignmentcxx . . $ FLAC__ChannelAssignment# FLAC__stream_decoder_get_channel_assignmentcxx . . $ FLAC__stream_decoder_get_channel_assignment(dbede688ff32baa2).(const FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder)
876 {
877 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0 != decoder);
878 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0 != decoder->protected_);
879 return decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->channel_assignmentcxx . . $ FLAC__StreamDecoderProtected#channel_assignment.;
880 }
881
882 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! uint32_tcxx . . $ uint32_t# FLAC__stream_decoder_get_bits_per_samplecxx . . $ FLAC__stream_decoder_get_bits_per_sample(517ab728c8f24dd5).(const FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder)
883 {
884 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0 != decoder);
885 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0 != decoder->protected_);
886 return decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->bits_per_samplecxx . . $ FLAC__StreamDecoderProtected#bits_per_sample.;
887 }
888
889 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! uint32_tcxx . . $ uint32_t# FLAC__stream_decoder_get_sample_ratecxx . . $ FLAC__stream_decoder_get_sample_rate(517ab728c8f24dd5).(const FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder)
890 {
891 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0 != decoder);
892 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0 != decoder->protected_);
893 return decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->sample_ratecxx . . $ FLAC__StreamDecoderProtected#sample_rate.;
894 }
895
896 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! uint32_tcxx . . $ uint32_t# FLAC__stream_decoder_get_blocksizecxx . . $ FLAC__stream_decoder_get_blocksize(517ab728c8f24dd5).(const FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder)
897 {
898 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0 != decoder);
899 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0 != decoder->protected_);
900 return decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->blocksizecxx . . $ FLAC__StreamDecoderProtected#blocksize.;
901 }
902
903 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! FLAC__boolcxx . . $ FLAC__bool# FLAC__stream_decoder_get_decode_positioncxx . . $ FLAC__stream_decoder_get_decode_position(eaa4447c58feeb10).(const FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder, FLAC__uint64cxx . . $ FLAC__uint64# *position)
904 {
905 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0 != decoder);
906 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0 != decoder->private_);
907 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0 != position);
908
909 if(FLAC__HAS_OGGcxx . . $ `./flac_config.h:42:9`! && decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->is_oggcxx . . $ FLAC__StreamDecoderPrivate#is_ogg.)
910 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
911
912 if(0 == decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->tell_callbackcxx . . $ FLAC__StreamDecoderPrivate#tell_callback.)
913 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
914 if(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->tell_callbackcxx . . $ FLAC__StreamDecoderPrivate#tell_callback.(decoder, position, decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->client_datacxx . . $ FLAC__StreamDecoderPrivate#client_data.) != FLAC__STREAM_DECODER_TELL_STATUS_OKcxx . . $ FLAC__STREAM_DECODER_TELL_STATUS_OK.)
915 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
916 /* should never happen since all FLAC frames and metadata blocks are byte aligned, but check just in case */
917 if(!FLAC__bitreader_is_consumed_byte_alignedcxx . . $ FLAC__bitreader_is_consumed_byte_aligned(828ae4969518c677).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input.))
918 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
919 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(*position >= FLAC__stream_decoder_get_input_bytes_unconsumed(decoder));
920 *position -= FLAC__stream_decoder_get_input_bytes_unconsumedcxx . . $ FLAC__stream_decoder_get_input_bytes_unconsumed(517ab728c8f24dd5).(decoder);
921 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
922 }
923
924 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! const void *FLAC__stream_decoder_get_client_datacxx . . $ FLAC__stream_decoder_get_client_data(4a5ed2d61377211b).(FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder)
925 {
926 return decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->client_datacxx . . $ FLAC__StreamDecoderPrivate#client_data.;
927 }
928
929 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! FLAC__boolcxx . . $ FLAC__bool# FLAC__stream_decoder_flushcxx . . $ FLAC__stream_decoder_flush(d92048749c4f1284).(FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder)
930 {
931 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0 != decoder);
932 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0 != decoder->private_);
933 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0 != decoder->protected_);
934
935 if(!decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->internal_reset_hackcxx . . $ FLAC__StreamDecoderPrivate#internal_reset_hack. && decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. == FLAC__STREAM_DECODER_UNINITIALIZEDcxx . . $ FLAC__STREAM_DECODER_UNINITIALIZED.)
936 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
937 if(decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. == FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERRORcxx . . $ FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR.)
938 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
939
940 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->samples_decodedcxx . . $ FLAC__StreamDecoderPrivate#samples_decoded. = 0;
941 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->do_md5_checkingcxx . . $ FLAC__StreamDecoderPrivate#do_md5_checking. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
942 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->last_seen_framesynccxx . . $ FLAC__StreamDecoderPrivate#last_seen_framesync. = 0;
943 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->last_frame_is_setcxx . . $ FLAC__StreamDecoderPrivate#last_frame_is_set. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
944
945 #if FLAC__HAS_OGGcxx . . $ `./flac_config.h:42:9`!
946 if(decoder->private_->is_ogg)
947 FLAC__ogg_decoder_aspect_flush(&decoder->protected_->ogg_decoder_aspect);
948 #endif
949
950 if(!FLAC__bitreader_clearcxx . . $ FLAC__bitreader_clear(69d2a7862c68e701).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input.)) {
951 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. = FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERRORcxx . . $ FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR.;
952 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
953 }
954 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. = FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNCcxx . . $ FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC.;
955
956 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
957 }
958
959 void reset_decoder_internal_cxx . . $ reset_decoder_internal_(1ffd9838c68f2516).(FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder#* decoder) {
960 /* This code resets only the FLAC parser and decoder, not the Ogg part,
961 * nor the input buffering etc. This is used to prepare the FLAC
962 * decoder to receive another Ogg chain link */
963 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. = FLAC__STREAM_DECODER_SEARCH_FOR_METADATAcxx . . $ FLAC__STREAM_DECODER_SEARCH_FOR_METADATA.;
964
965 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->has_stream_infocxx . . $ FLAC__StreamDecoderPrivate#has_stream_info. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
966
967 freecxx . . $ free(5d22bdacc48458e8).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->seek_tablecxx . . $ FLAC__StreamDecoderPrivate#seek_table..datacxx . . $ FLAC__StreamMetadata#data..seek_tablecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#seek_table..pointscxx . . $ $anonymous_type_81a4853959168ec7_25#points.);
968 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->seek_tablecxx . . $ FLAC__StreamDecoderPrivate#seek_table..datacxx . . $ FLAC__StreamMetadata#data..seek_tablecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#seek_table..pointscxx . . $ $anonymous_type_81a4853959168ec7_25#points. = 0;
969 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->has_seek_tablecxx . . $ FLAC__StreamDecoderPrivate#has_seek_table. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
970
971 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->do_md5_checkingcxx . . $ FLAC__StreamDecoderPrivate#do_md5_checking. = decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->md5_checkingcxx . . $ FLAC__StreamDecoderProtected#md5_checking.;
972 /*
973 * This goes in reset() and not flush() because according to the spec, a
974 * fixed-blocksize stream must stay that way through the whole stream.
975 */
976 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->fixed_block_sizecxx . . $ FLAC__StreamDecoderPrivate#fixed_block_size. = decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->next_fixed_block_sizecxx . . $ FLAC__StreamDecoderPrivate#next_fixed_block_size. = 0;
977
978 /* We initialize the FLAC__MD5Context even though we may never use it. This
979 * is because md5 checking may be turned on to start and then turned off if
980 * a seek occurs. So we init the context here and finalize it in
981 * FLAC__stream_decoder_finish() to make sure things are always cleaned up
982 * properly.
983 */
984 if(!decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->internal_reset_hackcxx . . $ FLAC__StreamDecoderPrivate#internal_reset_hack.) {
985 /* Only finish MD5 context when it has been initialized
986 * (i.e. when internal_reset_hack is not set) */
987 FLAC__MD5Finalcxx . . $ FLAC__MD5Final(ec6550fe48f30192).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->computed_md5sumcxx . . $ FLAC__StreamDecoderPrivate#computed_md5sum., &decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->md5contextcxx . . $ FLAC__StreamDecoderPrivate#md5context.);
988 }
989 else
990 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->internal_reset_hackcxx . . $ FLAC__StreamDecoderPrivate#internal_reset_hack. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
991 FLAC__MD5Initcxx . . $ FLAC__MD5Init(751984bb06ed49bc).(&decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->md5contextcxx . . $ FLAC__StreamDecoderPrivate#md5context.);
992
993 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->first_frame_offsetcxx . . $ FLAC__StreamDecoderPrivate#first_frame_offset. = 0;
994 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->unparseable_frame_countcxx . . $ FLAC__StreamDecoderPrivate#unparseable_frame_count. = 0;
995 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->last_seen_framesynccxx . . $ FLAC__StreamDecoderPrivate#last_seen_framesync. = 0;
996 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->last_frame_is_setcxx . . $ FLAC__StreamDecoderPrivate#last_frame_is_set. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
997 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->error_has_been_sentcxx . . $ FLAC__StreamDecoderPrivate#error_has_been_sent. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
998 }
999
1000 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! FLAC__boolcxx . . $ FLAC__bool# FLAC__stream_decoder_resetcxx . . $ FLAC__stream_decoder_reset(d92048749c4f1284).(FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder)
1001 {
1002 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0 != decoder);
1003 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0 != decoder->private_);
1004 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0 != decoder->protected_);
1005
1006 if(!FLAC__stream_decoder_flushcxx . . $ FLAC__stream_decoder_flush(d92048749c4f1284).(decoder)) {
1007 /* above call sets the state for us */
1008 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1009 }
1010
1011 #if FLAC__HAS_OGGcxx . . $ `./flac_config.h:42:9`!
1012 /*@@@ could go in !internal_reset_hack block below */
1013 if(decoder->private_->is_ogg)
1014 FLAC__ogg_decoder_aspect_reset(&decoder->protected_->ogg_decoder_aspect);
1015 #endif
1016
1017 /* Rewind if necessary. If FLAC__stream_decoder_init() is calling us,
1018 * (internal_reset_hack) don't try to rewind since we are already at
1019 * the beginning of the stream and don't want to fail if the input is
1020 * not seekable.
1021 */
1022 if(!decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->internal_reset_hackcxx . . $ FLAC__StreamDecoderPrivate#internal_reset_hack.) {
1023 if(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->filecxx . . $ FLAC__StreamDecoderPrivate#file. == stdincxx . . $ `<external>/232824719582829767/stdio.h:153:9`!)
1024 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* can't rewind stdin, reset fails */
1025 if(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->seek_callbackcxx . . $ FLAC__StreamDecoderPrivate#seek_callback. && decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->seek_callbackcxx . . $ FLAC__StreamDecoderPrivate#seek_callback.(decoder, 0, decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->client_datacxx . . $ FLAC__StreamDecoderPrivate#client_data.) == FLAC__STREAM_DECODER_SEEK_STATUS_ERRORcxx . . $ FLAC__STREAM_DECODER_SEEK_STATUS_ERROR.)
1026 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* seekable and seek fails, reset fails */
1027 }
1028
1029 reset_decoder_internal_cxx . . $ reset_decoder_internal_(1ffd9838c68f2516).(decoder);
1030
1031 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1032 }
1033
1034 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! FLAC__boolcxx . . $ FLAC__bool# FLAC__stream_decoder_process_singlecxx . . $ FLAC__stream_decoder_process_single(d92048749c4f1284).(FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder)
1035 {
1036 FLAC__boolcxx . . $ FLAC__bool# got_a_frame;
1037 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0 != decoder);
1038 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0 != decoder->protected_);
1039
1040 while(1) {
1041 switch(decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state.) {
1042 case FLAC__STREAM_DECODER_SEARCH_FOR_METADATAcxx . . $ FLAC__STREAM_DECODER_SEARCH_FOR_METADATA.:
1043 if(!find_metadata_cxx . . $ find_metadata_(d92048749c4f1284).(decoder))
1044 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* above function sets the status for us */
1045 break;
1046 case FLAC__STREAM_DECODER_READ_METADATAcxx . . $ FLAC__STREAM_DECODER_READ_METADATA.:
1047 if(!read_metadata_cxx . . $ read_metadata_(d92048749c4f1284).(decoder))
1048 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* above function sets the status for us */
1049 else
1050 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1051 case FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNCcxx . . $ FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC.:
1052 if(!frame_sync_cxx . . $ frame_sync_(d92048749c4f1284).(decoder)) {
1053 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!; /* above function sets the status for us */
1054 }
1055 break;
1056 case FLAC__STREAM_DECODER_READ_FRAMEcxx . . $ FLAC__STREAM_DECODER_READ_FRAME.:
1057 if(!read_frame_cxx . . $ read_frame_(5998d726cdafdde1).(decoder, &got_a_frame, /*do_full_decode=*/truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!))
1058 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* above function sets the status for us */
1059 if(got_a_frame)
1060 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!; /* above function sets the status for us */
1061 break;
1062 case FLAC__STREAM_DECODER_END_OF_STREAMcxx . . $ FLAC__STREAM_DECODER_END_OF_STREAM.:
1063 case FLAC__STREAM_DECODER_END_OF_LINKcxx . . $ FLAC__STREAM_DECODER_END_OF_LINK.:
1064 case FLAC__STREAM_DECODER_ABORTEDcxx . . $ FLAC__STREAM_DECODER_ABORTED.:
1065 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1066 default:
1067 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1068 }
1069 }
1070 }
1071
1072 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! FLAC__boolcxx . . $ FLAC__bool# FLAC__stream_decoder_process_until_end_of_metadatacxx . . $ FLAC__stream_decoder_process_until_end_of_metadata(d92048749c4f1284).(FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder)
1073 {
1074 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0 != decoder);
1075 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0 != decoder->protected_);
1076
1077 while(1) {
1078 switch(decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state.) {
1079 case FLAC__STREAM_DECODER_SEARCH_FOR_METADATAcxx . . $ FLAC__STREAM_DECODER_SEARCH_FOR_METADATA.:
1080 if(!find_metadata_cxx . . $ find_metadata_(d92048749c4f1284).(decoder))
1081 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* above function sets the status for us */
1082 break;
1083 case FLAC__STREAM_DECODER_READ_METADATAcxx . . $ FLAC__STREAM_DECODER_READ_METADATA.:
1084 if(!read_metadata_cxx . . $ read_metadata_(d92048749c4f1284).(decoder))
1085 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* above function sets the status for us */
1086 break;
1087 case FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNCcxx . . $ FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC.:
1088 case FLAC__STREAM_DECODER_READ_FRAMEcxx . . $ FLAC__STREAM_DECODER_READ_FRAME.:
1089 case FLAC__STREAM_DECODER_END_OF_STREAMcxx . . $ FLAC__STREAM_DECODER_END_OF_STREAM.:
1090 case FLAC__STREAM_DECODER_END_OF_LINKcxx . . $ FLAC__STREAM_DECODER_END_OF_LINK.:
1091 case FLAC__STREAM_DECODER_ABORTEDcxx . . $ FLAC__STREAM_DECODER_ABORTED.:
1092 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1093 default:
1094 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1095 }
1096 }
1097 }
1098
1099 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! FLAC__boolcxx . . $ FLAC__bool# FLAC__stream_decoder_process_until_end_of_linkcxx . . $ FLAC__stream_decoder_process_until_end_of_link(d92048749c4f1284).(FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder)
1100 {
1101 FLAC__boolcxx . . $ FLAC__bool# dummy;
1102 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0 != decoder);
1103 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0 != decoder->protected_);
1104
1105 while(1) {
1106 switch(decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state.) {
1107 case FLAC__STREAM_DECODER_SEARCH_FOR_METADATAcxx . . $ FLAC__STREAM_DECODER_SEARCH_FOR_METADATA.:
1108 if(!find_metadata_cxx . . $ find_metadata_(d92048749c4f1284).(decoder))
1109 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* above function sets the status for us */
1110 break;
1111 case FLAC__STREAM_DECODER_READ_METADATAcxx . . $ FLAC__STREAM_DECODER_READ_METADATA.:
1112 if(!read_metadata_cxx . . $ read_metadata_(d92048749c4f1284).(decoder))
1113 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* above function sets the status for us */
1114 break;
1115 case FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNCcxx . . $ FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC.:
1116 if(!frame_sync_cxx . . $ frame_sync_(d92048749c4f1284).(decoder)) {
1117 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!; /* above function sets the status for us */
1118 }
1119 break;
1120 case FLAC__STREAM_DECODER_READ_FRAMEcxx . . $ FLAC__STREAM_DECODER_READ_FRAME.:
1121 if(!read_frame_cxx . . $ read_frame_(5998d726cdafdde1).(decoder, &dummy, /*do_full_decode=*/truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!))
1122 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* above function sets the status for us */
1123 break;
1124 case FLAC__STREAM_DECODER_END_OF_STREAMcxx . . $ FLAC__STREAM_DECODER_END_OF_STREAM.:
1125 case FLAC__STREAM_DECODER_END_OF_LINKcxx . . $ FLAC__STREAM_DECODER_END_OF_LINK.:
1126 case FLAC__STREAM_DECODER_ABORTEDcxx . . $ FLAC__STREAM_DECODER_ABORTED.:
1127 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1128 default:
1129 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1130 }
1131 }
1132 }
1133
1134 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! FLAC__boolcxx . . $ FLAC__bool# FLAC__stream_decoder_finish_linkcxx . . $ FLAC__stream_decoder_finish_link(d92048749c4f1284).(FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder)
1135 {
1136 FLAC__boolcxx . . $ FLAC__bool# md5_failed = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1137
1138 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0 != decoder);
1139 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0 != decoder->private_);
1140 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0 != decoder->protected_);
1141
1142 if(decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. != FLAC__STREAM_DECODER_END_OF_LINKcxx . . $ FLAC__STREAM_DECODER_END_OF_LINK.) {
1143 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0); /* This function should not be called in any other state */
1144 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1145 }
1146
1147 FLAC__MD5Finalcxx . . $ FLAC__MD5Final(ec6550fe48f30192).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->computed_md5sumcxx . . $ FLAC__StreamDecoderPrivate#computed_md5sum., &decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->md5contextcxx . . $ FLAC__StreamDecoderPrivate#md5context.);
1148
1149 if(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->do_md5_checkingcxx . . $ FLAC__StreamDecoderPrivate#do_md5_checking.) {
1150 if(memcmpcxx . . $ memcmp(36f949851efa3055).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->stream_infocxx . . $ FLAC__StreamDecoderPrivate#stream_info..datacxx . . $ FLAC__StreamMetadata#data..stream_infocxx . . $ FLAC__StreamMetadata#$anonymous_type_34#stream_info..md5sumcxx . . $ $anonymous_type_81a4853959168ec7_21#md5sum., decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->computed_md5sumcxx . . $ FLAC__StreamDecoderPrivate#computed_md5sum., 16))
1151 md5_failed = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1152 }
1153
1154 reset_decoder_internal_cxx . . $ reset_decoder_internal_(1ffd9838c68f2516).(decoder);
1155
1156 #if FLAC__HAS_OGGcxx . . $ `./flac_config.h:42:9`!
1157 if(decoder->private_->is_ogg)
1158 FLAC__ogg_decoder_aspect_next_link(&decoder->protected_->ogg_decoder_aspect);
1159 #endif
1160
1161 return !md5_failed;
1162 }
1163
1164 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! FLAC__boolcxx . . $ FLAC__bool# FLAC__stream_decoder_process_until_end_of_streamcxx . . $ FLAC__stream_decoder_process_until_end_of_stream(d92048749c4f1284).(FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder)
1165 {
1166 FLAC__boolcxx . . $ FLAC__bool# dummy;
1167 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0 != decoder);
1168 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0 != decoder->protected_);
1169
1170 while(1) {
1171 switch(decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state.) {
1172 case FLAC__STREAM_DECODER_SEARCH_FOR_METADATAcxx . . $ FLAC__STREAM_DECODER_SEARCH_FOR_METADATA.:
1173 if(!find_metadata_cxx . . $ find_metadata_(d92048749c4f1284).(decoder))
1174 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* above function sets the status for us */
1175 break;
1176 case FLAC__STREAM_DECODER_READ_METADATAcxx . . $ FLAC__STREAM_DECODER_READ_METADATA.:
1177 if(!read_metadata_cxx . . $ read_metadata_(d92048749c4f1284).(decoder))
1178 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* above function sets the status for us */
1179 break;
1180 case FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNCcxx . . $ FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC.:
1181 if(!frame_sync_cxx . . $ frame_sync_(d92048749c4f1284).(decoder) && decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. != FLAC__STREAM_DECODER_END_OF_LINKcxx . . $ FLAC__STREAM_DECODER_END_OF_LINK. && decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. != FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERRORcxx . . $ FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR.) {
1182 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!; /* above function sets the status for us */
1183 }
1184 break;
1185 case FLAC__STREAM_DECODER_READ_FRAMEcxx . . $ FLAC__STREAM_DECODER_READ_FRAME.:
1186 if(!read_frame_cxx . . $ read_frame_(5998d726cdafdde1).(decoder, &dummy, /*do_full_decode=*/truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!))
1187 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* above function sets the status for us */
1188 break;
1189 case FLAC__STREAM_DECODER_END_OF_LINKcxx . . $ FLAC__STREAM_DECODER_END_OF_LINK.:
1190 FLAC__stream_decoder_finish_linkcxx . . $ FLAC__stream_decoder_finish_link(d92048749c4f1284).(decoder);
1191 break;
1192 case FLAC__STREAM_DECODER_END_OF_STREAMcxx . . $ FLAC__STREAM_DECODER_END_OF_STREAM.:
1193 case FLAC__STREAM_DECODER_ABORTEDcxx . . $ FLAC__STREAM_DECODER_ABORTED.:
1194 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1195 default:
1196 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1197 }
1198 }
1199 }
1200
1201 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! FLAC__boolcxx . . $ FLAC__bool# FLAC__stream_decoder_skip_single_framecxx . . $ FLAC__stream_decoder_skip_single_frame(d92048749c4f1284).(FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder)
1202 {
1203 FLAC__boolcxx . . $ FLAC__bool# got_a_frame;
1204 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0 != decoder);
1205 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0 != decoder->protected_);
1206
1207 while(1) {
1208 switch(decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state.) {
1209 case FLAC__STREAM_DECODER_SEARCH_FOR_METADATAcxx . . $ FLAC__STREAM_DECODER_SEARCH_FOR_METADATA.:
1210 case FLAC__STREAM_DECODER_READ_METADATAcxx . . $ FLAC__STREAM_DECODER_READ_METADATA.:
1211 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1212 case FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNCcxx . . $ FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC.:
1213 if(!frame_sync_cxx . . $ frame_sync_(d92048749c4f1284).(decoder)) {
1214 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!; /* above function sets the status for us */
1215 }
1216 break;
1217 case FLAC__STREAM_DECODER_READ_FRAMEcxx . . $ FLAC__STREAM_DECODER_READ_FRAME.:
1218 if(!read_frame_cxx . . $ read_frame_(5998d726cdafdde1).(decoder, &got_a_frame, /*do_full_decode=*/falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!))
1219 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* above function sets the status for us */
1220 if(got_a_frame)
1221 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!; /* above function sets the status for us */
1222 break;
1223 case FLAC__STREAM_DECODER_END_OF_STREAMcxx . . $ FLAC__STREAM_DECODER_END_OF_STREAM.:
1224 case FLAC__STREAM_DECODER_END_OF_LINKcxx . . $ FLAC__STREAM_DECODER_END_OF_LINK.:
1225 case FLAC__STREAM_DECODER_ABORTEDcxx . . $ FLAC__STREAM_DECODER_ABORTED.:
1226 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1227 default:
1228 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1229 }
1230 }
1231 }
1232
1233 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! FLAC__boolcxx . . $ FLAC__bool# FLAC__stream_decoder_skip_single_linkcxx . . $ FLAC__stream_decoder_skip_single_link(d92048749c4f1284).(FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder)
1234 {
1235 #if FLAC__HAS_OGGcxx . . $ `./flac_config.h:42:9`!
1236 FLAC__OggDecoderAspectReadStatus status;
1237 FLAC__ASSERT_DECLARATION(FLAC__uint32 linknumber_start);
1238 FLAC__ASSERT(0 != decoder);
1239 FLAC__ASSERT(0 != decoder->protected_);
1240
1241 if(!decoder->private_->is_ogg ||
1242 decoder->protected_->state == FLAC__STREAM_DECODER_ABORTED ||
1243 decoder->protected_->state == FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR ||
1244 decoder->protected_->state == FLAC__STREAM_DECODER_UNINITIALIZED)
1245 return false;
1246
1247 FLAC__ASSERT_DECLARATION(linknumber_start = decoder->protected_->ogg_decoder_aspect.current_linknumber);
1248
1249 if(!FLAC__bitreader_clear(decoder->private_->input)) {
1250 decoder->protected_->state = FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR;
1251 return false;
1252 }
1253 status = FLAC__ogg_decoder_aspect_skip_link(&decoder->protected_->ogg_decoder_aspect, read_callback_proxy_, decoder->private_->seek_callback, decoder->private_->tell_callback, decoder->private_->length_callback, decoder, decoder->private_->client_data);
1254 if(status == FLAC__OGG_DECODER_ASPECT_READ_STATUS_END_OF_STREAM) {
1255 decoder->protected_->state = FLAC__STREAM_DECODER_END_OF_STREAM;
1256 return true;
1257 }
1258 else if(status == FLAC__OGG_DECODER_ASPECT_READ_STATUS_CALLBACKS_NONFUNCTIONAL) {
1259 decoder->private_->is_seeking = true;
1260 FLAC__stream_decoder_process_until_end_of_link(decoder);
1261 if(decoder->protected_->state == FLAC__STREAM_DECODER_END_OF_LINK)
1262 FLAC__stream_decoder_finish_link(decoder);
1263 decoder->private_->is_seeking = false;
1264 }
1265 else if(status != FLAC__OGG_DECODER_ASPECT_READ_STATUS_OK) {
1266 decoder->protected_->state = FLAC__STREAM_DECODER_OGG_ERROR;
1267 return false;
1268 }
1269 else {
1270 FLAC__MD5Final(decoder->private_->computed_md5sum, &decoder->private_->md5context);
1271 reset_decoder_internal_(decoder);
1272 }
1273
1274 FLAC__ASSERT(decoder->protected_->state == FLAC__STREAM_DECODER_END_OF_STREAM || decoder->protected_->ogg_decoder_aspect.current_linknumber > linknumber_start);
1275 return true;
1276 #else
1277 (void)decoder;
1278 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1279 #endif
1280 }
1281
1282 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! FLAC__boolcxx . . $ FLAC__bool# FLAC__stream_decoder_seek_absolutecxx . . $ FLAC__stream_decoder_seek_absolute(3aa15f81d35338d0).(FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder, FLAC__uint64cxx . . $ FLAC__uint64# sample)
1283 {
1284 FLAC__uint64cxx . . $ FLAC__uint64# length;
1285
1286 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0 != decoder);
1287
1288 if(
1289 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. != FLAC__STREAM_DECODER_SEARCH_FOR_METADATAcxx . . $ FLAC__STREAM_DECODER_SEARCH_FOR_METADATA. &&
1290 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. != FLAC__STREAM_DECODER_READ_METADATAcxx . . $ FLAC__STREAM_DECODER_READ_METADATA. &&
1291 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. != FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNCcxx . . $ FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC. &&
1292 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. != FLAC__STREAM_DECODER_READ_FRAMEcxx . . $ FLAC__STREAM_DECODER_READ_FRAME. &&
1293 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. != FLAC__STREAM_DECODER_END_OF_STREAMcxx . . $ FLAC__STREAM_DECODER_END_OF_STREAM.
1294 )
1295 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1296
1297 if(0 == decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->seek_callbackcxx . . $ FLAC__StreamDecoderPrivate#seek_callback.)
1298 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1299
1300 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(decoder->private_->seek_callback);
1301 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(decoder->private_->tell_callback);
1302 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(decoder->private_->length_callback);
1303 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(decoder->private_->eof_callback);
1304
1305 if(!FLAC__stream_decoder_get_decode_chained_streamcxx . . $ FLAC__stream_decoder_get_decode_chained_stream(97f9bafe5baac2ad).(decoder) && FLAC__stream_decoder_get_total_samplescxx . . $ FLAC__stream_decoder_get_total_samples(c220651b448e368d).(decoder) > 0 && sample >= FLAC__stream_decoder_get_total_samplescxx . . $ FLAC__stream_decoder_get_total_samples(c220651b448e368d).(decoder))
1306 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1307
1308 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->is_seekingcxx . . $ FLAC__StreamDecoderPrivate#is_seeking. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1309
1310 /* turn off md5 checking if a seek is attempted */
1311 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->do_md5_checkingcxx . . $ FLAC__StreamDecoderPrivate#do_md5_checking. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1312
1313 /* get the file length (currently our algorithm needs to know the length so it's also an error to get FLAC__STREAM_DECODER_LENGTH_STATUS_UNSUPPORTED) */
1314 if(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->length_callbackcxx . . $ FLAC__StreamDecoderPrivate#length_callback.(decoder, &length, decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->client_datacxx . . $ FLAC__StreamDecoderPrivate#client_data.) != FLAC__STREAM_DECODER_LENGTH_STATUS_OKcxx . . $ FLAC__STREAM_DECODER_LENGTH_STATUS_OK.) {
1315 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->is_seekingcxx . . $ FLAC__StreamDecoderPrivate#is_seeking. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1316 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1317 }
1318
1319 /* if we haven't finished processing the metadata yet, do that so we have the STREAMINFO, SEEK_TABLE, and first_frame_offset */
1320 if(
1321 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. == FLAC__STREAM_DECODER_SEARCH_FOR_METADATAcxx . . $ FLAC__STREAM_DECODER_SEARCH_FOR_METADATA. ||
1322 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. == FLAC__STREAM_DECODER_READ_METADATAcxx . . $ FLAC__STREAM_DECODER_READ_METADATA.
1323 ) {
1324 if(!FLAC__stream_decoder_process_until_end_of_metadatacxx . . $ FLAC__stream_decoder_process_until_end_of_metadata(d92048749c4f1284).(decoder)) {
1325 /* above call sets the state for us */
1326 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->is_seekingcxx . . $ FLAC__StreamDecoderPrivate#is_seeking. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1327 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1328 }
1329 /* check this again in case we didn't know total_samples the first time */
1330 if(FLAC__stream_decoder_get_total_samplescxx . . $ FLAC__stream_decoder_get_total_samples(c220651b448e368d).(decoder) > 0 && sample >= FLAC__stream_decoder_get_total_samplescxx . . $ FLAC__stream_decoder_get_total_samples(c220651b448e368d).(decoder)) {
1331 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->is_seekingcxx . . $ FLAC__StreamDecoderPrivate#is_seeking. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1332 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1333 }
1334 }
1335
1336 {
1337 const FLAC__boolcxx . . $ FLAC__bool# ok =
1338 #if FLAC__HAS_OGGcxx . . $ `./flac_config.h:42:9`!
1339 decoder->private_->is_ogg?
1340 seek_to_absolute_sample_ogg_(decoder, length, sample) :
1341 #endif
1342 seek_to_absolute_sample_cxx . . $ seek_to_absolute_sample_(a5b871fcbd906fe3).(decoder, length, sample)
1343 ;
1344 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->is_seekingcxx . . $ FLAC__StreamDecoderPrivate#is_seeking. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1345 return ok;
1346 }
1347 }
1348
1349 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! FLAC__uint64cxx . . $ FLAC__uint64# FLAC__stream_decoder_find_total_samplescxx . . $ FLAC__stream_decoder_find_total_samples(ea18291df0f0921c).(FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder)
1350 {
1351 if(
1352 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. != FLAC__STREAM_DECODER_SEARCH_FOR_METADATAcxx . . $ FLAC__STREAM_DECODER_SEARCH_FOR_METADATA. &&
1353 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. != FLAC__STREAM_DECODER_READ_METADATAcxx . . $ FLAC__STREAM_DECODER_READ_METADATA. &&
1354 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. != FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNCcxx . . $ FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC. &&
1355 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. != FLAC__STREAM_DECODER_READ_FRAMEcxx . . $ FLAC__STREAM_DECODER_READ_FRAME. &&
1356 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. != FLAC__STREAM_DECODER_END_OF_STREAMcxx . . $ FLAC__STREAM_DECODER_END_OF_STREAM.
1357 )
1358 return 0;
1359
1360 if(
1361 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->length_callbackcxx . . $ FLAC__StreamDecoderPrivate#length_callback. == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! ||
1362 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->seek_callbackcxx . . $ FLAC__StreamDecoderPrivate#seek_callback. == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! ||
1363 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->tell_callbackcxx . . $ FLAC__StreamDecoderPrivate#tell_callback. == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!
1364 )
1365 return 0;
1366
1367 #if FLAC__HAS_OGGcxx . . $ `./flac_config.h:42:9`!
1368 if(decoder->private_->is_ogg && FLAC__ogg_decoder_aspect_get_decode_chained_stream(&decoder->protected_->ogg_decoder_aspect)) {
1369 /* Keep moving forward until reaching end-of-stream */
1370 uint32_t i;
1371 FLAC__uint64 total_samples = 0;
1372 decoder->private_->is_indexing = true;
1373 while(1) {
1374 FLAC__OggDecoderAspectReadStatus status;
1375 if(decoder->protected_->state == FLAC__STREAM_DECODER_END_OF_STREAM ||
1376 decoder->protected_->state == FLAC__STREAM_DECODER_OGG_ERROR ||
1377 decoder->protected_->state == FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR ||
1378 decoder->protected_->state == FLAC__STREAM_DECODER_ABORTED) {
1379 decoder->private_->is_indexing = false;
1380 decoder->protected_->state = FLAC__STREAM_DECODER_SEEK_ERROR;
1381 return 0;
1382 }
1383 status = FLAC__ogg_decoder_aspect_skip_link(&decoder->protected_->ogg_decoder_aspect, read_callback_proxy_, decoder->private_->seek_callback, decoder->private_->tell_callback, decoder->private_->length_callback, decoder, decoder->private_->client_data);
1384 if(status == FLAC__OGG_DECODER_ASPECT_READ_STATUS_END_OF_STREAM)
1385 break;
1386 else if(status != FLAC__OGG_DECODER_ASPECT_READ_STATUS_OK) {
1387 decoder->protected_->state = FLAC__STREAM_DECODER_SEEK_ERROR;
1388 return 0;
1389 }
1390 }
1391 decoder->private_->is_indexing = false;
1392 for(i = 0; i < decoder->protected_->ogg_decoder_aspect.number_of_links_indexed; i++) {
1393 total_samples += decoder->protected_->ogg_decoder_aspect.linkdetails[i].samples;
1394 }
1395 return total_samples;
1396 }
1397 else
1398 #endif /* FLAC__HAS_OGG */
1399 { /* not decoding chained ogg */
1400 FLAC__uint64cxx . . $ FLAC__uint64# length;
1401 FLAC__uint64cxx . . $ FLAC__uint64# pos;
1402 uint32_tcxx . . $ uint32_t# eof_distance = 1024; /* Some number, needs tuning */
1403 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->is_seekingcxx . . $ FLAC__StreamDecoderPrivate#is_seeking. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1404 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->target_samplecxx . . $ FLAC__StreamDecoderPrivate#target_sample. = UINT64_MAXcxx . . $ `<external>/3415975807581488833/stdint.h:119:10`!;
1405 /* get the file length */
1406 if(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->length_callbackcxx . . $ FLAC__StreamDecoderPrivate#length_callback.(decoder, &length, decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->client_datacxx . . $ FLAC__StreamDecoderPrivate#client_data.) != FLAC__STREAM_DECODER_LENGTH_STATUS_OKcxx . . $ FLAC__STREAM_DECODER_LENGTH_STATUS_OK.) {
1407 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->is_indexingcxx . . $ FLAC__StreamDecoderPrivate#is_indexing. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1408 return 0;
1409 }
1410 pos = length;
1411 for( ; ; eof_distance *= 2) {
1412 if(eof_distance > (1u << FLAC__STREAM_METADATA_LENGTH_LENcxx . . $ FLAC__STREAM_METADATA_LENGTH_LEN.)) {
1413 /* Could not find a frame within a reasonable distance of EOF */
1414 return 0;
1415 }
1416 else if(pos == 0) {
1417 /* Did not find a frame while reading from the start of the file */
1418 return 0;
1419 }
1420 else if(eof_distance > length) {
1421 pos = 0;
1422 }
1423 else {
1424 pos = length - eof_distance;
1425 }
1426
1427 if(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->seek_callbackcxx . . $ FLAC__StreamDecoderPrivate#seek_callback.(decoder, pos, decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->client_datacxx . . $ FLAC__StreamDecoderPrivate#client_data.) != FLAC__STREAM_DECODER_SEEK_STATUS_OKcxx . . $ FLAC__STREAM_DECODER_SEEK_STATUS_OK.) {
1428 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. = FLAC__STREAM_DECODER_SEEK_ERRORcxx . . $ FLAC__STREAM_DECODER_SEEK_ERROR.;
1429 return 0;
1430 }
1431 if(!FLAC__stream_decoder_flushcxx . . $ FLAC__stream_decoder_flush(d92048749c4f1284).(decoder)) {
1432 /* above call sets the state for us */
1433 return 0;
1434 }
1435
1436 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->got_a_framecxx . . $ FLAC__StreamDecoderPrivate#got_a_frame. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1437 if(!FLAC__stream_decoder_process_singlecxx . . $ FLAC__stream_decoder_process_single(d92048749c4f1284).(decoder) ||
1438 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. == FLAC__STREAM_DECODER_ABORTEDcxx . . $ FLAC__STREAM_DECODER_ABORTED.) {
1439 if(decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. != FLAC__STREAM_DECODER_ABORTEDcxx . . $ FLAC__STREAM_DECODER_ABORTED. && decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. != FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERRORcxx . . $ FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR.)
1440 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. = FLAC__STREAM_DECODER_SEEK_ERRORcxx . . $ FLAC__STREAM_DECODER_SEEK_ERROR.;
1441 return 0;
1442 }
1443 if(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->got_a_framecxx . . $ FLAC__StreamDecoderPrivate#got_a_frame.) {
1444 /* Found a frame, but we need the last frame and the frame before that, unless the last frame is
1445 * also the first frame */
1446 if(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..numbercxx . . $ $anonymous_type_81a4853959168ec7_16#number..sample_numbercxx . . $ $anonymous_type_81a4853959168ec7_16#$anonymous_type_17#sample_number. > 0) {
1447 /* For now, assume this is not the last frame, set blocksize, and continue.
1448 * If it turns out this is not the last frame, we'll start over anyway */
1449 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->fixed_block_sizecxx . . $ FLAC__StreamDecoderPrivate#fixed_block_size. = decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->last_framecxx . . $ FLAC__StreamDecoderPrivate#last_frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..blocksizecxx . . $ $anonymous_type_81a4853959168ec7_16#blocksize.;
1450 if(!FLAC__stream_decoder_process_singlecxx . . $ FLAC__stream_decoder_process_single(d92048749c4f1284).(decoder) ||
1451 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. == FLAC__STREAM_DECODER_ABORTEDcxx . . $ FLAC__STREAM_DECODER_ABORTED.) {
1452 if(decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. != FLAC__STREAM_DECODER_ABORTEDcxx . . $ FLAC__STREAM_DECODER_ABORTED. && decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. != FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERRORcxx . . $ FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR.)
1453 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. = FLAC__STREAM_DECODER_SEEK_ERRORcxx . . $ FLAC__STREAM_DECODER_SEEK_ERROR.;
1454 return 0;
1455 }
1456 if(decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. == FLAC__STREAM_DECODER_END_OF_STREAMcxx . . $ FLAC__STREAM_DECODER_END_OF_STREAM.) {
1457 /* Found last frame, but need to find frame before that too */
1458 continue;
1459 }
1460 }
1461 if(!FLAC__stream_decoder_process_until_end_of_streamcxx . . $ FLAC__stream_decoder_process_until_end_of_stream(d92048749c4f1284).(decoder))
1462 return 0;
1463 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(decoder->private_->is_seeking);
1464 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(decoder->private_->last_frame_is_set);
1465 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->is_seekingcxx . . $ FLAC__StreamDecoderPrivate#is_seeking. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1466 return (FLAC__uint64cxx . . $ FLAC__uint64#)decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->last_framecxx . . $ FLAC__StreamDecoderPrivate#last_frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..numbercxx . . $ $anonymous_type_81a4853959168ec7_16#number..sample_numbercxx . . $ $anonymous_type_81a4853959168ec7_16#$anonymous_type_17#sample_number. + (FLAC__uint64cxx . . $ FLAC__uint64#)decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->last_framecxx . . $ FLAC__StreamDecoderPrivate#last_frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..blocksizecxx . . $ $anonymous_type_81a4853959168ec7_16#blocksize.;
1467
1468 }
1469 }
1470 }
1471 return 0;
1472 }
1473
1474 FLAC_APIcxx . . $ `external/flac/flac_FLAC_export.h:91:9`! int32_tcxx . . $ int32_t# FLAC__stream_decoder_get_link_lengthscxx . . $ FLAC__stream_decoder_get_link_lengths(59783aed4b2b58df).(FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder, FLAC__uint64cxx . . $ FLAC__uint64# **link_lengths)
1475 {
1476 /* If we don't have Ogg, this is (for now) useless, fail */
1477 #if FLAC__HAS_OGGcxx . . $ `./flac_config.h:42:9`!
1478 uint32_t i;
1479
1480 /* Check whether we're decoding chaines ogg, and decoder is somewhat valid */
1481 if(!decoder->private_->is_ogg ||
1482 !FLAC__stream_decoder_get_decode_chained_stream(decoder) ||
1483 decoder->protected_->state == FLAC__STREAM_DECODER_ABORTED ||
1484 decoder->protected_->state == FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR ||
1485 decoder->protected_->state == FLAC__STREAM_DECODER_UNINITIALIZED)
1486 return FLAC__STREAM_DECODER_GET_LINK_LENGTHS_INVALID;
1487
1488 /* Check whether link details are known. If not, fail */
1489 if(decoder->protected_->ogg_decoder_aspect.number_of_links_indexed == 0 ||
1490 !decoder->protected_->ogg_decoder_aspect.linkdetails[decoder->protected_->ogg_decoder_aspect.number_of_links_indexed - 1].is_last)
1491 return FLAC__STREAM_DECODER_GET_LINK_LENGTHS_NOT_INDEXED;
1492
1493 if(link_lengths != NULL) {
1494 *link_lengths = safe_malloc_mul_2op_p(sizeof(FLAC__uint64), decoder->protected_->ogg_decoder_aspect.number_of_links_indexed);
1495 if(*link_lengths == NULL)
1496 return FLAC__STREAM_DECODER_GET_LINK_LENGTHS_MEMORY_ALLOCATION_ERROR;
1497
1498 for(i = 0; i < decoder->protected_->ogg_decoder_aspect.number_of_links_indexed; i++)
1499 (*link_lengths)[i] = decoder->protected_->ogg_decoder_aspect.linkdetails[i].samples;
1500 }
1501
1502 return decoder->protected_->ogg_decoder_aspect.number_of_links_indexed;
1503 #else
1504 (void)decoder;
1505 (void)link_lengths;
1506 return FLAC__STREAM_DECODER_GET_LINK_LENGTHS_INVALIDcxx . . $ `external/flac/flac_FLAC_stream_decoder.h:1115:9`!;
1507 #endif
1508 }
1509
1510
1511 /***********************************************************************
1512 *
1513 * Protected class methods
1514 *
1515 ***********************************************************************/
1516
1517 uint32_tcxx . . $ uint32_t# FLAC__stream_decoder_get_input_bytes_unconsumedcxx . . $ FLAC__stream_decoder_get_input_bytes_unconsumed(517ab728c8f24dd5).(const FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder)
1518 {
1519 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0 != decoder);
1520 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(FLAC__bitreader_is_consumed_byte_aligned(decoder->private_->input));
1521 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(!(FLAC__bitreader_get_input_bits_unconsumed(decoder->private_->input) & 7));
1522 return FLAC__bitreader_get_input_bits_unconsumedcxx . . $ FLAC__bitreader_get_input_bits_unconsumed(14a98ca08b67a72b).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input.) / 8;
1523 }
1524
1525 /***********************************************************************
1526 *
1527 * Private class methods
1528 *
1529 ***********************************************************************/
1530
1531 void set_defaults_cxx . . $ set_defaults_(1ffd9838c68f2516).(FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder)
1532 {
1533 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->is_oggcxx . . $ FLAC__StreamDecoderPrivate#is_ogg. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1534 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->read_callbackcxx . . $ FLAC__StreamDecoderPrivate#read_callback. = 0;
1535 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->seek_callbackcxx . . $ FLAC__StreamDecoderPrivate#seek_callback. = 0;
1536 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->tell_callbackcxx . . $ FLAC__StreamDecoderPrivate#tell_callback. = 0;
1537 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->length_callbackcxx . . $ FLAC__StreamDecoderPrivate#length_callback. = 0;
1538 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->eof_callbackcxx . . $ FLAC__StreamDecoderPrivate#eof_callback. = 0;
1539 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->write_callbackcxx . . $ FLAC__StreamDecoderPrivate#write_callback. = 0;
1540 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->metadata_callbackcxx . . $ FLAC__StreamDecoderPrivate#metadata_callback. = 0;
1541 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->error_callbackcxx . . $ FLAC__StreamDecoderPrivate#error_callback. = 0;
1542 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->client_datacxx . . $ FLAC__StreamDecoderPrivate#client_data. = 0;
1543
1544 memsetcxx . . $ memset(d1de1e4fb215f1c6).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->metadata_filtercxx . . $ FLAC__StreamDecoderPrivate#metadata_filter., 0, sizeof(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->metadata_filtercxx . . $ FLAC__StreamDecoderPrivate#metadata_filter.));
1545 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->metadata_filtercxx . . $ FLAC__StreamDecoderPrivate#metadata_filter.[FLAC__METADATA_TYPE_STREAMINFOcxx . . $ FLAC__METADATA_TYPE_STREAMINFO.] = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1546 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->metadata_filter_ids_countcxx . . $ FLAC__StreamDecoderPrivate#metadata_filter_ids_count. = 0;
1547
1548 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->md5_checkingcxx . . $ FLAC__StreamDecoderProtected#md5_checking. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1549
1550 #if FLAC__HAS_OGGcxx . . $ `./flac_config.h:42:9`!
1551 FLAC__ogg_decoder_aspect_set_defaults(&decoder->protected_->ogg_decoder_aspect);
1552 #endif
1553 }
1554
1555 /*
1556 * This will forcibly set stdin to binary mode (for OSes that require it)
1557 */
1558 FILEcxx . . $ FILE# *get_binary_stdin_cxx . . $ get_binary_stdin_(3637adb0f06093ef).(void)
1559 {
1560 /* if something breaks here it is probably due to the presence or
1561 * absence of an underscore before the identifiers 'setmode',
1562 * 'fileno', and/or 'O_BINARY'; check your system header files.
1563 */
1564 #if defined _MSC_VER || defined __MINGW32__
1565 _setmode(_fileno(stdin), _O_BINARY);
1566 #elif defined __EMX__
1567 setmode(fileno(stdin), O_BINARY);
1568 #endif
1569
1570 return stdincxx . . $ `<external>/232824719582829767/stdio.h:153:9`!;
1571 }
1572
1573 FLAC__boolcxx . . $ FLAC__bool# allocate_output_cxx . . $ allocate_output_(5ba12e1b1278ecb2).(FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder, uint32_tcxx . . $ uint32_t# size, uint32_tcxx . . $ uint32_t# channels, uint32_tcxx . . $ uint32_t# bps)
1574 {
1575 uint32_tcxx . . $ uint32_t# i;
1576 FLAC__int32cxx . . $ FLAC__int32# *tmp;
1577
1578 if(size <= decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->output_capacitycxx . . $ FLAC__StreamDecoderPrivate#output_capacity. && channels <= decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->output_channelscxx . . $ FLAC__StreamDecoderPrivate#output_channels. &&
1579 (bps < 32 || decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->side_subframecxx . . $ FLAC__StreamDecoderPrivate#side_subframe. != 0))
1580 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1581
1582 /* simply using realloc() is not practical because the number of channels may change mid-stream */
1583
1584 for(i = 0; i < FLAC__MAX_CHANNELScxx . . $ `external/flac/flac_FLAC_format.h:106:9`!; i++) {
1585 if(0 != decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->outputcxx . . $ FLAC__StreamDecoderPrivate#output.[i]) {
1586 freecxx . . $ free(5d22bdacc48458e8).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->outputcxx . . $ FLAC__StreamDecoderPrivate#output.[i]-4);
1587 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->outputcxx . . $ FLAC__StreamDecoderPrivate#output.[i] = 0;
1588 }
1589 if(0 != decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->residual_unalignedcxx . . $ FLAC__StreamDecoderPrivate#residual_unaligned.[i]) {
1590 freecxx . . $ free(5d22bdacc48458e8).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->residual_unalignedcxx . . $ FLAC__StreamDecoderPrivate#residual_unaligned.[i]);
1591 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->residual_unalignedcxx . . $ FLAC__StreamDecoderPrivate#residual_unaligned.[i] = decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->residualcxx . . $ FLAC__StreamDecoderPrivate#residual.[i] = 0;
1592 }
1593 }
1594
1595 if(0 != decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->side_subframecxx . . $ FLAC__StreamDecoderPrivate#side_subframe.) {
1596 freecxx . . $ free(5d22bdacc48458e8).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->side_subframecxx . . $ FLAC__StreamDecoderPrivate#side_subframe.);
1597 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->side_subframecxx . . $ FLAC__StreamDecoderPrivate#side_subframe. = 0;
1598 }
1599
1600 /* Only grow per-channel buffers, even if number of channels increases */
1601 if(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->output_capacitycxx . . $ FLAC__StreamDecoderPrivate#output_capacity. > size) {
1602 size = decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->output_capacitycxx . . $ FLAC__StreamDecoderPrivate#output_capacity.;
1603 }
1604
1605 for(i = 0; i < channels; i++) {
1606 /* WATCHOUT:
1607 * FLAC__lpc_restore_signal_asm_ia32_mmx() and ..._intrin_sseN()
1608 * require that the output arrays have a buffer of up to 3 zeroes
1609 * in front (at negative indices) for alignment purposes;
1610 * we use 4 to keep the data well-aligned.
1611 */
1612 tmp = safe_malloc_muladd2_cxx . . $ safe_malloc_muladd2_(7483b66c05176f66).(sizeof(FLAC__int32cxx . . $ FLAC__int32#), /*times (*/size, /*+*/4/*)*/);
1613 if(tmp == 0) {
1614 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. = FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERRORcxx . . $ FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR.;
1615 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1616 }
1617 memsetcxx . . $ memset(d1de1e4fb215f1c6).(tmp, 0, sizeof(FLAC__int32cxx . . $ FLAC__int32#)*4);
1618 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->outputcxx . . $ FLAC__StreamDecoderPrivate#output.[i] = tmp + 4;
1619
1620 if(!FLAC__memory_alloc_aligned_int32_arraycxx . . $ FLAC__memory_alloc_aligned_int32_array(e43d86069415c433).(size, &decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->residual_unalignedcxx . . $ FLAC__StreamDecoderPrivate#residual_unaligned.[i], &decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->residualcxx . . $ FLAC__StreamDecoderPrivate#residual.[i])) {
1621 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. = FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERRORcxx . . $ FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR.;
1622 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1623 }
1624 }
1625
1626 if(bps == 32) {
1627 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->side_subframecxx . . $ FLAC__StreamDecoderPrivate#side_subframe. = safe_malloc_mul_2op_pcxx . . $ safe_malloc_mul_2op_p(63a7bf2941bfcd7a).(sizeof(FLAC__int64cxx . . $ FLAC__int64#), /*times (*/size);
1628 if(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->side_subframecxx . . $ FLAC__StreamDecoderPrivate#side_subframe. == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) {
1629 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. = FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERRORcxx . . $ FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR.;
1630 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1631 }
1632 }
1633
1634 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->output_capacitycxx . . $ FLAC__StreamDecoderPrivate#output_capacity. = size;
1635 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->output_channelscxx . . $ FLAC__StreamDecoderPrivate#output_channels. = channels;
1636
1637 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1638 }
1639
1640 FLAC__boolcxx . . $ FLAC__bool# has_id_filtered_cxx . . $ has_id_filtered_(660469bb510a7660).(FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder, FLAC__bytecxx . . $ FLAC__byte# *id)
1641 {
1642 size_t i;
1643
1644 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0 != decoder);
1645 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0 != decoder->private_);
1646
1647 for(i = 0; i < decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->metadata_filter_ids_countcxx . . $ FLAC__StreamDecoderPrivate#metadata_filter_ids_count.; i++)
1648 if(0 == memcmpcxx . . $ memcmp(36f949851efa3055).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->metadata_filter_idscxx . . $ FLAC__StreamDecoderPrivate#metadata_filter_ids. + i * (FLAC__STREAM_METADATA_APPLICATION_ID_LENcxx . . $ FLAC__STREAM_METADATA_APPLICATION_ID_LEN./8), id, (FLAC__STREAM_METADATA_APPLICATION_ID_LENcxx . . $ FLAC__STREAM_METADATA_APPLICATION_ID_LEN./8)))
1649 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1650
1651 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1652 }
1653
1654 FLAC__boolcxx . . $ FLAC__bool# find_metadata_cxx . . $ find_metadata_(d92048749c4f1284).(FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder)
1655 {
1656 FLAC__uint32cxx . . $ FLAC__uint32# x;
1657 uint32_tcxx . . $ uint32_t# i, id;
1658 FLAC__boolcxx . . $ FLAC__bool# first = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1659
1660 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(FLAC__bitreader_is_consumed_byte_aligned(decoder->private_->input));
1661
1662 for(i = id = 0; i < 4; ) {
1663 if(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->cachedcxx . . $ FLAC__StreamDecoderPrivate#cached.) {
1664 x = (FLAC__uint32cxx . . $ FLAC__uint32#)decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->lookaheadcxx . . $ FLAC__StreamDecoderPrivate#lookahead.;
1665 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->cachedcxx . . $ FLAC__StreamDecoderPrivate#cached. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1666 }
1667 else {
1668 if(!FLAC__bitreader_read_raw_uint32cxx . . $ FLAC__bitreader_read_raw_uint32(ea282896fbfc92c4).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., &x, 8))
1669 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* read_callback_ sets the state for us */
1670 }
1671 if(x == FLAC__STREAM_SYNC_STRINGcxx . . $ FLAC__STREAM_SYNC_STRING.[i]) {
1672 first = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1673 i++;
1674 id = 0;
1675 continue;
1676 }
1677
1678 if(id >= 3)
1679 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1680
1681 if(x == ID3V2_TAG_cxx . . $ ID3V2_TAG_.[id]) {
1682 id++;
1683 i = 0;
1684 if(id == 3) {
1685 if(!skip_id3v2_tag_cxx . . $ skip_id3v2_tag_(d92048749c4f1284).(decoder))
1686 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* skip_id3v2_tag_ sets the state for us */
1687 }
1688 continue;
1689 }
1690 id = 0;
1691 if(x == 0xff) { /* MAGIC NUMBER for the first 8 frame sync bits */
1692 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->header_warmupcxx . . $ FLAC__StreamDecoderPrivate#header_warmup.[0] = (FLAC__bytecxx . . $ FLAC__byte#)x;
1693 if(!FLAC__bitreader_read_raw_uint32cxx . . $ FLAC__bitreader_read_raw_uint32(ea282896fbfc92c4).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., &x, 8))
1694 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* read_callback_ sets the state for us */
1695
1696 /* we have to check if we just read two 0xff's in a row; the second may actually be the beginning of the sync code */
1697 /* else we have to check if the second byte is the end of a sync code */
1698 if(x == 0xff) { /* MAGIC NUMBER for the first 8 frame sync bits */
1699 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->lookaheadcxx . . $ FLAC__StreamDecoderPrivate#lookahead. = (FLAC__bytecxx . . $ FLAC__byte#)x;
1700 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->cachedcxx . . $ FLAC__StreamDecoderPrivate#cached. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1701 }
1702 else if(x >> 1 == 0x7c) { /* MAGIC NUMBER for the last 6 sync bits and reserved 7th bit */
1703 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->header_warmupcxx . . $ FLAC__StreamDecoderPrivate#header_warmup.[1] = (FLAC__bytecxx . . $ FLAC__byte#)x;
1704 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. = FLAC__STREAM_DECODER_READ_FRAMEcxx . . $ FLAC__STREAM_DECODER_READ_FRAME.;
1705 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1706 }
1707 }
1708 i = 0;
1709 if(first) {
1710 send_error_to_client_cxx . . $ send_error_to_client_(cc791be6cdc6ea1d).(decoder, FLAC__STREAM_DECODER_ERROR_STATUS_LOST_SYNCcxx . . $ FLAC__STREAM_DECODER_ERROR_STATUS_LOST_SYNC.);
1711 first = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1712 }
1713 }
1714
1715 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. = FLAC__STREAM_DECODER_READ_METADATAcxx . . $ FLAC__STREAM_DECODER_READ_METADATA.;
1716 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1717 }
1718
1719 FLAC__boolcxx . . $ FLAC__bool# read_metadata_cxx . . $ read_metadata_(d92048749c4f1284).(FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder)
1720 {
1721 FLAC__boolcxx . . $ FLAC__bool# is_last;
1722 FLAC__uint32cxx . . $ FLAC__uint32# i, x, type, length;
1723
1724 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(FLAC__bitreader_is_consumed_byte_aligned(decoder->private_->input));
1725
1726 if(!FLAC__bitreader_read_raw_uint32cxx . . $ FLAC__bitreader_read_raw_uint32(ea282896fbfc92c4).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., &x, FLAC__STREAM_METADATA_IS_LAST_LENcxx . . $ FLAC__STREAM_METADATA_IS_LAST_LEN.))
1727 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* read_callback_ sets the state for us */
1728 is_last = x? truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`! : falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1729
1730 if(!FLAC__bitreader_read_raw_uint32cxx . . $ FLAC__bitreader_read_raw_uint32(ea282896fbfc92c4).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., &type, FLAC__STREAM_METADATA_TYPE_LENcxx . . $ FLAC__STREAM_METADATA_TYPE_LEN.))
1731 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* read_callback_ sets the state for us */
1732
1733 if(!FLAC__bitreader_read_raw_uint32cxx . . $ FLAC__bitreader_read_raw_uint32(ea282896fbfc92c4).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., &length, FLAC__STREAM_METADATA_LENGTH_LENcxx . . $ FLAC__STREAM_METADATA_LENGTH_LEN.))
1734 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* read_callback_ sets the state for us */
1735
1736 if(type == FLAC__METADATA_TYPE_STREAMINFOcxx . . $ FLAC__METADATA_TYPE_STREAMINFO.) {
1737 if(!read_metadata_streaminfo_cxx . . $ read_metadata_streaminfo_(392e0515e5d09fa8).(decoder, is_last, length))
1738 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1739
1740 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->has_stream_infocxx . . $ FLAC__StreamDecoderPrivate#has_stream_info. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1741 if(0 == memcmpcxx . . $ memcmp(36f949851efa3055).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->stream_infocxx . . $ FLAC__StreamDecoderPrivate#stream_info..datacxx . . $ FLAC__StreamMetadata#data..stream_infocxx . . $ FLAC__StreamMetadata#$anonymous_type_34#stream_info..md5sumcxx . . $ $anonymous_type_81a4853959168ec7_21#md5sum., "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", 16))
1742 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->do_md5_checkingcxx . . $ FLAC__StreamDecoderPrivate#do_md5_checking. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1743 if(!decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->is_seekingcxx . . $ FLAC__StreamDecoderPrivate#is_seeking. && decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->metadata_filtercxx . . $ FLAC__StreamDecoderPrivate#metadata_filter.[FLAC__METADATA_TYPE_STREAMINFOcxx . . $ FLAC__METADATA_TYPE_STREAMINFO.] && decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->metadata_callbackcxx . . $ FLAC__StreamDecoderPrivate#metadata_callback.)
1744 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->metadata_callbackcxx . . $ FLAC__StreamDecoderPrivate#metadata_callback.(decoder, &decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->stream_infocxx . . $ FLAC__StreamDecoderPrivate#stream_info., decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->client_datacxx . . $ FLAC__StreamDecoderPrivate#client_data.);
1745 }
1746 else if(type == FLAC__METADATA_TYPE_SEEKTABLEcxx . . $ FLAC__METADATA_TYPE_SEEKTABLE.) {
1747 /* just in case we already have a seek table, and reading the next one fails: */
1748 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->has_seek_tablecxx . . $ FLAC__StreamDecoderPrivate#has_seek_table. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1749
1750 if(length > 0) {
1751 if(!read_metadata_seektable_cxx . . $ read_metadata_seektable_(392e0515e5d09fa8).(decoder, is_last, length))
1752 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1753
1754 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->has_seek_tablecxx . . $ FLAC__StreamDecoderPrivate#has_seek_table. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1755 if(!decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->is_seekingcxx . . $ FLAC__StreamDecoderPrivate#is_seeking. && decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->metadata_filtercxx . . $ FLAC__StreamDecoderPrivate#metadata_filter.[FLAC__METADATA_TYPE_SEEKTABLEcxx . . $ FLAC__METADATA_TYPE_SEEKTABLE.] && decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->metadata_callbackcxx . . $ FLAC__StreamDecoderPrivate#metadata_callback.)
1756 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->metadata_callbackcxx . . $ FLAC__StreamDecoderPrivate#metadata_callback.(decoder, &decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->seek_tablecxx . . $ FLAC__StreamDecoderPrivate#seek_table., decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->client_datacxx . . $ FLAC__StreamDecoderPrivate#client_data.);
1757 }
1758 }
1759 else {
1760 FLAC__boolcxx . . $ FLAC__bool# skip_it = !decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->metadata_filtercxx . . $ FLAC__StreamDecoderPrivate#metadata_filter.[type];
1761 uint32_tcxx . . $ uint32_t# real_length = length;
1762 FLAC__StreamMetadatacxx . . $ FLAC__StreamMetadata# block;
1763
1764 memsetcxx . . $ memset(d1de1e4fb215f1c6).(&block, 0, sizeof(block));
1765 block.is_lastcxx . . $ FLAC__StreamMetadata#is_last. = is_last;
1766 block.typecxx . . $ FLAC__StreamMetadata#type. = (FLAC__MetadataTypecxx . . $ FLAC__MetadataType#)type;
1767 block.lengthcxx . . $ FLAC__StreamMetadata#length. = length;
1768
1769 if(type == FLAC__METADATA_TYPE_APPLICATIONcxx . . $ FLAC__METADATA_TYPE_APPLICATION.) {
1770 if(!FLAC__bitreader_read_byte_block_aligned_no_crccxx . . $ FLAC__bitreader_read_byte_block_aligned_no_crc(dc5b6d073ad66220).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., block.datacxx . . $ FLAC__StreamMetadata#data..applicationcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#application..idcxx . . $ $anonymous_type_81a4853959168ec7_23#id., FLAC__STREAM_METADATA_APPLICATION_ID_LENcxx . . $ FLAC__STREAM_METADATA_APPLICATION_ID_LEN./8))
1771 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* read_callback_ sets the state for us */
1772
1773 if(real_length < FLAC__STREAM_METADATA_APPLICATION_ID_LENcxx . . $ FLAC__STREAM_METADATA_APPLICATION_ID_LEN./8) { /* underflow check */
1774 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. = FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERRORcxx . . $ FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR.;/*@@@@@@ maybe wrong error? need to resync?*/
1775 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1776 }
1777
1778 real_length -= FLAC__STREAM_METADATA_APPLICATION_ID_LENcxx . . $ FLAC__STREAM_METADATA_APPLICATION_ID_LEN./8;
1779
1780 if(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->metadata_filter_ids_countcxx . . $ FLAC__StreamDecoderPrivate#metadata_filter_ids_count. > 0 && has_id_filtered_cxx . . $ has_id_filtered_(660469bb510a7660).(decoder, block.datacxx . . $ FLAC__StreamMetadata#data..applicationcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#application..idcxx . . $ $anonymous_type_81a4853959168ec7_23#id.))
1781 skip_it = !skip_it;
1782 }
1783
1784 if(skip_it) {
1785 if(!FLAC__bitreader_skip_byte_block_aligned_no_crccxx . . $ FLAC__bitreader_skip_byte_block_aligned_no_crc(ff077cd27fc33d03).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., real_length))
1786 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* read_callback_ sets the state for us */
1787 }
1788 else {
1789 FLAC__boolcxx . . $ FLAC__bool# ok = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1790 FLAC__bitreader_set_limitcxx . . $ FLAC__bitreader_set_limit(4d6eb5b2213be688).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., real_length*8);
1791 switch(type) {
1792 case FLAC__METADATA_TYPE_PADDINGcxx . . $ FLAC__METADATA_TYPE_PADDING.:
1793 /* skip the padding bytes */
1794 if(!FLAC__bitreader_skip_byte_block_aligned_no_crccxx . . $ FLAC__bitreader_skip_byte_block_aligned_no_crc(ff077cd27fc33d03).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., real_length))
1795 ok = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* read_callback_ sets the state for us */
1796 break;
1797 case FLAC__METADATA_TYPE_APPLICATIONcxx . . $ FLAC__METADATA_TYPE_APPLICATION.:
1798 /* remember, we read the ID already */
1799 if(real_length > 0) {
1800 if(0 == (block.datacxx . . $ FLAC__StreamMetadata#data..applicationcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#application..datacxx . . $ $anonymous_type_81a4853959168ec7_23#data. = malloccxx . . $ malloc(bfcfa4d6b7f7ef64).(real_length))) {
1801 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. = FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERRORcxx . . $ FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR.;
1802 ok = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1803 }
1804 else if(!FLAC__bitreader_read_byte_block_aligned_no_crccxx . . $ FLAC__bitreader_read_byte_block_aligned_no_crc(dc5b6d073ad66220).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., block.datacxx . . $ FLAC__StreamMetadata#data..applicationcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#application..datacxx . . $ $anonymous_type_81a4853959168ec7_23#data., real_length))
1805 ok = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* read_callback_ sets the state for us */
1806 }
1807 else
1808 block.datacxx . . $ FLAC__StreamMetadata#data..applicationcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#application..datacxx . . $ $anonymous_type_81a4853959168ec7_23#data. = 0;
1809 break;
1810 case FLAC__METADATA_TYPE_VORBIS_COMMENTcxx . . $ FLAC__METADATA_TYPE_VORBIS_COMMENT.:
1811 if(!read_metadata_vorbiscomment_cxx . . $ read_metadata_vorbiscomment_(6fbb57256c616ac6).(decoder, &block.datacxx . . $ FLAC__StreamMetadata#data..vorbis_commentcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#vorbis_comment., real_length))
1812 ok = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1813 break;
1814 case FLAC__METADATA_TYPE_CUESHEETcxx . . $ FLAC__METADATA_TYPE_CUESHEET.:
1815 if(!read_metadata_cuesheet_cxx . . $ read_metadata_cuesheet_(afdd464cbd786c4d).(decoder, &block.datacxx . . $ FLAC__StreamMetadata#data..cue_sheetcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#cue_sheet.))
1816 ok = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1817 break;
1818 case FLAC__METADATA_TYPE_PICTUREcxx . . $ FLAC__METADATA_TYPE_PICTURE.:
1819 if(!read_metadata_picture_cxx . . $ read_metadata_picture_(6991bb8537349498).(decoder, &block.datacxx . . $ FLAC__StreamMetadata#data..picturecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#picture.))
1820 ok = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1821 break;
1822 case FLAC__METADATA_TYPE_STREAMINFOcxx . . $ FLAC__METADATA_TYPE_STREAMINFO.:
1823 case FLAC__METADATA_TYPE_SEEKTABLEcxx . . $ FLAC__METADATA_TYPE_SEEKTABLE.:
1824 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0);
1825 break;
1826 default:
1827 if(real_length > 0) {
1828 if(0 == (block.datacxx . . $ FLAC__StreamMetadata#data..unknowncxx . . $ FLAC__StreamMetadata#$anonymous_type_34#unknown..datacxx . . $ $anonymous_type_81a4853959168ec7_33#data. = malloccxx . . $ malloc(bfcfa4d6b7f7ef64).(real_length))) {
1829 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. = FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERRORcxx . . $ FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR.;
1830 ok = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1831 }
1832 else if(!FLAC__bitreader_read_byte_block_aligned_no_crccxx . . $ FLAC__bitreader_read_byte_block_aligned_no_crc(dc5b6d073ad66220).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., block.datacxx . . $ FLAC__StreamMetadata#data..unknowncxx . . $ FLAC__StreamMetadata#$anonymous_type_34#unknown..datacxx . . $ $anonymous_type_81a4853959168ec7_33#data., real_length))
1833 ok = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* read_callback_ sets the state for us */
1834 }
1835 else
1836 block.datacxx . . $ FLAC__StreamMetadata#data..unknowncxx . . $ FLAC__StreamMetadata#$anonymous_type_34#unknown..datacxx . . $ $anonymous_type_81a4853959168ec7_33#data. = 0;
1837 break;
1838 }
1839 if(FLAC__bitreader_limit_remainingcxx . . $ FLAC__bitreader_limit_remaining(1d5c92027e40b2f1).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input.) > 0) {
1840 /* Content in metadata block didn't fit in block length
1841 * We cannot know whether the length or the content was
1842 * corrupt, so stop parsing metadata */
1843 send_error_to_client_cxx . . $ send_error_to_client_(cc791be6cdc6ea1d).(decoder, FLAC__STREAM_DECODER_ERROR_STATUS_BAD_METADATAcxx . . $ FLAC__STREAM_DECODER_ERROR_STATUS_BAD_METADATA.);
1844 if(decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. == FLAC__STREAM_DECODER_READ_METADATAcxx . . $ FLAC__STREAM_DECODER_READ_METADATA.)
1845 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. = FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNCcxx . . $ FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC.;
1846 ok = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1847 }
1848 FLAC__bitreader_remove_limitcxx . . $ FLAC__bitreader_remove_limit(5639cb4d47c4565e).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input.);
1849 if(ok && !decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->is_seekingcxx . . $ FLAC__StreamDecoderPrivate#is_seeking. && decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->metadata_callbackcxx . . $ FLAC__StreamDecoderPrivate#metadata_callback.)
1850 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->metadata_callbackcxx . . $ FLAC__StreamDecoderPrivate#metadata_callback.(decoder, &block, decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->client_datacxx . . $ FLAC__StreamDecoderPrivate#client_data.);
1851
1852 /* now we have to free any malloc()ed data in the block */
1853 switch(type) {
1854 case FLAC__METADATA_TYPE_PADDINGcxx . . $ FLAC__METADATA_TYPE_PADDING.:
1855 break;
1856 case FLAC__METADATA_TYPE_APPLICATIONcxx . . $ FLAC__METADATA_TYPE_APPLICATION.:
1857 if(0 != block.datacxx . . $ FLAC__StreamMetadata#data..applicationcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#application..datacxx . . $ $anonymous_type_81a4853959168ec7_23#data.)
1858 freecxx . . $ free(5d22bdacc48458e8).(block.datacxx . . $ FLAC__StreamMetadata#data..applicationcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#application..datacxx . . $ $anonymous_type_81a4853959168ec7_23#data.);
1859 break;
1860 case FLAC__METADATA_TYPE_VORBIS_COMMENTcxx . . $ FLAC__METADATA_TYPE_VORBIS_COMMENT.:
1861 if(0 != block.datacxx . . $ FLAC__StreamMetadata#data..vorbis_commentcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#vorbis_comment..vendor_stringcxx . . $ $anonymous_type_81a4853959168ec7_27#vendor_string..entrycxx . . $ $anonymous_type_81a4853959168ec7_26#entry.)
1862 freecxx . . $ free(5d22bdacc48458e8).(block.datacxx . . $ FLAC__StreamMetadata#data..vorbis_commentcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#vorbis_comment..vendor_stringcxx . . $ $anonymous_type_81a4853959168ec7_27#vendor_string..entrycxx . . $ $anonymous_type_81a4853959168ec7_26#entry.);
1863 if(block.datacxx . . $ FLAC__StreamMetadata#data..vorbis_commentcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#vorbis_comment..num_commentscxx . . $ $anonymous_type_81a4853959168ec7_27#num_comments. > 0)
1864 for(i = 0; i < block.datacxx . . $ FLAC__StreamMetadata#data..vorbis_commentcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#vorbis_comment..num_commentscxx . . $ $anonymous_type_81a4853959168ec7_27#num_comments.; i++)
1865 if(0 != block.datacxx . . $ FLAC__StreamMetadata#data..vorbis_commentcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#vorbis_comment..commentscxx . . $ $anonymous_type_81a4853959168ec7_27#comments.[i].entrycxx . . $ $anonymous_type_81a4853959168ec7_26#entry.)
1866 freecxx . . $ free(5d22bdacc48458e8).(block.datacxx . . $ FLAC__StreamMetadata#data..vorbis_commentcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#vorbis_comment..commentscxx . . $ $anonymous_type_81a4853959168ec7_27#comments.[i].entrycxx . . $ $anonymous_type_81a4853959168ec7_26#entry.);
1867 if(0 != block.datacxx . . $ FLAC__StreamMetadata#data..vorbis_commentcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#vorbis_comment..commentscxx . . $ $anonymous_type_81a4853959168ec7_27#comments.)
1868 freecxx . . $ free(5d22bdacc48458e8).(block.datacxx . . $ FLAC__StreamMetadata#data..vorbis_commentcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#vorbis_comment..commentscxx . . $ $anonymous_type_81a4853959168ec7_27#comments.);
1869 break;
1870 case FLAC__METADATA_TYPE_CUESHEETcxx . . $ FLAC__METADATA_TYPE_CUESHEET.:
1871 if(block.datacxx . . $ FLAC__StreamMetadata#data..cue_sheetcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#cue_sheet..num_trackscxx . . $ $anonymous_type_81a4853959168ec7_30#num_tracks. > 0 && 0 != block.datacxx . . $ FLAC__StreamMetadata#data..cue_sheetcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#cue_sheet..trackscxx . . $ $anonymous_type_81a4853959168ec7_30#tracks.)
1872 for(i = 0; i < block.datacxx . . $ FLAC__StreamMetadata#data..cue_sheetcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#cue_sheet..num_trackscxx . . $ $anonymous_type_81a4853959168ec7_30#num_tracks.; i++)
1873 if(0 != block.datacxx . . $ FLAC__StreamMetadata#data..cue_sheetcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#cue_sheet..trackscxx . . $ $anonymous_type_81a4853959168ec7_30#tracks.[i].indicescxx . . $ $anonymous_type_81a4853959168ec7_29#indices.)
1874 freecxx . . $ free(5d22bdacc48458e8).(block.datacxx . . $ FLAC__StreamMetadata#data..cue_sheetcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#cue_sheet..trackscxx . . $ $anonymous_type_81a4853959168ec7_30#tracks.[i].indicescxx . . $ $anonymous_type_81a4853959168ec7_29#indices.);
1875 if(0 != block.datacxx . . $ FLAC__StreamMetadata#data..cue_sheetcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#cue_sheet..trackscxx . . $ $anonymous_type_81a4853959168ec7_30#tracks.)
1876 freecxx . . $ free(5d22bdacc48458e8).(block.datacxx . . $ FLAC__StreamMetadata#data..cue_sheetcxx . . $ FLAC__StreamMetadata#$anonymous_type_34#cue_sheet..trackscxx . . $ $anonymous_type_81a4853959168ec7_30#tracks.);
1877 break;
1878 case FLAC__METADATA_TYPE_PICTUREcxx . . $ FLAC__METADATA_TYPE_PICTURE.:
1879 if(0 != block.datacxx . . $ FLAC__StreamMetadata#data..picturecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#picture..mime_typecxx . . $ $anonymous_type_81a4853959168ec7_32#mime_type.)
1880 freecxx . . $ free(5d22bdacc48458e8).(block.datacxx . . $ FLAC__StreamMetadata#data..picturecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#picture..mime_typecxx . . $ $anonymous_type_81a4853959168ec7_32#mime_type.);
1881 if(0 != block.datacxx . . $ FLAC__StreamMetadata#data..picturecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#picture..descriptioncxx . . $ $anonymous_type_81a4853959168ec7_32#description.)
1882 freecxx . . $ free(5d22bdacc48458e8).(block.datacxx . . $ FLAC__StreamMetadata#data..picturecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#picture..descriptioncxx . . $ $anonymous_type_81a4853959168ec7_32#description.);
1883 if(0 != block.datacxx . . $ FLAC__StreamMetadata#data..picturecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#picture..datacxx . . $ $anonymous_type_81a4853959168ec7_32#data.)
1884 freecxx . . $ free(5d22bdacc48458e8).(block.datacxx . . $ FLAC__StreamMetadata#data..picturecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#picture..datacxx . . $ $anonymous_type_81a4853959168ec7_32#data.);
1885 break;
1886 case FLAC__METADATA_TYPE_STREAMINFOcxx . . $ FLAC__METADATA_TYPE_STREAMINFO.:
1887 case FLAC__METADATA_TYPE_SEEKTABLEcxx . . $ FLAC__METADATA_TYPE_SEEKTABLE.:
1888 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0);
1889 default:
1890 if(0 != block.datacxx . . $ FLAC__StreamMetadata#data..unknowncxx . . $ FLAC__StreamMetadata#$anonymous_type_34#unknown..datacxx . . $ $anonymous_type_81a4853959168ec7_33#data.)
1891 freecxx . . $ free(5d22bdacc48458e8).(block.datacxx . . $ FLAC__StreamMetadata#data..unknowncxx . . $ FLAC__StreamMetadata#$anonymous_type_34#unknown..datacxx . . $ $anonymous_type_81a4853959168ec7_33#data.);
1892 break;
1893 }
1894
1895 if(!ok) /* anything that unsets "ok" should also make sure decoder->protected_->state is updated */
1896 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1897 }
1898 }
1899
1900 if(is_last) {
1901 /* if this fails, it's OK, it's just a hint for the seek routine */
1902 if(!FLAC__stream_decoder_get_decode_positioncxx . . $ FLAC__stream_decoder_get_decode_position(eaa4447c58feeb10).(decoder, &decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->first_frame_offsetcxx . . $ FLAC__StreamDecoderPrivate#first_frame_offset.))
1903 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->first_frame_offsetcxx . . $ FLAC__StreamDecoderPrivate#first_frame_offset. = 0;
1904 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. = FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNCcxx . . $ FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC.;
1905 }
1906
1907 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1908 }
1909
1910 FLAC__boolcxx . . $ FLAC__bool# read_metadata_streaminfo_cxx . . $ read_metadata_streaminfo_(392e0515e5d09fa8).(FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder, FLAC__boolcxx . . $ FLAC__bool# is_last, uint32_tcxx . . $ uint32_t# length)
1911 {
1912 FLAC__uint32cxx . . $ FLAC__uint32# x;
1913 uint32_tcxx . . $ uint32_t# bits, used_bits = 0;
1914
1915 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(FLAC__bitreader_is_consumed_byte_aligned(decoder->private_->input));
1916
1917 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->stream_infocxx . . $ FLAC__StreamDecoderPrivate#stream_info..typecxx . . $ FLAC__StreamMetadata#type. = FLAC__METADATA_TYPE_STREAMINFOcxx . . $ FLAC__METADATA_TYPE_STREAMINFO.;
1918 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->stream_infocxx . . $ FLAC__StreamDecoderPrivate#stream_info..is_lastcxx . . $ FLAC__StreamMetadata#is_last. = is_last;
1919 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->stream_infocxx . . $ FLAC__StreamDecoderPrivate#stream_info..lengthcxx . . $ FLAC__StreamMetadata#length. = length;
1920
1921 bits = FLAC__STREAM_METADATA_STREAMINFO_MIN_BLOCK_SIZE_LENcxx . . $ FLAC__STREAM_METADATA_STREAMINFO_MIN_BLOCK_SIZE_LEN.;
1922 if(!FLAC__bitreader_read_raw_uint32cxx . . $ FLAC__bitreader_read_raw_uint32(ea282896fbfc92c4).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., &x, bits))
1923 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* read_callback_ sets the state for us */
1924 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->stream_infocxx . . $ FLAC__StreamDecoderPrivate#stream_info..datacxx . . $ FLAC__StreamMetadata#data..stream_infocxx . . $ FLAC__StreamMetadata#$anonymous_type_34#stream_info..min_blocksizecxx . . $ $anonymous_type_81a4853959168ec7_21#min_blocksize. = x;
1925 used_bits += bits;
1926
1927 bits = FLAC__STREAM_METADATA_STREAMINFO_MAX_BLOCK_SIZE_LENcxx . . $ FLAC__STREAM_METADATA_STREAMINFO_MAX_BLOCK_SIZE_LEN.;
1928 if(!FLAC__bitreader_read_raw_uint32cxx . . $ FLAC__bitreader_read_raw_uint32(ea282896fbfc92c4).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., &x, FLAC__STREAM_METADATA_STREAMINFO_MAX_BLOCK_SIZE_LENcxx . . $ FLAC__STREAM_METADATA_STREAMINFO_MAX_BLOCK_SIZE_LEN.))
1929 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* read_callback_ sets the state for us */
1930 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->stream_infocxx . . $ FLAC__StreamDecoderPrivate#stream_info..datacxx . . $ FLAC__StreamMetadata#data..stream_infocxx . . $ FLAC__StreamMetadata#$anonymous_type_34#stream_info..max_blocksizecxx . . $ $anonymous_type_81a4853959168ec7_21#max_blocksize. = x;
1931 used_bits += bits;
1932
1933 bits = FLAC__STREAM_METADATA_STREAMINFO_MIN_FRAME_SIZE_LENcxx . . $ FLAC__STREAM_METADATA_STREAMINFO_MIN_FRAME_SIZE_LEN.;
1934 if(!FLAC__bitreader_read_raw_uint32cxx . . $ FLAC__bitreader_read_raw_uint32(ea282896fbfc92c4).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., &x, FLAC__STREAM_METADATA_STREAMINFO_MIN_FRAME_SIZE_LENcxx . . $ FLAC__STREAM_METADATA_STREAMINFO_MIN_FRAME_SIZE_LEN.))
1935 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* read_callback_ sets the state for us */
1936 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->stream_infocxx . . $ FLAC__StreamDecoderPrivate#stream_info..datacxx . . $ FLAC__StreamMetadata#data..stream_infocxx . . $ FLAC__StreamMetadata#$anonymous_type_34#stream_info..min_framesizecxx . . $ $anonymous_type_81a4853959168ec7_21#min_framesize. = x;
1937 used_bits += bits;
1938
1939 bits = FLAC__STREAM_METADATA_STREAMINFO_MAX_FRAME_SIZE_LENcxx . . $ FLAC__STREAM_METADATA_STREAMINFO_MAX_FRAME_SIZE_LEN.;
1940 if(!FLAC__bitreader_read_raw_uint32cxx . . $ FLAC__bitreader_read_raw_uint32(ea282896fbfc92c4).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., &x, FLAC__STREAM_METADATA_STREAMINFO_MAX_FRAME_SIZE_LENcxx . . $ FLAC__STREAM_METADATA_STREAMINFO_MAX_FRAME_SIZE_LEN.))
1941 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* read_callback_ sets the state for us */
1942 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->stream_infocxx . . $ FLAC__StreamDecoderPrivate#stream_info..datacxx . . $ FLAC__StreamMetadata#data..stream_infocxx . . $ FLAC__StreamMetadata#$anonymous_type_34#stream_info..max_framesizecxx . . $ $anonymous_type_81a4853959168ec7_21#max_framesize. = x;
1943 used_bits += bits;
1944
1945 bits = FLAC__STREAM_METADATA_STREAMINFO_SAMPLE_RATE_LENcxx . . $ FLAC__STREAM_METADATA_STREAMINFO_SAMPLE_RATE_LEN.;
1946 if(!FLAC__bitreader_read_raw_uint32cxx . . $ FLAC__bitreader_read_raw_uint32(ea282896fbfc92c4).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., &x, FLAC__STREAM_METADATA_STREAMINFO_SAMPLE_RATE_LENcxx . . $ FLAC__STREAM_METADATA_STREAMINFO_SAMPLE_RATE_LEN.))
1947 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* read_callback_ sets the state for us */
1948 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->stream_infocxx . . $ FLAC__StreamDecoderPrivate#stream_info..datacxx . . $ FLAC__StreamMetadata#data..stream_infocxx . . $ FLAC__StreamMetadata#$anonymous_type_34#stream_info..sample_ratecxx . . $ $anonymous_type_81a4853959168ec7_21#sample_rate. = x;
1949 used_bits += bits;
1950
1951 bits = FLAC__STREAM_METADATA_STREAMINFO_CHANNELS_LENcxx . . $ FLAC__STREAM_METADATA_STREAMINFO_CHANNELS_LEN.;
1952 if(!FLAC__bitreader_read_raw_uint32cxx . . $ FLAC__bitreader_read_raw_uint32(ea282896fbfc92c4).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., &x, FLAC__STREAM_METADATA_STREAMINFO_CHANNELS_LENcxx . . $ FLAC__STREAM_METADATA_STREAMINFO_CHANNELS_LEN.))
1953 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* read_callback_ sets the state for us */
1954 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->stream_infocxx . . $ FLAC__StreamDecoderPrivate#stream_info..datacxx . . $ FLAC__StreamMetadata#data..stream_infocxx . . $ FLAC__StreamMetadata#$anonymous_type_34#stream_info..channelscxx . . $ $anonymous_type_81a4853959168ec7_21#channels. = x+1;
1955 used_bits += bits;
1956
1957 bits = FLAC__STREAM_METADATA_STREAMINFO_BITS_PER_SAMPLE_LENcxx . . $ FLAC__STREAM_METADATA_STREAMINFO_BITS_PER_SAMPLE_LEN.;
1958 if(!FLAC__bitreader_read_raw_uint32cxx . . $ FLAC__bitreader_read_raw_uint32(ea282896fbfc92c4).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., &x, FLAC__STREAM_METADATA_STREAMINFO_BITS_PER_SAMPLE_LENcxx . . $ FLAC__STREAM_METADATA_STREAMINFO_BITS_PER_SAMPLE_LEN.))
1959 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* read_callback_ sets the state for us */
1960 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->stream_infocxx . . $ FLAC__StreamDecoderPrivate#stream_info..datacxx . . $ FLAC__StreamMetadata#data..stream_infocxx . . $ FLAC__StreamMetadata#$anonymous_type_34#stream_info..bits_per_samplecxx . . $ $anonymous_type_81a4853959168ec7_21#bits_per_sample. = x+1;
1961 used_bits += bits;
1962
1963 bits = FLAC__STREAM_METADATA_STREAMINFO_TOTAL_SAMPLES_LENcxx . . $ FLAC__STREAM_METADATA_STREAMINFO_TOTAL_SAMPLES_LEN.;
1964 if(!FLAC__bitreader_read_raw_uint64cxx . . $ FLAC__bitreader_read_raw_uint64(fed839c6fcae5edd).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., &decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->stream_infocxx . . $ FLAC__StreamDecoderPrivate#stream_info..datacxx . . $ FLAC__StreamMetadata#data..stream_infocxx . . $ FLAC__StreamMetadata#$anonymous_type_34#stream_info..total_samplescxx . . $ $anonymous_type_81a4853959168ec7_21#total_samples., FLAC__STREAM_METADATA_STREAMINFO_TOTAL_SAMPLES_LENcxx . . $ FLAC__STREAM_METADATA_STREAMINFO_TOTAL_SAMPLES_LEN.))
1965 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* read_callback_ sets the state for us */
1966 used_bits += bits;
1967
1968 if(!FLAC__bitreader_read_byte_block_aligned_no_crccxx . . $ FLAC__bitreader_read_byte_block_aligned_no_crc(dc5b6d073ad66220).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->stream_infocxx . . $ FLAC__StreamDecoderPrivate#stream_info..datacxx . . $ FLAC__StreamMetadata#data..stream_infocxx . . $ FLAC__StreamMetadata#$anonymous_type_34#stream_info..md5sumcxx . . $ $anonymous_type_81a4853959168ec7_21#md5sum., 16))
1969 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* read_callback_ sets the state for us */
1970 used_bits += 16*8;
1971
1972 /* skip the rest of the block */
1973 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(used_bits % 8 == 0);
1974 if (length < (used_bits / 8))
1975 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* read_callback_ sets the state for us */
1976 length -= (used_bits / 8);
1977 if(!FLAC__bitreader_skip_byte_block_aligned_no_crccxx . . $ FLAC__bitreader_skip_byte_block_aligned_no_crc(ff077cd27fc33d03).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., length))
1978 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* read_callback_ sets the state for us */
1979
1980 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1981 }
1982
1983 FLAC__boolcxx . . $ FLAC__bool# read_metadata_seektable_cxx . . $ read_metadata_seektable_(392e0515e5d09fa8).(FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder, FLAC__boolcxx . . $ FLAC__bool# is_last, uint32_tcxx . . $ uint32_t# length)
1984 {
1985 FLAC__uint32cxx . . $ FLAC__uint32# i, x;
1986 FLAC__uint64cxx . . $ FLAC__uint64# xx;
1987
1988 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(FLAC__bitreader_is_consumed_byte_aligned(decoder->private_->input));
1989
1990 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->seek_tablecxx . . $ FLAC__StreamDecoderPrivate#seek_table..typecxx . . $ FLAC__StreamMetadata#type. = FLAC__METADATA_TYPE_SEEKTABLEcxx . . $ FLAC__METADATA_TYPE_SEEKTABLE.;
1991 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->seek_tablecxx . . $ FLAC__StreamDecoderPrivate#seek_table..is_lastcxx . . $ FLAC__StreamMetadata#is_last. = is_last;
1992 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->seek_tablecxx . . $ FLAC__StreamDecoderPrivate#seek_table..lengthcxx . . $ FLAC__StreamMetadata#length. = length;
1993
1994 if(length % FLAC__STREAM_METADATA_SEEKPOINT_LENGTHcxx . . $ `external/flac/flac_FLAC_format.h:598:9`!) {
1995 FLAC__bitreader_limit_invalidatecxx . . $ FLAC__bitreader_limit_invalidate(5639cb4d47c4565e).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input.);
1996 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1997 }
1998
1999 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->seek_tablecxx . . $ FLAC__StreamDecoderPrivate#seek_table..datacxx . . $ FLAC__StreamMetadata#data..seek_tablecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#seek_table..num_pointscxx . . $ $anonymous_type_81a4853959168ec7_25#num_points. = length / FLAC__STREAM_METADATA_SEEKPOINT_LENGTHcxx . . $ `external/flac/flac_FLAC_format.h:598:9`!;
2000
2001 /* use realloc since we may pass through here several times (e.g. after seeking) */
2002 if(0 == (decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->seek_tablecxx . . $ FLAC__StreamDecoderPrivate#seek_table..datacxx . . $ FLAC__StreamMetadata#data..seek_tablecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#seek_table..pointscxx . . $ $anonymous_type_81a4853959168ec7_25#points. = safe_realloc_mul_2op_cxx . . $ safe_realloc_mul_2op_(dfa4a9ebc9436eff).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->seek_tablecxx . . $ FLAC__StreamDecoderPrivate#seek_table..datacxx . . $ FLAC__StreamMetadata#data..seek_tablecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#seek_table..pointscxx . . $ $anonymous_type_81a4853959168ec7_25#points., decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->seek_tablecxx . . $ FLAC__StreamDecoderPrivate#seek_table..datacxx . . $ FLAC__StreamMetadata#data..seek_tablecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#seek_table..num_pointscxx . . $ $anonymous_type_81a4853959168ec7_25#num_points., /*times*/sizeof(FLAC__StreamMetadata_SeekPointcxx . . $ FLAC__StreamMetadata_SeekPoint#)))) {
2003 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. = FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERRORcxx . . $ FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR.;
2004 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
2005 }
2006 for(i = 0; i < decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->seek_tablecxx . . $ FLAC__StreamDecoderPrivate#seek_table..datacxx . . $ FLAC__StreamMetadata#data..seek_tablecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#seek_table..num_pointscxx . . $ $anonymous_type_81a4853959168ec7_25#num_points.; i++) {
2007 if(!FLAC__bitreader_read_raw_uint64cxx . . $ FLAC__bitreader_read_raw_uint64(fed839c6fcae5edd).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., &xx, FLAC__STREAM_METADATA_SEEKPOINT_SAMPLE_NUMBER_LENcxx . . $ FLAC__STREAM_METADATA_SEEKPOINT_SAMPLE_NUMBER_LEN.))
2008 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* read_callback_ sets the state for us */
2009 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->seek_tablecxx . . $ FLAC__StreamDecoderPrivate#seek_table..datacxx . . $ FLAC__StreamMetadata#data..seek_tablecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#seek_table..pointscxx . . $ $anonymous_type_81a4853959168ec7_25#points.[i].sample_numbercxx . . $ $anonymous_type_81a4853959168ec7_24#sample_number. = xx;
2010
2011 if(!FLAC__bitreader_read_raw_uint64cxx . . $ FLAC__bitreader_read_raw_uint64(fed839c6fcae5edd).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., &xx, FLAC__STREAM_METADATA_SEEKPOINT_STREAM_OFFSET_LENcxx . . $ FLAC__STREAM_METADATA_SEEKPOINT_STREAM_OFFSET_LEN.))
2012 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* read_callback_ sets the state for us */
2013 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->seek_tablecxx . . $ FLAC__StreamDecoderPrivate#seek_table..datacxx . . $ FLAC__StreamMetadata#data..seek_tablecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#seek_table..pointscxx . . $ $anonymous_type_81a4853959168ec7_25#points.[i].stream_offsetcxx . . $ $anonymous_type_81a4853959168ec7_24#stream_offset. = xx;
2014
2015 if(!FLAC__bitreader_read_raw_uint32cxx . . $ FLAC__bitreader_read_raw_uint32(ea282896fbfc92c4).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., &x, FLAC__STREAM_METADATA_SEEKPOINT_FRAME_SAMPLES_LENcxx . . $ FLAC__STREAM_METADATA_SEEKPOINT_FRAME_SAMPLES_LEN.))
2016 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* read_callback_ sets the state for us */
2017 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->seek_tablecxx . . $ FLAC__StreamDecoderPrivate#seek_table..datacxx . . $ FLAC__StreamMetadata#data..seek_tablecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#seek_table..pointscxx . . $ $anonymous_type_81a4853959168ec7_25#points.[i].frame_samplescxx . . $ $anonymous_type_81a4853959168ec7_24#frame_samples. = x;
2018 }
2019 length -= (decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->seek_tablecxx . . $ FLAC__StreamDecoderPrivate#seek_table..datacxx . . $ FLAC__StreamMetadata#data..seek_tablecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#seek_table..num_pointscxx . . $ $anonymous_type_81a4853959168ec7_25#num_points. * FLAC__STREAM_METADATA_SEEKPOINT_LENGTHcxx . . $ `external/flac/flac_FLAC_format.h:598:9`!);
2020
2021 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(length == 0);
2022
2023 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
2024 }
2025
2026 FLAC__boolcxx . . $ FLAC__bool# read_metadata_vorbiscomment_cxx . . $ read_metadata_vorbiscomment_(6fbb57256c616ac6).(FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder, FLAC__StreamMetadata_VorbisCommentcxx . . $ FLAC__StreamMetadata_VorbisComment# *obj, uint32_tcxx . . $ uint32_t# length)
2027 {
2028 FLAC__uint32cxx . . $ FLAC__uint32# i;
2029
2030 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(FLAC__bitreader_is_consumed_byte_aligned(decoder->private_->input));
2031
2032 /* read vendor string */
2033 if (length >= 8) {
2034 length -= 8; /* vendor string length + num comments entries alone take 8 bytes */
2035 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(FLAC__STREAM_METADATA_VORBIS_COMMENT_ENTRY_LENGTH_LEN == 32);
2036 if (!FLAC__bitreader_read_uint32_little_endiancxx . . $ FLAC__bitreader_read_uint32_little_endian(f6ede57617504980).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., &obj->vendor_stringcxx . . $ $anonymous_type_81a4853959168ec7_27#vendor_string..lengthcxx . . $ $anonymous_type_81a4853959168ec7_26#length.))
2037 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* read_callback_ sets the state for us */
2038 if (length < obj->vendor_stringcxx . . $ $anonymous_type_81a4853959168ec7_27#vendor_string..lengthcxx . . $ $anonymous_type_81a4853959168ec7_26#length.) {
2039 obj->vendor_stringcxx . . $ $anonymous_type_81a4853959168ec7_27#vendor_string..lengthcxx . . $ $anonymous_type_81a4853959168ec7_26#length. = 0;
2040 obj->vendor_stringcxx . . $ $anonymous_type_81a4853959168ec7_27#vendor_string..entrycxx . . $ $anonymous_type_81a4853959168ec7_26#entry. = 0;
2041 goto skip;
2042 }
2043 else
2044 length -= obj->vendor_stringcxx . . $ $anonymous_type_81a4853959168ec7_27#vendor_string..lengthcxx . . $ $anonymous_type_81a4853959168ec7_26#length.;
2045 if (0 == (obj->vendor_stringcxx . . $ $anonymous_type_81a4853959168ec7_27#vendor_string..entrycxx . . $ $anonymous_type_81a4853959168ec7_26#entry. = safe_malloc_add_2op_cxx . . $ safe_malloc_add_2op_(63a7bf2941bfcd7a).(obj->vendor_stringcxx . . $ $anonymous_type_81a4853959168ec7_27#vendor_string..lengthcxx . . $ $anonymous_type_81a4853959168ec7_26#length., /*+*/1))) {
2046 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. = FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERRORcxx . . $ FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR.;
2047 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
2048 }
2049 if (!FLAC__bitreader_read_byte_block_aligned_no_crccxx . . $ FLAC__bitreader_read_byte_block_aligned_no_crc(dc5b6d073ad66220).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., obj->vendor_stringcxx . . $ $anonymous_type_81a4853959168ec7_27#vendor_string..entrycxx . . $ $anonymous_type_81a4853959168ec7_26#entry., obj->vendor_stringcxx . . $ $anonymous_type_81a4853959168ec7_27#vendor_string..lengthcxx . . $ $anonymous_type_81a4853959168ec7_26#length.))
2050 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* read_callback_ sets the state for us */
2051 obj->vendor_stringcxx . . $ $anonymous_type_81a4853959168ec7_27#vendor_string..entrycxx . . $ $anonymous_type_81a4853959168ec7_26#entry.[obj->vendor_stringcxx . . $ $anonymous_type_81a4853959168ec7_27#vendor_string..lengthcxx . . $ $anonymous_type_81a4853959168ec7_26#length.] = '\0';
2052
2053 /* read num comments */
2054 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(FLAC__STREAM_METADATA_VORBIS_COMMENT_NUM_COMMENTS_LEN == 32);
2055 if (!FLAC__bitreader_read_uint32_little_endiancxx . . $ FLAC__bitreader_read_uint32_little_endian(f6ede57617504980).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., &obj->num_commentscxx . . $ $anonymous_type_81a4853959168ec7_27#num_comments.))
2056 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* read_callback_ sets the state for us */
2057
2058 /* read comments */
2059 if (obj->num_commentscxx . . $ $anonymous_type_81a4853959168ec7_27#num_comments. > 100000) {
2060 /* Possibly malicious file. */
2061 obj->num_commentscxx . . $ $anonymous_type_81a4853959168ec7_27#num_comments. = 0;
2062 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
2063 }
2064 if (obj->num_commentscxx . . $ $anonymous_type_81a4853959168ec7_27#num_comments. > 0) {
2065 if (0 == (obj->commentscxx . . $ $anonymous_type_81a4853959168ec7_27#comments. = safe_malloc_mul_2op_pcxx . . $ safe_malloc_mul_2op_p(63a7bf2941bfcd7a).(obj->num_commentscxx . . $ $anonymous_type_81a4853959168ec7_27#num_comments., /*times*/sizeof(FLAC__StreamMetadata_VorbisComment_Entrycxx . . $ FLAC__StreamMetadata_VorbisComment_Entry#)))) {
2066 obj->num_commentscxx . . $ $anonymous_type_81a4853959168ec7_27#num_comments. = 0;
2067 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. = FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERRORcxx . . $ FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR.;
2068 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
2069 }
2070 for (i = 0; i < obj->num_commentscxx . . $ $anonymous_type_81a4853959168ec7_27#num_comments.; i++) {
2071 /* Initialize here just to make sure. */
2072 obj->commentscxx . . $ $anonymous_type_81a4853959168ec7_27#comments.[i].lengthcxx . . $ $anonymous_type_81a4853959168ec7_26#length. = 0;
2073 obj->commentscxx . . $ $anonymous_type_81a4853959168ec7_27#comments.[i].entrycxx . . $ $anonymous_type_81a4853959168ec7_26#entry. = 0;
2074
2075 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(FLAC__STREAM_METADATA_VORBIS_COMMENT_ENTRY_LENGTH_LEN == 32);
2076 if (length < 4) {
2077 obj->num_commentscxx . . $ $anonymous_type_81a4853959168ec7_27#num_comments. = i;
2078 goto skip;
2079 }
2080 else
2081 length -= 4;
2082 if (!FLAC__bitreader_read_uint32_little_endiancxx . . $ FLAC__bitreader_read_uint32_little_endian(f6ede57617504980).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., &obj->commentscxx . . $ $anonymous_type_81a4853959168ec7_27#comments.[i].lengthcxx . . $ $anonymous_type_81a4853959168ec7_26#length.)) {
2083 obj->num_commentscxx . . $ $anonymous_type_81a4853959168ec7_27#num_comments. = i;
2084 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* read_callback_ sets the state for us */
2085 }
2086 if (length < obj->commentscxx . . $ $anonymous_type_81a4853959168ec7_27#comments.[i].lengthcxx . . $ $anonymous_type_81a4853959168ec7_26#length.) {
2087 obj->num_commentscxx . . $ $anonymous_type_81a4853959168ec7_27#num_comments. = i;
2088 FLAC__bitreader_limit_invalidatecxx . . $ FLAC__bitreader_limit_invalidate(5639cb4d47c4565e).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input.);
2089 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
2090 }
2091 else
2092 length -= obj->commentscxx . . $ $anonymous_type_81a4853959168ec7_27#comments.[i].lengthcxx . . $ $anonymous_type_81a4853959168ec7_26#length.;
2093 if (0 == (obj->commentscxx . . $ $anonymous_type_81a4853959168ec7_27#comments.[i].entrycxx . . $ $anonymous_type_81a4853959168ec7_26#entry. = safe_malloc_add_2op_cxx . . $ safe_malloc_add_2op_(63a7bf2941bfcd7a).(obj->commentscxx . . $ $anonymous_type_81a4853959168ec7_27#comments.[i].lengthcxx . . $ $anonymous_type_81a4853959168ec7_26#length., /*+*/1))) {
2094 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. = FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERRORcxx . . $ FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR.;
2095 obj->num_commentscxx . . $ $anonymous_type_81a4853959168ec7_27#num_comments. = i;
2096 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
2097 }
2098 memsetcxx . . $ memset(d1de1e4fb215f1c6). (obj->commentscxx . . $ $anonymous_type_81a4853959168ec7_27#comments.[i].entrycxx . . $ $anonymous_type_81a4853959168ec7_26#entry., 0, obj->commentscxx . . $ $anonymous_type_81a4853959168ec7_27#comments.[i].lengthcxx . . $ $anonymous_type_81a4853959168ec7_26#length.) ;
2099 if (!FLAC__bitreader_read_byte_block_aligned_no_crccxx . . $ FLAC__bitreader_read_byte_block_aligned_no_crc(dc5b6d073ad66220).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., obj->commentscxx . . $ $anonymous_type_81a4853959168ec7_27#comments.[i].entrycxx . . $ $anonymous_type_81a4853959168ec7_26#entry., obj->commentscxx . . $ $anonymous_type_81a4853959168ec7_27#comments.[i].lengthcxx . . $ $anonymous_type_81a4853959168ec7_26#length.)) {
2100 /* Current i-th entry is bad, so we delete it. */
2101 freecxx . . $ free(5d22bdacc48458e8). (obj->commentscxx . . $ $anonymous_type_81a4853959168ec7_27#comments.[i].entrycxx . . $ $anonymous_type_81a4853959168ec7_26#entry.) ;
2102 obj->commentscxx . . $ $anonymous_type_81a4853959168ec7_27#comments.[i].entrycxx . . $ $anonymous_type_81a4853959168ec7_26#entry. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! ;
2103 obj->num_commentscxx . . $ $anonymous_type_81a4853959168ec7_27#num_comments. = i;
2104 goto skip;
2105 }
2106 obj->commentscxx . . $ $anonymous_type_81a4853959168ec7_27#comments.[i].entrycxx . . $ $anonymous_type_81a4853959168ec7_26#entry.[obj->commentscxx . . $ $anonymous_type_81a4853959168ec7_27#comments.[i].lengthcxx . . $ $anonymous_type_81a4853959168ec7_26#length.] = '\0';
2107 }
2108 }
2109 }
2110 else {
2111 FLAC__bitreader_limit_invalidatecxx . . $ FLAC__bitreader_limit_invalidate(5639cb4d47c4565e).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input.);
2112 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
2113 }
2114
2115 skip:
2116 if (length > 0) {
2117 /* length > 0 can only happen on files with invalid data in comments */
2118 if(obj->num_commentscxx . . $ $anonymous_type_81a4853959168ec7_27#num_comments. < 1) {
2119 freecxx . . $ free(5d22bdacc48458e8).(obj->commentscxx . . $ $anonymous_type_81a4853959168ec7_27#comments.);
2120 obj->commentscxx . . $ $anonymous_type_81a4853959168ec7_27#comments. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!;
2121 }
2122 FLAC__bitreader_limit_invalidatecxx . . $ FLAC__bitreader_limit_invalidate(5639cb4d47c4565e).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input.);
2123 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
2124 }
2125
2126 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
2127 }
2128
2129 FLAC__boolcxx . . $ FLAC__bool# read_metadata_cuesheet_cxx . . $ read_metadata_cuesheet_(afdd464cbd786c4d).(FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder, FLAC__StreamMetadata_CueSheetcxx . . $ FLAC__StreamMetadata_CueSheet# *obj)
2130 {
2131 FLAC__uint32cxx . . $ FLAC__uint32# i, j, x;
2132
2133 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(FLAC__bitreader_is_consumed_byte_aligned(decoder->private_->input));
2134
2135 memsetcxx . . $ memset(d1de1e4fb215f1c6).(obj, 0, sizeof(FLAC__StreamMetadata_CueSheetcxx . . $ FLAC__StreamMetadata_CueSheet#));
2136
2137 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(FLAC__STREAM_METADATA_CUESHEET_MEDIA_CATALOG_NUMBER_LEN % 8 == 0);
2138 if(!FLAC__bitreader_read_byte_block_aligned_no_crccxx . . $ FLAC__bitreader_read_byte_block_aligned_no_crc(dc5b6d073ad66220).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., (FLAC__bytecxx . . $ FLAC__byte#*)obj->media_catalog_numbercxx . . $ $anonymous_type_81a4853959168ec7_30#media_catalog_number., FLAC__STREAM_METADATA_CUESHEET_MEDIA_CATALOG_NUMBER_LENcxx . . $ FLAC__STREAM_METADATA_CUESHEET_MEDIA_CATALOG_NUMBER_LEN./8))
2139 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* read_callback_ sets the state for us */
2140
2141 if(!FLAC__bitreader_read_raw_uint64cxx . . $ FLAC__bitreader_read_raw_uint64(fed839c6fcae5edd).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., &obj->lead_incxx . . $ $anonymous_type_81a4853959168ec7_30#lead_in., FLAC__STREAM_METADATA_CUESHEET_LEAD_IN_LENcxx . . $ FLAC__STREAM_METADATA_CUESHEET_LEAD_IN_LEN.))
2142 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* read_callback_ sets the state for us */
2143
2144 if(!FLAC__bitreader_read_raw_uint32cxx . . $ FLAC__bitreader_read_raw_uint32(ea282896fbfc92c4).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., &x, FLAC__STREAM_METADATA_CUESHEET_IS_CD_LENcxx . . $ FLAC__STREAM_METADATA_CUESHEET_IS_CD_LEN.))
2145 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* read_callback_ sets the state for us */
2146 obj->is_cdcxx . . $ $anonymous_type_81a4853959168ec7_30#is_cd. = x? truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`! : falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
2147
2148 if(!FLAC__bitreader_skip_bits_no_crccxx . . $ FLAC__bitreader_skip_bits_no_crc(ff077cd27fc33d03).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., FLAC__STREAM_METADATA_CUESHEET_RESERVED_LENcxx . . $ FLAC__STREAM_METADATA_CUESHEET_RESERVED_LEN.))
2149 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* read_callback_ sets the state for us */
2150
2151 if(!FLAC__bitreader_read_raw_uint32cxx . . $ FLAC__bitreader_read_raw_uint32(ea282896fbfc92c4).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., &x, FLAC__STREAM_METADATA_CUESHEET_NUM_TRACKS_LENcxx . . $ FLAC__STREAM_METADATA_CUESHEET_NUM_TRACKS_LEN.))
2152 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* read_callback_ sets the state for us */
2153 obj->num_trackscxx . . $ $anonymous_type_81a4853959168ec7_30#num_tracks. = x;
2154
2155 if(obj->num_trackscxx . . $ $anonymous_type_81a4853959168ec7_30#num_tracks. > 0) {
2156 if(0 == (obj->trackscxx . . $ $anonymous_type_81a4853959168ec7_30#tracks. = safe_calloc_cxx . . $ safe_calloc_(63a7bf2941bfcd7a).(obj->num_trackscxx . . $ $anonymous_type_81a4853959168ec7_30#num_tracks., sizeof(FLAC__StreamMetadata_CueSheet_Trackcxx . . $ FLAC__StreamMetadata_CueSheet_Track#)))) {
2157 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. = FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERRORcxx . . $ FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR.;
2158 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
2159 }
2160 for(i = 0; i < obj->num_trackscxx . . $ $anonymous_type_81a4853959168ec7_30#num_tracks.; i++) {
2161 FLAC__StreamMetadata_CueSheet_Trackcxx . . $ FLAC__StreamMetadata_CueSheet_Track# *track = &obj->trackscxx . . $ $anonymous_type_81a4853959168ec7_30#tracks.[i];
2162 if(!FLAC__bitreader_read_raw_uint64cxx . . $ FLAC__bitreader_read_raw_uint64(fed839c6fcae5edd).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., &track->offsetcxx . . $ $anonymous_type_81a4853959168ec7_29#offset., FLAC__STREAM_METADATA_CUESHEET_TRACK_OFFSET_LENcxx . . $ FLAC__STREAM_METADATA_CUESHEET_TRACK_OFFSET_LEN.))
2163 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* read_callback_ sets the state for us */
2164
2165 if(!FLAC__bitreader_read_raw_uint32cxx . . $ FLAC__bitreader_read_raw_uint32(ea282896fbfc92c4).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., &x, FLAC__STREAM_METADATA_CUESHEET_TRACK_NUMBER_LENcxx . . $ FLAC__STREAM_METADATA_CUESHEET_TRACK_NUMBER_LEN.))
2166 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* read_callback_ sets the state for us */
2167 track->numbercxx . . $ $anonymous_type_81a4853959168ec7_29#number. = (FLAC__bytecxx . . $ FLAC__byte#)x;
2168
2169 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(FLAC__STREAM_METADATA_CUESHEET_TRACK_ISRC_LEN % 8 == 0);
2170 if(!FLAC__bitreader_read_byte_block_aligned_no_crccxx . . $ FLAC__bitreader_read_byte_block_aligned_no_crc(dc5b6d073ad66220).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., (FLAC__bytecxx . . $ FLAC__byte#*)track->isrccxx . . $ $anonymous_type_81a4853959168ec7_29#isrc., FLAC__STREAM_METADATA_CUESHEET_TRACK_ISRC_LENcxx . . $ FLAC__STREAM_METADATA_CUESHEET_TRACK_ISRC_LEN./8))
2171 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* read_callback_ sets the state for us */
2172
2173 if(!FLAC__bitreader_read_raw_uint32cxx . . $ FLAC__bitreader_read_raw_uint32(ea282896fbfc92c4).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., &x, FLAC__STREAM_METADATA_CUESHEET_TRACK_TYPE_LENcxx . . $ FLAC__STREAM_METADATA_CUESHEET_TRACK_TYPE_LEN.))
2174 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* read_callback_ sets the state for us */
2175 track->typecxx . . $ $anonymous_type_81a4853959168ec7_29#type. = x;
2176
2177 if(!FLAC__bitreader_read_raw_uint32cxx . . $ FLAC__bitreader_read_raw_uint32(ea282896fbfc92c4).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., &x, FLAC__STREAM_METADATA_CUESHEET_TRACK_PRE_EMPHASIS_LENcxx . . $ FLAC__STREAM_METADATA_CUESHEET_TRACK_PRE_EMPHASIS_LEN.))
2178 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* read_callback_ sets the state for us */
2179 track->pre_emphasiscxx . . $ $anonymous_type_81a4853959168ec7_29#pre_emphasis. = x;
2180
2181 if(!FLAC__bitreader_skip_bits_no_crccxx . . $ FLAC__bitreader_skip_bits_no_crc(ff077cd27fc33d03).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., FLAC__STREAM_METADATA_CUESHEET_TRACK_RESERVED_LENcxx . . $ FLAC__STREAM_METADATA_CUESHEET_TRACK_RESERVED_LEN.))
2182 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* read_callback_ sets the state for us */
2183
2184 if(!FLAC__bitreader_read_raw_uint32cxx . . $ FLAC__bitreader_read_raw_uint32(ea282896fbfc92c4).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., &x, FLAC__STREAM_METADATA_CUESHEET_TRACK_NUM_INDICES_LENcxx . . $ FLAC__STREAM_METADATA_CUESHEET_TRACK_NUM_INDICES_LEN.))
2185 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* read_callback_ sets the state for us */
2186 track->num_indicescxx . . $ $anonymous_type_81a4853959168ec7_29#num_indices. = (FLAC__bytecxx . . $ FLAC__byte#)x;
2187
2188 if(track->num_indicescxx . . $ $anonymous_type_81a4853959168ec7_29#num_indices. > 0) {
2189 if(0 == (track->indicescxx . . $ $anonymous_type_81a4853959168ec7_29#indices. = safe_calloc_cxx . . $ safe_calloc_(63a7bf2941bfcd7a).(track->num_indicescxx . . $ $anonymous_type_81a4853959168ec7_29#num_indices., sizeof(FLAC__StreamMetadata_CueSheet_Indexcxx . . $ FLAC__StreamMetadata_CueSheet_Index#)))) {
2190 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. = FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERRORcxx . . $ FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR.;
2191 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
2192 }
2193 for(j = 0; j < track->num_indicescxx . . $ $anonymous_type_81a4853959168ec7_29#num_indices.; j++) {
2194 FLAC__StreamMetadata_CueSheet_Indexcxx . . $ FLAC__StreamMetadata_CueSheet_Index# *indx = &track->indicescxx . . $ $anonymous_type_81a4853959168ec7_29#indices.[j];
2195 if(!FLAC__bitreader_read_raw_uint64cxx . . $ FLAC__bitreader_read_raw_uint64(fed839c6fcae5edd).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., &indx->offsetcxx . . $ $anonymous_type_81a4853959168ec7_28#offset., FLAC__STREAM_METADATA_CUESHEET_INDEX_OFFSET_LENcxx . . $ FLAC__STREAM_METADATA_CUESHEET_INDEX_OFFSET_LEN.))
2196 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* read_callback_ sets the state for us */
2197
2198 if(!FLAC__bitreader_read_raw_uint32cxx . . $ FLAC__bitreader_read_raw_uint32(ea282896fbfc92c4).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., &x, FLAC__STREAM_METADATA_CUESHEET_INDEX_NUMBER_LENcxx . . $ FLAC__STREAM_METADATA_CUESHEET_INDEX_NUMBER_LEN.))
2199 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* read_callback_ sets the state for us */
2200 indx->numbercxx . . $ $anonymous_type_81a4853959168ec7_28#number. = (FLAC__bytecxx . . $ FLAC__byte#)x;
2201
2202 if(!FLAC__bitreader_skip_bits_no_crccxx . . $ FLAC__bitreader_skip_bits_no_crc(ff077cd27fc33d03).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., FLAC__STREAM_METADATA_CUESHEET_INDEX_RESERVED_LENcxx . . $ FLAC__STREAM_METADATA_CUESHEET_INDEX_RESERVED_LEN.))
2203 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* read_callback_ sets the state for us */
2204 }
2205 }
2206 }
2207 }
2208 else { /* obj->num_tracks == 0 */
2209 FLAC__bitreader_limit_invalidatecxx . . $ FLAC__bitreader_limit_invalidate(5639cb4d47c4565e).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input.);
2210 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
2211 }
2212
2213 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
2214 }
2215
2216 FLAC__boolcxx . . $ FLAC__bool# read_metadata_picture_cxx . . $ read_metadata_picture_(6991bb8537349498).(FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder, FLAC__StreamMetadata_Picturecxx . . $ FLAC__StreamMetadata_Picture# *obj)
2217 {
2218 FLAC__uint32cxx . . $ FLAC__uint32# x;
2219
2220 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(FLAC__bitreader_is_consumed_byte_aligned(decoder->private_->input));
2221
2222 /* read type */
2223 if(!FLAC__bitreader_read_raw_uint32cxx . . $ FLAC__bitreader_read_raw_uint32(ea282896fbfc92c4).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., &x, FLAC__STREAM_METADATA_PICTURE_TYPE_LENcxx . . $ FLAC__STREAM_METADATA_PICTURE_TYPE_LEN.))
2224 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* read_callback_ sets the state for us */
2225 if(x < FLAC__STREAM_METADATA_PICTURE_TYPE_UNDEFINEDcxx . . $ FLAC__STREAM_METADATA_PICTURE_TYPE_UNDEFINED.)
2226 obj->typecxx . . $ $anonymous_type_81a4853959168ec7_32#type. = x;
2227 else
2228 obj->typecxx . . $ $anonymous_type_81a4853959168ec7_32#type. = FLAC__STREAM_METADATA_PICTURE_TYPE_OTHERcxx . . $ FLAC__STREAM_METADATA_PICTURE_TYPE_OTHER.;
2229
2230 /* read MIME type */
2231 if(!FLAC__bitreader_read_raw_uint32cxx . . $ FLAC__bitreader_read_raw_uint32(ea282896fbfc92c4).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., &x, FLAC__STREAM_METADATA_PICTURE_MIME_TYPE_LENGTH_LENcxx . . $ FLAC__STREAM_METADATA_PICTURE_MIME_TYPE_LENGTH_LEN.))
2232 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* read_callback_ sets the state for us */
2233 if(FLAC__bitreader_limit_remainingcxx . . $ FLAC__bitreader_limit_remaining(1d5c92027e40b2f1).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input.) < x){
2234 FLAC__bitreader_limit_invalidatecxx . . $ FLAC__bitreader_limit_invalidate(5639cb4d47c4565e).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input.);
2235 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
2236 }
2237 if(0 == (obj->mime_typecxx . . $ $anonymous_type_81a4853959168ec7_32#mime_type. = safe_malloc_add_2op_cxx . . $ safe_malloc_add_2op_(63a7bf2941bfcd7a).(x, /*+*/1))) {
2238 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. = FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERRORcxx . . $ FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR.;
2239 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
2240 }
2241 if(x > 0) {
2242 if(!FLAC__bitreader_read_byte_block_aligned_no_crccxx . . $ FLAC__bitreader_read_byte_block_aligned_no_crc(dc5b6d073ad66220).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., (FLAC__bytecxx . . $ FLAC__byte#*)obj->mime_typecxx . . $ $anonymous_type_81a4853959168ec7_32#mime_type., x))
2243 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* read_callback_ sets the state for us */
2244 }
2245 obj->mime_typecxx . . $ $anonymous_type_81a4853959168ec7_32#mime_type.[x] = '\0';
2246
2247 /* read description */
2248 if(!FLAC__bitreader_read_raw_uint32cxx . . $ FLAC__bitreader_read_raw_uint32(ea282896fbfc92c4).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., &x, FLAC__STREAM_METADATA_PICTURE_DESCRIPTION_LENGTH_LENcxx . . $ FLAC__STREAM_METADATA_PICTURE_DESCRIPTION_LENGTH_LEN.))
2249 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* read_callback_ sets the state for us */
2250 if(FLAC__bitreader_limit_remainingcxx . . $ FLAC__bitreader_limit_remaining(1d5c92027e40b2f1).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input.) < x){
2251 FLAC__bitreader_limit_invalidatecxx . . $ FLAC__bitreader_limit_invalidate(5639cb4d47c4565e).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input.);
2252 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
2253 }
2254 if(0 == (obj->descriptioncxx . . $ $anonymous_type_81a4853959168ec7_32#description. = safe_malloc_add_2op_cxx . . $ safe_malloc_add_2op_(63a7bf2941bfcd7a).(x, /*+*/1))) {
2255 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. = FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERRORcxx . . $ FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR.;
2256 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
2257 }
2258 if(x > 0) {
2259 if(!FLAC__bitreader_read_byte_block_aligned_no_crccxx . . $ FLAC__bitreader_read_byte_block_aligned_no_crc(dc5b6d073ad66220).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., obj->descriptioncxx . . $ $anonymous_type_81a4853959168ec7_32#description., x))
2260 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* read_callback_ sets the state for us */
2261 }
2262 obj->descriptioncxx . . $ $anonymous_type_81a4853959168ec7_32#description.[x] = '\0';
2263
2264 /* read width */
2265 if(!FLAC__bitreader_read_raw_uint32cxx . . $ FLAC__bitreader_read_raw_uint32(ea282896fbfc92c4).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., &obj->widthcxx . . $ $anonymous_type_81a4853959168ec7_32#width., FLAC__STREAM_METADATA_PICTURE_WIDTH_LENcxx . . $ FLAC__STREAM_METADATA_PICTURE_WIDTH_LEN.))
2266 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* read_callback_ sets the state for us */
2267
2268 /* read height */
2269 if(!FLAC__bitreader_read_raw_uint32cxx . . $ FLAC__bitreader_read_raw_uint32(ea282896fbfc92c4).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., &obj->heightcxx . . $ $anonymous_type_81a4853959168ec7_32#height., FLAC__STREAM_METADATA_PICTURE_HEIGHT_LENcxx . . $ FLAC__STREAM_METADATA_PICTURE_HEIGHT_LEN.))
2270 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* read_callback_ sets the state for us */
2271
2272 /* read depth */
2273 if(!FLAC__bitreader_read_raw_uint32cxx . . $ FLAC__bitreader_read_raw_uint32(ea282896fbfc92c4).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., &obj->depthcxx . . $ $anonymous_type_81a4853959168ec7_32#depth., FLAC__STREAM_METADATA_PICTURE_DEPTH_LENcxx . . $ FLAC__STREAM_METADATA_PICTURE_DEPTH_LEN.))
2274 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* read_callback_ sets the state for us */
2275
2276 /* read colors */
2277 if(!FLAC__bitreader_read_raw_uint32cxx . . $ FLAC__bitreader_read_raw_uint32(ea282896fbfc92c4).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., &obj->colorscxx . . $ $anonymous_type_81a4853959168ec7_32#colors., FLAC__STREAM_METADATA_PICTURE_COLORS_LENcxx . . $ FLAC__STREAM_METADATA_PICTURE_COLORS_LEN.))
2278 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* read_callback_ sets the state for us */
2279
2280 /* read data */
2281 if(!FLAC__bitreader_read_raw_uint32cxx . . $ FLAC__bitreader_read_raw_uint32(ea282896fbfc92c4).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., &(obj->data_lengthcxx . . $ $anonymous_type_81a4853959168ec7_32#data_length.), FLAC__STREAM_METADATA_PICTURE_DATA_LENGTH_LENcxx . . $ FLAC__STREAM_METADATA_PICTURE_DATA_LENGTH_LEN.))
2282 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* read_callback_ sets the state for us */
2283 if(FLAC__bitreader_limit_remainingcxx . . $ FLAC__bitreader_limit_remaining(1d5c92027e40b2f1).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input.) < obj->data_lengthcxx . . $ $anonymous_type_81a4853959168ec7_32#data_length.){
2284 FLAC__bitreader_limit_invalidatecxx . . $ FLAC__bitreader_limit_invalidate(5639cb4d47c4565e).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input.);
2285 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
2286 }
2287 if(0 == (obj->datacxx . . $ $anonymous_type_81a4853959168ec7_32#data. = safe_malloc_cxx . . $ safe_malloc_(bfcfa4d6b7f7ef64).(obj->data_lengthcxx . . $ $anonymous_type_81a4853959168ec7_32#data_length.))) {
2288 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. = FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERRORcxx . . $ FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR.;
2289 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
2290 }
2291 if(obj->data_lengthcxx . . $ $anonymous_type_81a4853959168ec7_32#data_length. > 0) {
2292 if(!FLAC__bitreader_read_byte_block_aligned_no_crccxx . . $ FLAC__bitreader_read_byte_block_aligned_no_crc(dc5b6d073ad66220).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., obj->datacxx . . $ $anonymous_type_81a4853959168ec7_32#data., obj->data_lengthcxx . . $ $anonymous_type_81a4853959168ec7_32#data_length.))
2293 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* read_callback_ sets the state for us */
2294 }
2295
2296 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
2297 }
2298
2299 FLAC__boolcxx . . $ FLAC__bool# skip_id3v2_tag_cxx . . $ skip_id3v2_tag_(d92048749c4f1284).(FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder)
2300 {
2301 FLAC__uint32cxx . . $ FLAC__uint32# x;
2302 uint32_tcxx . . $ uint32_t# i, skip;
2303
2304 /* skip the version and flags bytes */
2305 if(!FLAC__bitreader_read_raw_uint32cxx . . $ FLAC__bitreader_read_raw_uint32(ea282896fbfc92c4).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., &x, 24))
2306 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* read_callback_ sets the state for us */
2307 /* get the size (in bytes) to skip */
2308 skip = 0;
2309 for(i = 0; i < 4; i++) {
2310 if(!FLAC__bitreader_read_raw_uint32cxx . . $ FLAC__bitreader_read_raw_uint32(ea282896fbfc92c4).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., &x, 8))
2311 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* read_callback_ sets the state for us */
2312 skip <<= 7;
2313 skip |= (x & 0x7f);
2314 }
2315 /* skip the rest of the tag */
2316 if(!FLAC__bitreader_skip_byte_block_aligned_no_crccxx . . $ FLAC__bitreader_skip_byte_block_aligned_no_crc(ff077cd27fc33d03).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., skip))
2317 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* read_callback_ sets the state for us */
2318 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
2319 }
2320
2321 FLAC__boolcxx . . $ FLAC__bool# frame_sync_cxx . . $ frame_sync_(d92048749c4f1284).(FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder)
2322 {
2323 FLAC__uint32cxx . . $ FLAC__uint32# x;
2324 FLAC__boolcxx . . $ FLAC__bool# first = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
2325
2326 /* make sure we're byte aligned */
2327 if(!FLAC__bitreader_is_consumed_byte_alignedcxx . . $ FLAC__bitreader_is_consumed_byte_aligned(828ae4969518c677).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input.)) {
2328 if(!FLAC__bitreader_read_raw_uint32cxx . . $ FLAC__bitreader_read_raw_uint32(ea282896fbfc92c4).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., &x, FLAC__bitreader_bits_left_for_byte_alignmentcxx . . $ FLAC__bitreader_bits_left_for_byte_alignment(14a98ca08b67a72b).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input.)))
2329 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* read_callback_ sets the state for us */
2330 }
2331
2332 while(1) {
2333 if(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->cachedcxx . . $ FLAC__StreamDecoderPrivate#cached.) {
2334 x = (FLAC__uint32cxx . . $ FLAC__uint32#)decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->lookaheadcxx . . $ FLAC__StreamDecoderPrivate#lookahead.;
2335 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->cachedcxx . . $ FLAC__StreamDecoderPrivate#cached. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
2336 }
2337 else {
2338 if(!FLAC__bitreader_read_raw_uint32cxx . . $ FLAC__bitreader_read_raw_uint32(ea282896fbfc92c4).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., &x, 8))
2339 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* read_callback_ sets the state for us */
2340 }
2341 if(x == 0xff) { /* MAGIC NUMBER for the first 8 frame sync bits */
2342 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->header_warmupcxx . . $ FLAC__StreamDecoderPrivate#header_warmup.[0] = (FLAC__bytecxx . . $ FLAC__byte#)x;
2343 if(!FLAC__bitreader_read_raw_uint32cxx . . $ FLAC__bitreader_read_raw_uint32(ea282896fbfc92c4).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., &x, 8))
2344 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* read_callback_ sets the state for us */
2345
2346 /* we have to check if we just read two 0xff's in a row; the second may actually be the beginning of the sync code */
2347 /* else we have to check if the second byte is the end of a sync code */
2348 if(x == 0xff) { /* MAGIC NUMBER for the first 8 frame sync bits */
2349 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->lookaheadcxx . . $ FLAC__StreamDecoderPrivate#lookahead. = (FLAC__bytecxx . . $ FLAC__byte#)x;
2350 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->cachedcxx . . $ FLAC__StreamDecoderPrivate#cached. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
2351 }
2352 else if(x >> 1 == 0x7c) { /* MAGIC NUMBER for the last 6 sync bits and reserved 7th bit */
2353 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->header_warmupcxx . . $ FLAC__StreamDecoderPrivate#header_warmup.[1] = (FLAC__bytecxx . . $ FLAC__byte#)x;
2354 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. = FLAC__STREAM_DECODER_READ_FRAMEcxx . . $ FLAC__STREAM_DECODER_READ_FRAME.;
2355
2356 /* Save location so we can rewind in case the frame turns
2357 * out to be invalid after the header */
2358 FLAC__bitreader_set_framesync_locationcxx . . $ FLAC__bitreader_set_framesync_location(5639cb4d47c4565e).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input.);
2359 if(!FLAC__stream_decoder_get_decode_positioncxx . . $ FLAC__stream_decoder_get_decode_position(eaa4447c58feeb10).(decoder, &decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->last_seen_framesynccxx . . $ FLAC__StreamDecoderPrivate#last_seen_framesync.))
2360 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->last_seen_framesynccxx . . $ FLAC__StreamDecoderPrivate#last_seen_framesync. = 0;
2361 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
2362 }
2363 }
2364 if(first) {
2365 send_error_to_client_cxx . . $ send_error_to_client_(cc791be6cdc6ea1d).(decoder, FLAC__STREAM_DECODER_ERROR_STATUS_LOST_SYNCcxx . . $ FLAC__STREAM_DECODER_ERROR_STATUS_LOST_SYNC.);
2366 first = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
2367 }
2368 }
2369
2370 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
2371 }
2372
2373 FLAC__boolcxx . . $ FLAC__bool# read_frame_cxx . . $ read_frame_(5998d726cdafdde1).(FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder, FLAC__boolcxx . . $ FLAC__bool# *got_a_frame, FLAC__boolcxx . . $ FLAC__bool# do_full_decode)
2374 {
2375 uint32_tcxx . . $ uint32_t# channel;
2376 uint32_tcxx . . $ uint32_t# i;
2377 uint32_tcxx . . $ uint32_t# frame_crc; /* the one we calculate from the input stream */
2378 FLAC__uint32cxx . . $ FLAC__uint32# x;
2379
2380 *got_a_frame = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
2381 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->side_subframe_in_usecxx . . $ FLAC__StreamDecoderPrivate#side_subframe_in_use. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
2382
2383 /* init the CRC */
2384 frame_crc = 0;
2385 frame_crc = FLAC__CRC16_UPDATEcxx . . $ `external/flac/flac_private_crc.h:50:9`!(decoder->private_->header_warmup[0], frame_crc);
2386 frame_crc = FLAC__CRC16_UPDATEcxx . . $ `external/flac/flac_private_crc.h:50:9`!(decoder->private_->header_warmup[1], frame_crc);
2387 FLAC__bitreader_reset_read_crc16cxx . . $ FLAC__bitreader_reset_read_crc16(10d9eb0765904f2b).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., (FLAC__uint16cxx . . $ FLAC__uint16#)frame_crc);
2388
2389 if(!read_frame_header_cxx . . $ read_frame_header_(d92048749c4f1284).(decoder))
2390 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
2391 if(decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. == FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNCcxx . . $ FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC.) /* means we didn't sync on a valid header */
2392 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
2393 if(!allocate_output_cxx . . $ allocate_output_(5ba12e1b1278ecb2).(decoder, decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..blocksizecxx . . $ $anonymous_type_81a4853959168ec7_16#blocksize., decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..channelscxx . . $ $anonymous_type_81a4853959168ec7_16#channels., decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..bits_per_samplecxx . . $ $anonymous_type_81a4853959168ec7_16#bits_per_sample.))
2394 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
2395 for(channel = 0; channel < decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..channelscxx . . $ $anonymous_type_81a4853959168ec7_16#channels.; channel++) {
2396 /*
2397 * first figure the correct bits-per-sample of the subframe
2398 */
2399 uint32_tcxx . . $ uint32_t# bps = decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..bits_per_samplecxx . . $ $anonymous_type_81a4853959168ec7_16#bits_per_sample.;
2400 switch(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..channel_assignmentcxx . . $ $anonymous_type_81a4853959168ec7_16#channel_assignment.) {
2401 case FLAC__CHANNEL_ASSIGNMENT_INDEPENDENTcxx . . $ FLAC__CHANNEL_ASSIGNMENT_INDEPENDENT.:
2402 /* no adjustment needed */
2403 break;
2404 case FLAC__CHANNEL_ASSIGNMENT_LEFT_SIDEcxx . . $ FLAC__CHANNEL_ASSIGNMENT_LEFT_SIDE.:
2405 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(decoder->private_->frame.header.channels == 2);
2406 if(channel == 1)
2407 bps++;
2408 break;
2409 case FLAC__CHANNEL_ASSIGNMENT_RIGHT_SIDEcxx . . $ FLAC__CHANNEL_ASSIGNMENT_RIGHT_SIDE.:
2410 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(decoder->private_->frame.header.channels == 2);
2411 if(channel == 0)
2412 bps++;
2413 break;
2414 case FLAC__CHANNEL_ASSIGNMENT_MID_SIDEcxx . . $ FLAC__CHANNEL_ASSIGNMENT_MID_SIDE.:
2415 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(decoder->private_->frame.header.channels == 2);
2416 if(channel == 1)
2417 bps++;
2418 break;
2419 default:
2420 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0);
2421 }
2422 /*
2423 * now read it
2424 */
2425 if(!read_subframe_cxx . . $ read_subframe_(7b4273826c07efaa).(decoder, channel, bps, do_full_decode)){
2426 /* read_callback_ sets the state for us */
2427 if(decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. == FLAC__STREAM_DECODER_END_OF_STREAMcxx . . $ FLAC__STREAM_DECODER_END_OF_STREAM.)
2428 break;
2429 else
2430 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
2431 }
2432 if(decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. != FLAC__STREAM_DECODER_READ_FRAMEcxx . . $ FLAC__STREAM_DECODER_READ_FRAME.)
2433 break;
2434 }
2435
2436 if(decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. != FLAC__STREAM_DECODER_END_OF_STREAMcxx . . $ FLAC__STREAM_DECODER_END_OF_STREAM.)
2437 if(!read_zero_padding_cxx . . $ read_zero_padding_(d92048749c4f1284).(decoder))
2438 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
2439
2440 /*
2441 * Read the frame CRC-16 from the footer and check
2442 */
2443 if(decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. == FLAC__STREAM_DECODER_READ_FRAMEcxx . . $ FLAC__STREAM_DECODER_READ_FRAME.) {
2444 frame_crc = FLAC__bitreader_get_read_crc16cxx . . $ FLAC__bitreader_get_read_crc16(78bb4feacef14372).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input.);
2445 if(!FLAC__bitreader_read_raw_uint32cxx . . $ FLAC__bitreader_read_raw_uint32(ea282896fbfc92c4).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., &x, FLAC__FRAME_FOOTER_CRC_LENcxx . . $ FLAC__FRAME_FOOTER_CRC_LEN.)) {
2446 /* read_callback_ sets the state for us */
2447 if(decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. != FLAC__STREAM_DECODER_END_OF_STREAMcxx . . $ FLAC__STREAM_DECODER_END_OF_STREAM.)
2448 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
2449 }
2450 #ifndef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
2451 }
2452 if(decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. == FLAC__STREAM_DECODER_READ_FRAMEcxx . . $ FLAC__STREAM_DECODER_READ_FRAME. && frame_crc == x) {
2453 #endif
2454 if(do_full_decode) {
2455 /* Undo any special channel coding */
2456 undo_channel_codingcxx . . $ undo_channel_coding(1ffd9838c68f2516).(decoder);
2457 /* Check whether decoded data actually fits bps */
2458 for(channel = 0; channel < decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..channelscxx . . $ $anonymous_type_81a4853959168ec7_16#channels.; channel++) {
2459 int shift_bits = 32 - decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..bits_per_samplecxx . . $ $anonymous_type_81a4853959168ec7_16#bits_per_sample.;
2460 int lower_limit = INT32_MINcxx . . $ `<external>/3415975807581488833/stdint.h:107:10`! >> shift_bits;
2461 int upper_limit = INT32_MAXcxx . . $ `<external>/3415975807581488833/stdint.h:112:10`! >> shift_bits;
2462 for(i = 0; i < decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..blocksizecxx . . $ $anonymous_type_81a4853959168ec7_16#blocksize.; i++) {
2463 /* Check whether shift_bits MSBs are 'empty' by shifting up and down */
2464 if((decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->outputcxx . . $ FLAC__StreamDecoderPrivate#output.[channel][i] < lower_limit) ||
2465 (decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->outputcxx . . $ FLAC__StreamDecoderPrivate#output.[channel][i] > upper_limit)) {
2466 /* Bad frame, emit error */
2467 send_error_to_client_cxx . . $ send_error_to_client_(cc791be6cdc6ea1d).(decoder, FLAC__STREAM_DECODER_ERROR_STATUS_OUT_OF_BOUNDScxx . . $ FLAC__STREAM_DECODER_ERROR_STATUS_OUT_OF_BOUNDS.);
2468 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. = FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNCcxx . . $ FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC.;
2469 break;
2470 }
2471 }
2472 }
2473 }
2474 }
2475 #ifndef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
2476 else if (decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. == FLAC__STREAM_DECODER_READ_FRAMEcxx . . $ FLAC__STREAM_DECODER_READ_FRAME.) {
2477 /* Bad frame, emit error */
2478 send_error_to_client_cxx . . $ send_error_to_client_(cc791be6cdc6ea1d).(decoder, FLAC__STREAM_DECODER_ERROR_STATUS_FRAME_CRC_MISMATCHcxx . . $ FLAC__STREAM_DECODER_ERROR_STATUS_FRAME_CRC_MISMATCH.);
2479 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. = FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNCcxx . . $ FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC.;
2480 }
2481 #endif
2482
2483 /* Check whether frames are missing, if so, add silence to compensate */
2484 if(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->last_frame_is_setcxx . . $ FLAC__StreamDecoderPrivate#last_frame_is_set. && decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. == FLAC__STREAM_DECODER_READ_FRAMEcxx . . $ FLAC__STREAM_DECODER_READ_FRAME. && !decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->is_seekingcxx . . $ FLAC__StreamDecoderPrivate#is_seeking. && do_full_decode) {
2485 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(decoder->private_->frame.header.number_type == FLAC__FRAME_NUMBER_TYPE_SAMPLE_NUMBER);
2486 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(decoder->private_->last_frame.header.number_type == FLAC__FRAME_NUMBER_TYPE_SAMPLE_NUMBER);
2487 if(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->last_framecxx . . $ FLAC__StreamDecoderPrivate#last_frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..numbercxx . . $ $anonymous_type_81a4853959168ec7_16#number..sample_numbercxx . . $ $anonymous_type_81a4853959168ec7_16#$anonymous_type_17#sample_number. + decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->last_framecxx . . $ FLAC__StreamDecoderPrivate#last_frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..blocksizecxx . . $ $anonymous_type_81a4853959168ec7_16#blocksize. < decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..numbercxx . . $ $anonymous_type_81a4853959168ec7_16#number..sample_numbercxx . . $ $anonymous_type_81a4853959168ec7_16#$anonymous_type_17#sample_number.) {
2488 uint32_tcxx . . $ uint32_t# padding_samples_needed = decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..numbercxx . . $ $anonymous_type_81a4853959168ec7_16#number..sample_numbercxx . . $ $anonymous_type_81a4853959168ec7_16#$anonymous_type_17#sample_number. - (decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->last_framecxx . . $ FLAC__StreamDecoderPrivate#last_frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..numbercxx . . $ $anonymous_type_81a4853959168ec7_16#number..sample_numbercxx . . $ $anonymous_type_81a4853959168ec7_16#$anonymous_type_17#sample_number. + decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->last_framecxx . . $ FLAC__StreamDecoderPrivate#last_frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..blocksizecxx . . $ $anonymous_type_81a4853959168ec7_16#blocksize.);
2489 /* Send an error that we lost sync, but only in case no error
2490 * has been sent yet. This is the case if exactly one or more
2491 * frames are missing, and the frames before and after it
2492 * are complete */
2493 if(!decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->error_has_been_sentcxx . . $ FLAC__StreamDecoderPrivate#error_has_been_sent.)
2494 send_error_to_client_cxx . . $ send_error_to_client_(cc791be6cdc6ea1d).(decoder, FLAC__STREAM_DECODER_ERROR_STATUS_MISSING_FRAMEcxx . . $ FLAC__STREAM_DECODER_ERROR_STATUS_MISSING_FRAME.);
2495 /* Do some extra validation to assure last frame an current frame
2496 * header are both valid before adding silence inbetween
2497 * Technically both frames could be valid with differing sample_rates,
2498 * channels and bits_per_sample, but it is quite rare */
2499 if(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->last_framecxx . . $ FLAC__StreamDecoderPrivate#last_frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..sample_ratecxx . . $ $anonymous_type_81a4853959168ec7_16#sample_rate. == decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..sample_ratecxx . . $ $anonymous_type_81a4853959168ec7_16#sample_rate. &&
2500 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->last_framecxx . . $ FLAC__StreamDecoderPrivate#last_frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..channelscxx . . $ $anonymous_type_81a4853959168ec7_16#channels. == decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..channelscxx . . $ $anonymous_type_81a4853959168ec7_16#channels. &&
2501 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->last_framecxx . . $ FLAC__StreamDecoderPrivate#last_frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..bits_per_samplecxx . . $ $anonymous_type_81a4853959168ec7_16#bits_per_sample. == decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..bits_per_samplecxx . . $ $anonymous_type_81a4853959168ec7_16#bits_per_sample. &&
2502 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->last_framecxx . . $ FLAC__StreamDecoderPrivate#last_frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..blocksizecxx . . $ $anonymous_type_81a4853959168ec7_16#blocksize. >= 16) {
2503 FLAC__Framecxx . . $ FLAC__Frame# empty_frame;
2504 FLAC__int32cxx . . $ FLAC__int32# * empty_buffer[FLAC__MAX_CHANNELScxx . . $ `external/flac/flac_FLAC_format.h:106:9`!] = {NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!};
2505 empty_frame.headercxx . . $ $anonymous_type_81a4853959168ec7_19#header. = decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->last_framecxx . . $ FLAC__StreamDecoderPrivate#last_frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header.;
2506 empty_frame.footercxx . . $ $anonymous_type_81a4853959168ec7_19#footer..crccxx . . $ $anonymous_type_81a4853959168ec7_18#crc. = 0;
2507 for(i = 0; i < empty_frame.headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..channelscxx . . $ $anonymous_type_81a4853959168ec7_16#channels.; i++) {
2508 empty_buffer[i] = safe_calloc_cxx . . $ safe_calloc_(63a7bf2941bfcd7a).(empty_frame.headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..blocksizecxx . . $ $anonymous_type_81a4853959168ec7_16#blocksize., sizeof(FLAC__int32cxx . . $ FLAC__int32#));
2509 if(empty_buffer[i] == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) {
2510 for(i = 0; i < empty_frame.headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..channelscxx . . $ $anonymous_type_81a4853959168ec7_16#channels.; i++)
2511 if(empty_buffer[i] != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
2512 freecxx . . $ free(5d22bdacc48458e8).(empty_buffer[i]);
2513 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. = FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERRORcxx . . $ FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR.;
2514 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
2515 }
2516 }
2517 /* No repairs larger than 5 seconds or 50 frames are made, to not
2518 * unexpectedly create enormous files when one of the headers was
2519 * corrupt after all */
2520 if(padding_samples_needed > (5*empty_frame.headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..sample_ratecxx . . $ $anonymous_type_81a4853959168ec7_16#sample_rate.))
2521 padding_samples_needed = 5*empty_frame.headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..sample_ratecxx . . $ $anonymous_type_81a4853959168ec7_16#sample_rate.;
2522 if(padding_samples_needed > (50*empty_frame.headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..blocksizecxx . . $ $anonymous_type_81a4853959168ec7_16#blocksize.))
2523 padding_samples_needed = 50*empty_frame.headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..blocksizecxx . . $ $anonymous_type_81a4853959168ec7_16#blocksize.;
2524 while(padding_samples_needed){
2525 empty_frame.headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..numbercxx . . $ $anonymous_type_81a4853959168ec7_16#number..sample_numbercxx . . $ $anonymous_type_81a4853959168ec7_16#$anonymous_type_17#sample_number. += empty_frame.headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..blocksizecxx . . $ $anonymous_type_81a4853959168ec7_16#blocksize.;
2526 if(padding_samples_needed < empty_frame.headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..blocksizecxx . . $ $anonymous_type_81a4853959168ec7_16#blocksize.)
2527 empty_frame.headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..blocksizecxx . . $ $anonymous_type_81a4853959168ec7_16#blocksize. = padding_samples_needed;
2528 padding_samples_needed -= empty_frame.headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..blocksizecxx . . $ $anonymous_type_81a4853959168ec7_16#blocksize.;
2529 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->blocksizecxx . . $ FLAC__StreamDecoderProtected#blocksize. = empty_frame.headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..blocksizecxx . . $ $anonymous_type_81a4853959168ec7_16#blocksize.;
2530
2531 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(empty_frame.header.number_type == FLAC__FRAME_NUMBER_TYPE_SAMPLE_NUMBER);
2532 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->samples_decodedcxx . . $ FLAC__StreamDecoderPrivate#samples_decoded. = empty_frame.headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..numbercxx . . $ $anonymous_type_81a4853959168ec7_16#number..sample_numbercxx . . $ $anonymous_type_81a4853959168ec7_16#$anonymous_type_17#sample_number. + empty_frame.headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..blocksizecxx . . $ $anonymous_type_81a4853959168ec7_16#blocksize.;
2533
2534 for(channel = 0; channel < empty_frame.headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..channelscxx . . $ $anonymous_type_81a4853959168ec7_16#channels.; channel++) {
2535 empty_frame.subframescxx . . $ $anonymous_type_81a4853959168ec7_19#subframes.[channel].typecxx . . $ $anonymous_type_81a4853959168ec7_12#type. = FLAC__SUBFRAME_TYPE_CONSTANTcxx . . $ FLAC__SUBFRAME_TYPE_CONSTANT.;
2536 empty_frame.subframescxx . . $ $anonymous_type_81a4853959168ec7_19#subframes.[channel].datacxx . . $ $anonymous_type_81a4853959168ec7_12#data..constantcxx . . $ $anonymous_type_81a4853959168ec7_12#$anonymous_type_13#constant..valuecxx . . $ $anonymous_type_81a4853959168ec7_6#value. = 0;
2537 empty_frame.subframescxx . . $ $anonymous_type_81a4853959168ec7_19#subframes.[channel].wasted_bitscxx . . $ $anonymous_type_81a4853959168ec7_12#wasted_bits. = 0;
2538 }
2539
2540 if(write_audio_frame_to_client_cxx . . $ write_audio_frame_to_client_(4162e1e0b33b291e).(decoder, &empty_frame, (const FLAC__int32cxx . . $ FLAC__int32# * const *)empty_buffer) != FLAC__STREAM_DECODER_WRITE_STATUS_CONTINUEcxx . . $ FLAC__STREAM_DECODER_WRITE_STATUS_CONTINUE.) {
2541 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. = FLAC__STREAM_DECODER_ABORTEDcxx . . $ FLAC__STREAM_DECODER_ABORTED.;
2542 for(i = 0; i < empty_frame.headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..channelscxx . . $ $anonymous_type_81a4853959168ec7_16#channels.; i++)
2543 if(empty_buffer[i] != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
2544 freecxx . . $ free(5d22bdacc48458e8).(empty_buffer[i]);
2545 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
2546 }
2547 }
2548 for(i = 0; i < empty_frame.headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..channelscxx . . $ $anonymous_type_81a4853959168ec7_16#channels.; i++)
2549 if(empty_buffer[i] != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!)
2550 freecxx . . $ free(5d22bdacc48458e8).(empty_buffer[i]);
2551
2552 }
2553 }
2554 }
2555
2556 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->error_has_been_sentcxx . . $ FLAC__StreamDecoderPrivate#error_has_been_sent. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
2557
2558 if(decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. == FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNCcxx . . $ FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC. || decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. == FLAC__STREAM_DECODER_END_OF_STREAMcxx . . $ FLAC__STREAM_DECODER_END_OF_STREAM.) {
2559 #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
2560 decoder->private_->fuzzing_rewind_count++; /* To stop excessive rewinding, as it causes timeouts */
2561 #endif
2562 /* Got corruption, rewind if possible. Return value of seek
2563 * isn't checked, if the seek fails the decoder will continue anyway */
2564 if(!FLAC__bitreader_rewind_to_after_last_seen_framesynccxx . . $ FLAC__bitreader_rewind_to_after_last_seen_framesync(69d2a7862c68e701).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input.)){
2565 #ifndef NDEBUG
2566 flac_fprintfcxx . . $ `external/flac/flac_share_compat.h:197:9`!(stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Rewinding, seeking necessary\n");
2567 #endif
2568 if(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->seek_callbackcxx . . $ FLAC__StreamDecoderPrivate#seek_callback. && decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->last_seen_framesynccxx . . $ FLAC__StreamDecoderPrivate#last_seen_framesync.){
2569 /* Last framesync isn't in bitreader anymore, rewind with seek if possible */
2570 #ifndef NDEBUG
2571 FLAC__uint64cxx . . $ FLAC__uint64# current_decode_position;
2572 if(FLAC__stream_decoder_get_decode_positioncxx . . $ FLAC__stream_decoder_get_decode_position(eaa4447c58feeb10).(decoder, &current_decode_position))
2573 flac_fprintfcxx . . $ `external/flac/flac_share_compat.h:197:9`!(stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Bitreader was %" PRIu64cxx . . $ `<external>/15933738808807975373/inttypes.h:105:10`! " bytes short\n", current_decode_position-decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->last_seen_framesynccxx . . $ FLAC__StreamDecoderPrivate#last_seen_framesync.);
2574 #endif
2575 if(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->seek_callbackcxx . . $ FLAC__StreamDecoderPrivate#seek_callback.(decoder, decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->last_seen_framesynccxx . . $ FLAC__StreamDecoderPrivate#last_seen_framesync., decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->client_datacxx . . $ FLAC__StreamDecoderPrivate#client_data.) == FLAC__STREAM_DECODER_SEEK_STATUS_ERRORcxx . . $ FLAC__STREAM_DECODER_SEEK_STATUS_ERROR.) {
2576 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. = FLAC__STREAM_DECODER_SEEK_ERRORcxx . . $ FLAC__STREAM_DECODER_SEEK_ERROR.;
2577 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
2578 }
2579 if(!FLAC__bitreader_clearcxx . . $ FLAC__bitreader_clear(69d2a7862c68e701).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input.)) {
2580 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. = FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERRORcxx . . $ FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR.;
2581 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
2582 }
2583 }
2584 }
2585 #ifndef NDEBUG
2586 else{
2587 flac_fprintfcxx . . $ `external/flac/flac_share_compat.h:197:9`!(stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!, "Rewinding, seeking not necessary\n");
2588 }
2589 #endif
2590 }
2591 else {
2592 *got_a_frame = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
2593 #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
2594 decoder->private_->fuzzing_rewind_count = 0;
2595 #endif
2596
2597 /* we wait to update fixed_block_size until here, when we're sure we've got a proper frame and hence a correct blocksize */
2598 if(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->next_fixed_block_sizecxx . . $ FLAC__StreamDecoderPrivate#next_fixed_block_size.)
2599 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->fixed_block_sizecxx . . $ FLAC__StreamDecoderPrivate#fixed_block_size. = decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->next_fixed_block_sizecxx . . $ FLAC__StreamDecoderPrivate#next_fixed_block_size.;
2600
2601 /* put the latest values into the public section of the decoder instance */
2602 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->channelscxx . . $ FLAC__StreamDecoderProtected#channels. = decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..channelscxx . . $ $anonymous_type_81a4853959168ec7_16#channels.;
2603 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->channel_assignmentcxx . . $ FLAC__StreamDecoderProtected#channel_assignment. = decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..channel_assignmentcxx . . $ $anonymous_type_81a4853959168ec7_16#channel_assignment.;
2604 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->bits_per_samplecxx . . $ FLAC__StreamDecoderProtected#bits_per_sample. = decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..bits_per_samplecxx . . $ $anonymous_type_81a4853959168ec7_16#bits_per_sample.;
2605 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->sample_ratecxx . . $ FLAC__StreamDecoderProtected#sample_rate. = decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..sample_ratecxx . . $ $anonymous_type_81a4853959168ec7_16#sample_rate.;
2606 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->blocksizecxx . . $ FLAC__StreamDecoderProtected#blocksize. = decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..blocksizecxx . . $ $anonymous_type_81a4853959168ec7_16#blocksize.;
2607
2608 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(decoder->private_->frame.header.number_type == FLAC__FRAME_NUMBER_TYPE_SAMPLE_NUMBER);
2609 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->samples_decodedcxx . . $ FLAC__StreamDecoderPrivate#samples_decoded. = decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..numbercxx . . $ $anonymous_type_81a4853959168ec7_16#number..sample_numbercxx . . $ $anonymous_type_81a4853959168ec7_16#$anonymous_type_17#sample_number. + decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..blocksizecxx . . $ $anonymous_type_81a4853959168ec7_16#blocksize.;
2610
2611 /* write it */
2612 if(do_full_decode) {
2613 if(write_audio_frame_to_client_cxx . . $ write_audio_frame_to_client_(4162e1e0b33b291e).(decoder, &decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame., (const FLAC__int32cxx . . $ FLAC__int32# * const *)decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->outputcxx . . $ FLAC__StreamDecoderPrivate#output.) != FLAC__STREAM_DECODER_WRITE_STATUS_CONTINUEcxx . . $ FLAC__STREAM_DECODER_WRITE_STATUS_CONTINUE.) {
2614 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. = FLAC__STREAM_DECODER_ABORTEDcxx . . $ FLAC__STREAM_DECODER_ABORTED.;
2615 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
2616 }
2617 }
2618 }
2619
2620 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. = FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNCcxx . . $ FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC.;
2621 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
2622 }
2623
2624 FLAC__boolcxx . . $ FLAC__bool# read_frame_header_cxx . . $ read_frame_header_(d92048749c4f1284).(FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder)
2625 {
2626 FLAC__uint32cxx . . $ FLAC__uint32# x;
2627 FLAC__uint64cxx . . $ FLAC__uint64# xx;
2628 uint32_tcxx . . $ uint32_t# i, blocksize_hint = 0, sample_rate_hint = 0;
2629 FLAC__bytecxx . . $ FLAC__byte# crc8, raw_header[16]; /* MAGIC NUMBER based on the maximum frame header size, including CRC */
2630 uint32_tcxx . . $ uint32_t# raw_header_len;
2631 FLAC__boolcxx . . $ FLAC__bool# is_unparseable = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
2632
2633 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(FLAC__bitreader_is_consumed_byte_aligned(decoder->private_->input));
2634
2635 /* init the raw header with the saved bits from synchronization */
2636 raw_header[0] = decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->header_warmupcxx . . $ FLAC__StreamDecoderPrivate#header_warmup.[0];
2637 raw_header[1] = decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->header_warmupcxx . . $ FLAC__StreamDecoderPrivate#header_warmup.[1];
2638 raw_header_len = 2;
2639
2640 /* check to make sure that reserved bit is 0 */
2641 if(raw_header[1] & 0x02) /* MAGIC NUMBER */
2642 is_unparseable = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
2643
2644 /*
2645 * Note that along the way as we read the header, we look for a sync
2646 * code inside. If we find one it would indicate that our original
2647 * sync was bad since there cannot be a sync code in a valid header.
2648 *
2649 * Three kinds of things can go wrong when reading the frame header:
2650 * 1) We may have sync'ed incorrectly and not landed on a frame header.
2651 * If we don't find a sync code, it can end up looking like we read
2652 * a valid but unparseable header, until getting to the frame header
2653 * CRC. Even then we could get a false positive on the CRC.
2654 * 2) We may have sync'ed correctly but on an unparseable frame (from a
2655 * future encoder).
2656 * 3) We may be on a damaged frame which appears valid but unparseable.
2657 *
2658 * For all these reasons, we try and read a complete frame header as
2659 * long as it seems valid, even if unparseable, up until the frame
2660 * header CRC.
2661 */
2662
2663 /*
2664 * read in the raw header as bytes so we can CRC it, and parse it on the way
2665 */
2666 for(i = 0; i < 2; i++) {
2667 if(!FLAC__bitreader_read_raw_uint32cxx . . $ FLAC__bitreader_read_raw_uint32(ea282896fbfc92c4).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., &x, 8))
2668 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* read_callback_ sets the state for us */
2669 if(x == 0xff) { /* MAGIC NUMBER for the first 8 frame sync bits */
2670 /* if we get here it means our original sync was erroneous since the sync code cannot appear in the header */
2671 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->lookaheadcxx . . $ FLAC__StreamDecoderPrivate#lookahead. = (FLAC__bytecxx . . $ FLAC__byte#)x;
2672 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->cachedcxx . . $ FLAC__StreamDecoderPrivate#cached. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
2673 send_error_to_client_cxx . . $ send_error_to_client_(cc791be6cdc6ea1d).(decoder, FLAC__STREAM_DECODER_ERROR_STATUS_BAD_HEADERcxx . . $ FLAC__STREAM_DECODER_ERROR_STATUS_BAD_HEADER.);
2674 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. = FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNCcxx . . $ FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC.;
2675 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
2676 }
2677 raw_header[raw_header_len++] = (FLAC__bytecxx . . $ FLAC__byte#)x;
2678 }
2679
2680 switch(x = raw_header[2] >> 4) {
2681 case 0:
2682 is_unparseable = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
2683 break;
2684 case 1:
2685 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..blocksizecxx . . $ $anonymous_type_81a4853959168ec7_16#blocksize. = 192;
2686 break;
2687 case 2:
2688 case 3:
2689 case 4:
2690 case 5:
2691 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..blocksizecxx . . $ $anonymous_type_81a4853959168ec7_16#blocksize. = 576 << (x-2);
2692 break;
2693 case 6:
2694 case 7:
2695 blocksize_hint = x;
2696 break;
2697 case 8:
2698 case 9:
2699 case 10:
2700 case 11:
2701 case 12:
2702 case 13:
2703 case 14:
2704 case 15:
2705 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..blocksizecxx . . $ $anonymous_type_81a4853959168ec7_16#blocksize. = 256 << (x-8);
2706 break;
2707 default:
2708 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0);
2709 break;
2710 }
2711
2712 switch(x = raw_header[2] & 0x0f) {
2713 case 0:
2714 if(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->has_stream_infocxx . . $ FLAC__StreamDecoderPrivate#has_stream_info.)
2715 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..sample_ratecxx . . $ $anonymous_type_81a4853959168ec7_16#sample_rate. = decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->stream_infocxx . . $ FLAC__StreamDecoderPrivate#stream_info..datacxx . . $ FLAC__StreamMetadata#data..stream_infocxx . . $ FLAC__StreamMetadata#$anonymous_type_34#stream_info..sample_ratecxx . . $ $anonymous_type_81a4853959168ec7_21#sample_rate.;
2716 else
2717 is_unparseable = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
2718 break;
2719 case 1:
2720 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..sample_ratecxx . . $ $anonymous_type_81a4853959168ec7_16#sample_rate. = 88200;
2721 break;
2722 case 2:
2723 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..sample_ratecxx . . $ $anonymous_type_81a4853959168ec7_16#sample_rate. = 176400;
2724 break;
2725 case 3:
2726 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..sample_ratecxx . . $ $anonymous_type_81a4853959168ec7_16#sample_rate. = 192000;
2727 break;
2728 case 4:
2729 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..sample_ratecxx . . $ $anonymous_type_81a4853959168ec7_16#sample_rate. = 8000;
2730 break;
2731 case 5:
2732 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..sample_ratecxx . . $ $anonymous_type_81a4853959168ec7_16#sample_rate. = 16000;
2733 break;
2734 case 6:
2735 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..sample_ratecxx . . $ $anonymous_type_81a4853959168ec7_16#sample_rate. = 22050;
2736 break;
2737 case 7:
2738 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..sample_ratecxx . . $ $anonymous_type_81a4853959168ec7_16#sample_rate. = 24000;
2739 break;
2740 case 8:
2741 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..sample_ratecxx . . $ $anonymous_type_81a4853959168ec7_16#sample_rate. = 32000;
2742 break;
2743 case 9:
2744 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..sample_ratecxx . . $ $anonymous_type_81a4853959168ec7_16#sample_rate. = 44100;
2745 break;
2746 case 10:
2747 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..sample_ratecxx . . $ $anonymous_type_81a4853959168ec7_16#sample_rate. = 48000;
2748 break;
2749 case 11:
2750 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..sample_ratecxx . . $ $anonymous_type_81a4853959168ec7_16#sample_rate. = 96000;
2751 break;
2752 case 12:
2753 case 13:
2754 case 14:
2755 sample_rate_hint = x;
2756 break;
2757 case 15:
2758 send_error_to_client_cxx . . $ send_error_to_client_(cc791be6cdc6ea1d).(decoder, FLAC__STREAM_DECODER_ERROR_STATUS_BAD_HEADERcxx . . $ FLAC__STREAM_DECODER_ERROR_STATUS_BAD_HEADER.);
2759 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. = FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNCcxx . . $ FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC.;
2760 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
2761 default:
2762 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0);
2763 }
2764
2765 x = (uint32_tcxx . . $ uint32_t#)(raw_header[3] >> 4);
2766 if(x & 8) {
2767 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..channelscxx . . $ $anonymous_type_81a4853959168ec7_16#channels. = 2;
2768 switch(x & 7) {
2769 case 0:
2770 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..channel_assignmentcxx . . $ $anonymous_type_81a4853959168ec7_16#channel_assignment. = FLAC__CHANNEL_ASSIGNMENT_LEFT_SIDEcxx . . $ FLAC__CHANNEL_ASSIGNMENT_LEFT_SIDE.;
2771 break;
2772 case 1:
2773 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..channel_assignmentcxx . . $ $anonymous_type_81a4853959168ec7_16#channel_assignment. = FLAC__CHANNEL_ASSIGNMENT_RIGHT_SIDEcxx . . $ FLAC__CHANNEL_ASSIGNMENT_RIGHT_SIDE.;
2774 break;
2775 case 2:
2776 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..channel_assignmentcxx . . $ $anonymous_type_81a4853959168ec7_16#channel_assignment. = FLAC__CHANNEL_ASSIGNMENT_MID_SIDEcxx . . $ FLAC__CHANNEL_ASSIGNMENT_MID_SIDE.;
2777 break;
2778 default:
2779 is_unparseable = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
2780 break;
2781 }
2782 }
2783 else {
2784 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..channelscxx . . $ $anonymous_type_81a4853959168ec7_16#channels. = (uint32_tcxx . . $ uint32_t#)x + 1;
2785 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..channel_assignmentcxx . . $ $anonymous_type_81a4853959168ec7_16#channel_assignment. = FLAC__CHANNEL_ASSIGNMENT_INDEPENDENTcxx . . $ FLAC__CHANNEL_ASSIGNMENT_INDEPENDENT.;
2786 }
2787
2788 switch(x = (uint32_tcxx . . $ uint32_t#)(raw_header[3] & 0x0e) >> 1) {
2789 case 0:
2790 if(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->has_stream_infocxx . . $ FLAC__StreamDecoderPrivate#has_stream_info.)
2791 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..bits_per_samplecxx . . $ $anonymous_type_81a4853959168ec7_16#bits_per_sample. = decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->stream_infocxx . . $ FLAC__StreamDecoderPrivate#stream_info..datacxx . . $ FLAC__StreamMetadata#data..stream_infocxx . . $ FLAC__StreamMetadata#$anonymous_type_34#stream_info..bits_per_samplecxx . . $ $anonymous_type_81a4853959168ec7_21#bits_per_sample.;
2792 else
2793 is_unparseable = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
2794 break;
2795 case 1:
2796 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..bits_per_samplecxx . . $ $anonymous_type_81a4853959168ec7_16#bits_per_sample. = 8;
2797 break;
2798 case 2:
2799 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..bits_per_samplecxx . . $ $anonymous_type_81a4853959168ec7_16#bits_per_sample. = 12;
2800 break;
2801 case 3:
2802 is_unparseable = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
2803 break;
2804 case 4:
2805 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..bits_per_samplecxx . . $ $anonymous_type_81a4853959168ec7_16#bits_per_sample. = 16;
2806 break;
2807 case 5:
2808 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..bits_per_samplecxx . . $ $anonymous_type_81a4853959168ec7_16#bits_per_sample. = 20;
2809 break;
2810 case 6:
2811 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..bits_per_samplecxx . . $ $anonymous_type_81a4853959168ec7_16#bits_per_sample. = 24;
2812 break;
2813 case 7:
2814 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..bits_per_samplecxx . . $ $anonymous_type_81a4853959168ec7_16#bits_per_sample. = 32;
2815 break;
2816 default:
2817 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0);
2818 break;
2819 }
2820
2821 #ifndef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
2822 /* check to make sure that reserved bit is 0 */
2823 if(raw_header[3] & 0x01) /* MAGIC NUMBER */
2824 is_unparseable = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
2825 #endif
2826
2827 /* read the frame's starting sample number (or frame number as the case may be) */
2828 if(
2829 raw_header[1] & 0x01 ||
2830 /*@@@ this clause is a concession to the old way of doing variable blocksize; the only known implementation is flake and can probably be removed without inconveniencing anyone */
2831 (decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->has_stream_infocxx . . $ FLAC__StreamDecoderPrivate#has_stream_info. && decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->stream_infocxx . . $ FLAC__StreamDecoderPrivate#stream_info..datacxx . . $ FLAC__StreamMetadata#data..stream_infocxx . . $ FLAC__StreamMetadata#$anonymous_type_34#stream_info..min_blocksizecxx . . $ $anonymous_type_81a4853959168ec7_21#min_blocksize. != decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->stream_infocxx . . $ FLAC__StreamDecoderPrivate#stream_info..datacxx . . $ FLAC__StreamMetadata#data..stream_infocxx . . $ FLAC__StreamMetadata#$anonymous_type_34#stream_info..max_blocksizecxx . . $ $anonymous_type_81a4853959168ec7_21#max_blocksize.)
2832 ) { /* variable blocksize */
2833 if(!FLAC__bitreader_read_utf8_uint64cxx . . $ FLAC__bitreader_read_utf8_uint64(66c3fa1562cb12ab).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., &xx, raw_header, &raw_header_len))
2834 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* read_callback_ sets the state for us */
2835 if(xx == FLAC__U64Lcxx . . $ `external/flac/flac_share_compat.h:102:9`!(0xffffffffffffffff)) { /* i.e. non-UTF8 code... */
2836 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->lookaheadcxx . . $ FLAC__StreamDecoderPrivate#lookahead. = raw_header[raw_header_len-1]; /* back up as much as we can */
2837 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->cachedcxx . . $ FLAC__StreamDecoderPrivate#cached. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
2838 send_error_to_client_cxx . . $ send_error_to_client_(cc791be6cdc6ea1d).(decoder, FLAC__STREAM_DECODER_ERROR_STATUS_BAD_HEADERcxx . . $ FLAC__STREAM_DECODER_ERROR_STATUS_BAD_HEADER.);
2839 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. = FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNCcxx . . $ FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC.;
2840 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
2841 }
2842 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..number_typecxx . . $ $anonymous_type_81a4853959168ec7_16#number_type. = FLAC__FRAME_NUMBER_TYPE_SAMPLE_NUMBERcxx . . $ FLAC__FRAME_NUMBER_TYPE_SAMPLE_NUMBER.;
2843 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..numbercxx . . $ $anonymous_type_81a4853959168ec7_16#number..sample_numbercxx . . $ $anonymous_type_81a4853959168ec7_16#$anonymous_type_17#sample_number. = xx;
2844 }
2845 else { /* fixed blocksize */
2846 if(!FLAC__bitreader_read_utf8_uint32cxx . . $ FLAC__bitreader_read_utf8_uint32(6b696256e5b51644).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., &x, raw_header, &raw_header_len))
2847 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* read_callback_ sets the state for us */
2848 if(x == 0xffffffff) { /* i.e. non-UTF8 code... */
2849 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->lookaheadcxx . . $ FLAC__StreamDecoderPrivate#lookahead. = raw_header[raw_header_len-1]; /* back up as much as we can */
2850 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->cachedcxx . . $ FLAC__StreamDecoderPrivate#cached. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
2851 send_error_to_client_cxx . . $ send_error_to_client_(cc791be6cdc6ea1d).(decoder, FLAC__STREAM_DECODER_ERROR_STATUS_BAD_HEADERcxx . . $ FLAC__STREAM_DECODER_ERROR_STATUS_BAD_HEADER.);
2852 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. = FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNCcxx . . $ FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC.;
2853 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
2854 }
2855 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..number_typecxx . . $ $anonymous_type_81a4853959168ec7_16#number_type. = FLAC__FRAME_NUMBER_TYPE_FRAME_NUMBERcxx . . $ FLAC__FRAME_NUMBER_TYPE_FRAME_NUMBER.;
2856 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..numbercxx . . $ $anonymous_type_81a4853959168ec7_16#number..frame_numbercxx . . $ $anonymous_type_81a4853959168ec7_16#$anonymous_type_17#frame_number. = x;
2857 }
2858
2859 if(blocksize_hint) {
2860 if(!FLAC__bitreader_read_raw_uint32cxx . . $ FLAC__bitreader_read_raw_uint32(ea282896fbfc92c4).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., &x, 8))
2861 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* read_callback_ sets the state for us */
2862 raw_header[raw_header_len++] = (FLAC__bytecxx . . $ FLAC__byte#)x;
2863 if(blocksize_hint == 7) {
2864 FLAC__uint32cxx . . $ FLAC__uint32# _x;
2865 if(!FLAC__bitreader_read_raw_uint32cxx . . $ FLAC__bitreader_read_raw_uint32(ea282896fbfc92c4).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., &_x, 8))
2866 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* read_callback_ sets the state for us */
2867 raw_header[raw_header_len++] = (FLAC__bytecxx . . $ FLAC__byte#)_x;
2868 x = (x << 8) | _x;
2869 }
2870 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..blocksizecxx . . $ $anonymous_type_81a4853959168ec7_16#blocksize. = x+1;
2871 if(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..blocksizecxx . . $ $anonymous_type_81a4853959168ec7_16#blocksize. > 65535) { /* invalid blocksize (65536) specified */
2872 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->lookaheadcxx . . $ FLAC__StreamDecoderPrivate#lookahead. = raw_header[raw_header_len-1]; /* back up as much as we can */
2873 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->cachedcxx . . $ FLAC__StreamDecoderPrivate#cached. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
2874 send_error_to_client_cxx . . $ send_error_to_client_(cc791be6cdc6ea1d).(decoder, FLAC__STREAM_DECODER_ERROR_STATUS_BAD_HEADERcxx . . $ FLAC__STREAM_DECODER_ERROR_STATUS_BAD_HEADER.);
2875 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. = FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNCcxx . . $ FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC.;
2876 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
2877 }
2878
2879 }
2880
2881 if(sample_rate_hint) {
2882 if(!FLAC__bitreader_read_raw_uint32cxx . . $ FLAC__bitreader_read_raw_uint32(ea282896fbfc92c4).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., &x, 8))
2883 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* read_callback_ sets the state for us */
2884 raw_header[raw_header_len++] = (FLAC__bytecxx . . $ FLAC__byte#)x;
2885 if(sample_rate_hint != 12) {
2886 FLAC__uint32cxx . . $ FLAC__uint32# _x;
2887 if(!FLAC__bitreader_read_raw_uint32cxx . . $ FLAC__bitreader_read_raw_uint32(ea282896fbfc92c4).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., &_x, 8))
2888 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* read_callback_ sets the state for us */
2889 raw_header[raw_header_len++] = (FLAC__bytecxx . . $ FLAC__byte#)_x;
2890 x = (x << 8) | _x;
2891 }
2892 if(sample_rate_hint == 12)
2893 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..sample_ratecxx . . $ $anonymous_type_81a4853959168ec7_16#sample_rate. = x*1000;
2894 else if(sample_rate_hint == 13)
2895 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..sample_ratecxx . . $ $anonymous_type_81a4853959168ec7_16#sample_rate. = x;
2896 else
2897 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..sample_ratecxx . . $ $anonymous_type_81a4853959168ec7_16#sample_rate. = x*10;
2898 }
2899
2900 /* read the CRC-8 byte */
2901 if(!FLAC__bitreader_read_raw_uint32cxx . . $ FLAC__bitreader_read_raw_uint32(ea282896fbfc92c4).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., &x, 8))
2902 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* read_callback_ sets the state for us */
2903 crc8 = (FLAC__bytecxx . . $ FLAC__byte#)x;
2904
2905 #ifndef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
2906 if(FLAC__crc8cxx . . $ FLAC__crc8(c16a37015b73edb5).(raw_header, raw_header_len) != crc8) {
2907 #else
2908 if(decoder->private_->fuzzing_rewind_count > 32 && (FLAC__crc8(raw_header, raw_header_len) << 4) != (crc8 << 4)) {
2909 #endif
2910
2911 send_error_to_client_cxx . . $ send_error_to_client_(cc791be6cdc6ea1d).(decoder, FLAC__STREAM_DECODER_ERROR_STATUS_BAD_HEADERcxx . . $ FLAC__STREAM_DECODER_ERROR_STATUS_BAD_HEADER.);
2912 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. = FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNCcxx . . $ FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC.;
2913 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
2914 }
2915
2916 /* calculate the sample number from the frame number if needed */
2917 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->next_fixed_block_sizecxx . . $ FLAC__StreamDecoderPrivate#next_fixed_block_size. = 0;
2918 if(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..number_typecxx . . $ $anonymous_type_81a4853959168ec7_16#number_type. == FLAC__FRAME_NUMBER_TYPE_FRAME_NUMBERcxx . . $ FLAC__FRAME_NUMBER_TYPE_FRAME_NUMBER.) {
2919 x = decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..numbercxx . . $ $anonymous_type_81a4853959168ec7_16#number..frame_numbercxx . . $ $anonymous_type_81a4853959168ec7_16#$anonymous_type_17#frame_number.;
2920 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..number_typecxx . . $ $anonymous_type_81a4853959168ec7_16#number_type. = FLAC__FRAME_NUMBER_TYPE_SAMPLE_NUMBERcxx . . $ FLAC__FRAME_NUMBER_TYPE_SAMPLE_NUMBER.;
2921 if(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->fixed_block_sizecxx . . $ FLAC__StreamDecoderPrivate#fixed_block_size.)
2922 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..numbercxx . . $ $anonymous_type_81a4853959168ec7_16#number..sample_numbercxx . . $ $anonymous_type_81a4853959168ec7_16#$anonymous_type_17#sample_number. = (FLAC__uint64cxx . . $ FLAC__uint64#)decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->fixed_block_sizecxx . . $ FLAC__StreamDecoderPrivate#fixed_block_size. * (FLAC__uint64cxx . . $ FLAC__uint64#)x;
2923 else if(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->has_stream_infocxx . . $ FLAC__StreamDecoderPrivate#has_stream_info.) {
2924 if(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->stream_infocxx . . $ FLAC__StreamDecoderPrivate#stream_info..datacxx . . $ FLAC__StreamMetadata#data..stream_infocxx . . $ FLAC__StreamMetadata#$anonymous_type_34#stream_info..min_blocksizecxx . . $ $anonymous_type_81a4853959168ec7_21#min_blocksize. == decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->stream_infocxx . . $ FLAC__StreamDecoderPrivate#stream_info..datacxx . . $ FLAC__StreamMetadata#data..stream_infocxx . . $ FLAC__StreamMetadata#$anonymous_type_34#stream_info..max_blocksizecxx . . $ $anonymous_type_81a4853959168ec7_21#max_blocksize.) {
2925 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..numbercxx . . $ $anonymous_type_81a4853959168ec7_16#number..sample_numbercxx . . $ $anonymous_type_81a4853959168ec7_16#$anonymous_type_17#sample_number. = (FLAC__uint64cxx . . $ FLAC__uint64#)decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->stream_infocxx . . $ FLAC__StreamDecoderPrivate#stream_info..datacxx . . $ FLAC__StreamMetadata#data..stream_infocxx . . $ FLAC__StreamMetadata#$anonymous_type_34#stream_info..min_blocksizecxx . . $ $anonymous_type_81a4853959168ec7_21#min_blocksize. * (FLAC__uint64cxx . . $ FLAC__uint64#)x;
2926 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->next_fixed_block_sizecxx . . $ FLAC__StreamDecoderPrivate#next_fixed_block_size. = decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->stream_infocxx . . $ FLAC__StreamDecoderPrivate#stream_info..datacxx . . $ FLAC__StreamMetadata#data..stream_infocxx . . $ FLAC__StreamMetadata#$anonymous_type_34#stream_info..max_blocksizecxx . . $ $anonymous_type_81a4853959168ec7_21#max_blocksize.;
2927 }
2928 else
2929 is_unparseable = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
2930 }
2931 else if(x == 0) {
2932 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..numbercxx . . $ $anonymous_type_81a4853959168ec7_16#number..sample_numbercxx . . $ $anonymous_type_81a4853959168ec7_16#$anonymous_type_17#sample_number. = 0;
2933 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->next_fixed_block_sizecxx . . $ FLAC__StreamDecoderPrivate#next_fixed_block_size. = decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..blocksizecxx . . $ $anonymous_type_81a4853959168ec7_16#blocksize.;
2934 }
2935 else {
2936 /* can only get here if the stream has invalid frame numbering and no STREAMINFO, so assume it's not the last (possibly short) frame */
2937 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..numbercxx . . $ $anonymous_type_81a4853959168ec7_16#number..sample_numbercxx . . $ $anonymous_type_81a4853959168ec7_16#$anonymous_type_17#sample_number. = (FLAC__uint64cxx . . $ FLAC__uint64#)decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..blocksizecxx . . $ $anonymous_type_81a4853959168ec7_16#blocksize. * (FLAC__uint64cxx . . $ FLAC__uint64#)x;
2938 }
2939 }
2940
2941 if(is_unparseable) {
2942 send_error_to_client_cxx . . $ send_error_to_client_(cc791be6cdc6ea1d).(decoder, FLAC__STREAM_DECODER_ERROR_STATUS_UNPARSEABLE_STREAMcxx . . $ FLAC__STREAM_DECODER_ERROR_STATUS_UNPARSEABLE_STREAM.);
2943 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. = FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNCcxx . . $ FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC.;
2944 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
2945 }
2946
2947 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
2948 }
2949
2950 FLAC__boolcxx . . $ FLAC__bool# read_subframe_cxx . . $ read_subframe_(7b4273826c07efaa).(FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder, uint32_tcxx . . $ uint32_t# channel, uint32_tcxx . . $ uint32_t# bps, FLAC__boolcxx . . $ FLAC__bool# do_full_decode)
2951 {
2952 FLAC__uint32cxx . . $ FLAC__uint32# x;
2953 FLAC__boolcxx . . $ FLAC__bool# wasted_bits;
2954 uint32_tcxx . . $ uint32_t# i;
2955
2956 if(!FLAC__bitreader_read_raw_uint32cxx . . $ FLAC__bitreader_read_raw_uint32(ea282896fbfc92c4).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., &x, 8)) /* MAGIC NUMBER */
2957 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* read_callback_ sets the state for us */
2958
2959 wasted_bits = (x & 1);
2960 x &= 0xfe;
2961
2962 if(wasted_bits) {
2963 uint32_tcxx . . $ uint32_t# u;
2964 if(!FLAC__bitreader_read_unary_unsignedcxx . . $ FLAC__bitreader_read_unary_unsigned(f6ede57617504980).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., &u))
2965 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* read_callback_ sets the state for us */
2966 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..subframescxx . . $ $anonymous_type_81a4853959168ec7_19#subframes.[channel].wasted_bitscxx . . $ $anonymous_type_81a4853959168ec7_12#wasted_bits. = u+1;
2967 if (decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..subframescxx . . $ $anonymous_type_81a4853959168ec7_19#subframes.[channel].wasted_bitscxx . . $ $anonymous_type_81a4853959168ec7_12#wasted_bits. >= bps) {
2968 send_error_to_client_cxx . . $ send_error_to_client_(cc791be6cdc6ea1d).(decoder, FLAC__STREAM_DECODER_ERROR_STATUS_LOST_SYNCcxx . . $ FLAC__STREAM_DECODER_ERROR_STATUS_LOST_SYNC.);
2969 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. = FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNCcxx . . $ FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC.;
2970 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
2971 }
2972 bps -= decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..subframescxx . . $ $anonymous_type_81a4853959168ec7_19#subframes.[channel].wasted_bitscxx . . $ $anonymous_type_81a4853959168ec7_12#wasted_bits.;
2973 }
2974 else
2975 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..subframescxx . . $ $anonymous_type_81a4853959168ec7_19#subframes.[channel].wasted_bitscxx . . $ $anonymous_type_81a4853959168ec7_12#wasted_bits. = 0;
2976
2977 /*
2978 * Lots of magic numbers here
2979 */
2980 if(x & 0x80) {
2981 send_error_to_client_cxx . . $ send_error_to_client_(cc791be6cdc6ea1d).(decoder, FLAC__STREAM_DECODER_ERROR_STATUS_LOST_SYNCcxx . . $ FLAC__STREAM_DECODER_ERROR_STATUS_LOST_SYNC.);
2982 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. = FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNCcxx . . $ FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC.;
2983 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
2984 }
2985 else if(x == 0) {
2986 if(!read_subframe_constant_cxx . . $ read_subframe_constant_(7b4273826c07efaa).(decoder, channel, bps, do_full_decode))
2987 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
2988 }
2989 else if(x == 2) {
2990 if(!read_subframe_verbatim_cxx . . $ read_subframe_verbatim_(7b4273826c07efaa).(decoder, channel, bps, do_full_decode))
2991 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
2992 }
2993 else if(x < 16) {
2994 send_error_to_client_cxx . . $ send_error_to_client_(cc791be6cdc6ea1d).(decoder, FLAC__STREAM_DECODER_ERROR_STATUS_UNPARSEABLE_STREAMcxx . . $ FLAC__STREAM_DECODER_ERROR_STATUS_UNPARSEABLE_STREAM.);
2995 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. = FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNCcxx . . $ FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC.;
2996 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
2997 }
2998 else if(x <= 24) {
2999 uint32_tcxx . . $ uint32_t# predictor_order = (x>>1)&7;
3000 if(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..blocksizecxx . . $ $anonymous_type_81a4853959168ec7_16#blocksize. <= predictor_order){
3001 send_error_to_client_cxx . . $ send_error_to_client_(cc791be6cdc6ea1d).(decoder, FLAC__STREAM_DECODER_ERROR_STATUS_LOST_SYNCcxx . . $ FLAC__STREAM_DECODER_ERROR_STATUS_LOST_SYNC.);
3002 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. = FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNCcxx . . $ FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC.;
3003 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
3004 }
3005 if(!read_subframe_fixed_cxx . . $ read_subframe_fixed_(116d129310282964).(decoder, channel, bps, predictor_order, do_full_decode))
3006 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
3007 if(decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. == FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNCcxx . . $ FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC.) /* means bad sync or got corruption */
3008 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
3009 }
3010 else if(x < 64) {
3011 send_error_to_client_cxx . . $ send_error_to_client_(cc791be6cdc6ea1d).(decoder, FLAC__STREAM_DECODER_ERROR_STATUS_UNPARSEABLE_STREAMcxx . . $ FLAC__STREAM_DECODER_ERROR_STATUS_UNPARSEABLE_STREAM.);
3012 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. = FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNCcxx . . $ FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC.;
3013 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
3014 }
3015 else {
3016 uint32_tcxx . . $ uint32_t# predictor_order = ((x>>1)&31)+1;
3017 if(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..blocksizecxx . . $ $anonymous_type_81a4853959168ec7_16#blocksize. <= predictor_order){
3018 send_error_to_client_cxx . . $ send_error_to_client_(cc791be6cdc6ea1d).(decoder, FLAC__STREAM_DECODER_ERROR_STATUS_LOST_SYNCcxx . . $ FLAC__STREAM_DECODER_ERROR_STATUS_LOST_SYNC.);
3019 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. = FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNCcxx . . $ FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC.;
3020 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
3021 }
3022 if(!read_subframe_lpc_cxx . . $ read_subframe_lpc_(116d129310282964).(decoder, channel, bps, predictor_order, do_full_decode))
3023 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
3024 if(decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. == FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNCcxx . . $ FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC.) /* means bad sync or got corruption */
3025 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
3026 }
3027
3028 if(wasted_bits && do_full_decode) {
3029 x = decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..subframescxx . . $ $anonymous_type_81a4853959168ec7_19#subframes.[channel].wasted_bitscxx . . $ $anonymous_type_81a4853959168ec7_12#wasted_bits.;
3030 if((bps + x) < 33) {
3031 for(i = 0; i < decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..blocksizecxx . . $ $anonymous_type_81a4853959168ec7_16#blocksize.; i++) {
3032 uint32_tcxx . . $ uint32_t# val = decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->outputcxx . . $ FLAC__StreamDecoderPrivate#output.[channel][i];
3033 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->outputcxx . . $ FLAC__StreamDecoderPrivate#output.[channel][i] = (val << x);
3034 }
3035 }
3036 else {
3037 /* When there are wasted bits, bps is never 33 and so
3038 * side_subframe is never already in use */
3039 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(!decoder->private_->side_subframe_in_use);
3040 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->side_subframe_in_usecxx . . $ FLAC__StreamDecoderPrivate#side_subframe_in_use. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
3041 for(i = 0; i < decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..blocksizecxx . . $ $anonymous_type_81a4853959168ec7_16#blocksize.; i++) {
3042 uint64_tcxx . . $ uint64_t# val = decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->outputcxx . . $ FLAC__StreamDecoderPrivate#output.[channel][i];
3043 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->side_subframecxx . . $ FLAC__StreamDecoderPrivate#side_subframe.[i] = (val << x);
3044 }
3045 }
3046 }
3047
3048 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
3049 }
3050
3051 FLAC__boolcxx . . $ FLAC__bool# read_subframe_constant_cxx . . $ read_subframe_constant_(7b4273826c07efaa).(FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder, uint32_tcxx . . $ uint32_t# channel, uint32_tcxx . . $ uint32_t# bps, FLAC__boolcxx . . $ FLAC__bool# do_full_decode)
3052 {
3053 FLAC__Subframe_Constantcxx . . $ FLAC__Subframe_Constant# *subframe = &decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..subframescxx . . $ $anonymous_type_81a4853959168ec7_19#subframes.[channel].datacxx . . $ $anonymous_type_81a4853959168ec7_12#data..constantcxx . . $ $anonymous_type_81a4853959168ec7_12#$anonymous_type_13#constant.;
3054 FLAC__int64cxx . . $ FLAC__int64# x;
3055 uint32_tcxx . . $ uint32_t# i;
3056
3057 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..subframescxx . . $ $anonymous_type_81a4853959168ec7_19#subframes.[channel].typecxx . . $ $anonymous_type_81a4853959168ec7_12#type. = FLAC__SUBFRAME_TYPE_CONSTANTcxx . . $ FLAC__SUBFRAME_TYPE_CONSTANT.;
3058
3059 if(!FLAC__bitreader_read_raw_int64cxx . . $ FLAC__bitreader_read_raw_int64(339a16293775a0e3).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., &x, bps))
3060 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* read_callback_ sets the state for us */
3061
3062 subframe->valuecxx . . $ $anonymous_type_81a4853959168ec7_6#value. = x;
3063
3064 /* decode the subframe */
3065 if(do_full_decode) {
3066 if(bps <= 32) {
3067 FLAC__int32cxx . . $ FLAC__int32# *output = decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->outputcxx . . $ FLAC__StreamDecoderPrivate#output.[channel];
3068 for(i = 0; i < decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..blocksizecxx . . $ $anonymous_type_81a4853959168ec7_16#blocksize.; i++)
3069 output[i] = x;
3070 } else {
3071 FLAC__int64cxx . . $ FLAC__int64# *output = decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->side_subframecxx . . $ FLAC__StreamDecoderPrivate#side_subframe.;
3072 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->side_subframe_in_usecxx . . $ FLAC__StreamDecoderPrivate#side_subframe_in_use. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
3073 for(i = 0; i < decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..blocksizecxx . . $ $anonymous_type_81a4853959168ec7_16#blocksize.; i++)
3074 output[i] = x;
3075 }
3076 }
3077
3078 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
3079 }
3080
3081 FLAC__boolcxx . . $ FLAC__bool# read_subframe_fixed_cxx . . $ read_subframe_fixed_(116d129310282964).(FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder, uint32_tcxx . . $ uint32_t# channel, uint32_tcxx . . $ uint32_t# bps, const uint32_tcxx . . $ uint32_t# order, FLAC__boolcxx . . $ FLAC__bool# do_full_decode)
3082 {
3083 FLAC__Subframe_Fixedcxx . . $ FLAC__Subframe_Fixed# *subframe = &decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..subframescxx . . $ $anonymous_type_81a4853959168ec7_19#subframes.[channel].datacxx . . $ $anonymous_type_81a4853959168ec7_12#data..fixedcxx . . $ $anonymous_type_81a4853959168ec7_12#$anonymous_type_13#fixed.;
3084 FLAC__int64cxx . . $ FLAC__int64# i64;
3085 FLAC__uint32cxx . . $ FLAC__uint32# u32;
3086 uint32_tcxx . . $ uint32_t# u;
3087
3088 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..subframescxx . . $ $anonymous_type_81a4853959168ec7_19#subframes.[channel].typecxx . . $ $anonymous_type_81a4853959168ec7_12#type. = FLAC__SUBFRAME_TYPE_FIXEDcxx . . $ FLAC__SUBFRAME_TYPE_FIXED.;
3089
3090 subframe->residualcxx . . $ $anonymous_type_81a4853959168ec7_10#residual. = decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->residualcxx . . $ FLAC__StreamDecoderPrivate#residual.[channel];
3091 subframe->ordercxx . . $ $anonymous_type_81a4853959168ec7_10#order. = order;
3092
3093 /* read warm-up samples */
3094 for(u = 0; u < order; u++) {
3095 if(!FLAC__bitreader_read_raw_int64cxx . . $ FLAC__bitreader_read_raw_int64(339a16293775a0e3).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., &i64, bps))
3096 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* read_callback_ sets the state for us */
3097 subframe->warmupcxx . . $ $anonymous_type_81a4853959168ec7_10#warmup.[u] = i64;
3098 }
3099
3100 /* read entropy coding method info */
3101 if(!FLAC__bitreader_read_raw_uint32cxx . . $ FLAC__bitreader_read_raw_uint32(ea282896fbfc92c4).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., &u32, FLAC__ENTROPY_CODING_METHOD_TYPE_LENcxx . . $ FLAC__ENTROPY_CODING_METHOD_TYPE_LEN.))
3102 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* read_callback_ sets the state for us */
3103 subframe->entropy_coding_methodcxx . . $ $anonymous_type_81a4853959168ec7_10#entropy_coding_method..typecxx . . $ $anonymous_type_81a4853959168ec7_3#type. = (FLAC__EntropyCodingMethodTypecxx . . $ FLAC__EntropyCodingMethodType#)u32;
3104 switch(subframe->entropy_coding_methodcxx . . $ $anonymous_type_81a4853959168ec7_10#entropy_coding_method..typecxx . . $ $anonymous_type_81a4853959168ec7_3#type.) {
3105 case FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICEcxx . . $ FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE.:
3106 case FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE2cxx . . $ FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE2.:
3107 if(!FLAC__bitreader_read_raw_uint32cxx . . $ FLAC__bitreader_read_raw_uint32(ea282896fbfc92c4).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., &u32, FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE_ORDER_LENcxx . . $ FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE_ORDER_LEN.))
3108 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* read_callback_ sets the state for us */
3109 if((decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..blocksizecxx . . $ $anonymous_type_81a4853959168ec7_16#blocksize. >> u32 < order) ||
3110 (decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..blocksizecxx . . $ $anonymous_type_81a4853959168ec7_16#blocksize. % (1 << u32) > 0)) {
3111 send_error_to_client_cxx . . $ send_error_to_client_(cc791be6cdc6ea1d).(decoder, FLAC__STREAM_DECODER_ERROR_STATUS_LOST_SYNCcxx . . $ FLAC__STREAM_DECODER_ERROR_STATUS_LOST_SYNC.);
3112 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. = FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNCcxx . . $ FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC.;
3113 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
3114 }
3115 subframe->entropy_coding_methodcxx . . $ $anonymous_type_81a4853959168ec7_10#entropy_coding_method..datacxx . . $ $anonymous_type_81a4853959168ec7_3#data..partitioned_ricecxx . . $ $anonymous_type_81a4853959168ec7_3#$anonymous_type_4#partitioned_rice..ordercxx . . $ $anonymous_type_81a4853959168ec7_2#order. = u32;
3116 subframe->entropy_coding_methodcxx . . $ $anonymous_type_81a4853959168ec7_10#entropy_coding_method..datacxx . . $ $anonymous_type_81a4853959168ec7_3#data..partitioned_ricecxx . . $ $anonymous_type_81a4853959168ec7_3#$anonymous_type_4#partitioned_rice..contentscxx . . $ $anonymous_type_81a4853959168ec7_2#contents. = &decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->partitioned_rice_contentscxx . . $ FLAC__StreamDecoderPrivate#partitioned_rice_contents.[channel];
3117 break;
3118 default:
3119 send_error_to_client_cxx . . $ send_error_to_client_(cc791be6cdc6ea1d).(decoder, FLAC__STREAM_DECODER_ERROR_STATUS_UNPARSEABLE_STREAMcxx . . $ FLAC__STREAM_DECODER_ERROR_STATUS_UNPARSEABLE_STREAM.);
3120 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. = FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNCcxx . . $ FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC.;
3121 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
3122 }
3123
3124 /* read residual */
3125 switch(subframe->entropy_coding_methodcxx . . $ $anonymous_type_81a4853959168ec7_10#entropy_coding_method..typecxx . . $ $anonymous_type_81a4853959168ec7_3#type.) {
3126 case FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICEcxx . . $ FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE.:
3127 case FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE2cxx . . $ FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE2.:
3128 if(!read_residual_partitioned_rice_cxx . . $ read_residual_partitioned_rice_(6989f87ac5debb61).(decoder, order, subframe->entropy_coding_methodcxx . . $ $anonymous_type_81a4853959168ec7_10#entropy_coding_method..datacxx . . $ $anonymous_type_81a4853959168ec7_3#data..partitioned_ricecxx . . $ $anonymous_type_81a4853959168ec7_3#$anonymous_type_4#partitioned_rice..ordercxx . . $ $anonymous_type_81a4853959168ec7_2#order., &decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->partitioned_rice_contentscxx . . $ FLAC__StreamDecoderPrivate#partitioned_rice_contents.[channel], decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->residualcxx . . $ FLAC__StreamDecoderPrivate#residual.[channel], /*is_extended=*/subframe->entropy_coding_methodcxx . . $ $anonymous_type_81a4853959168ec7_10#entropy_coding_method..typecxx . . $ $anonymous_type_81a4853959168ec7_3#type. == FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE2cxx . . $ FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE2.))
3129 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
3130 break;
3131 default:
3132 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0);
3133 }
3134
3135 /* decode the subframe */
3136 if(do_full_decode) {
3137 if(bps < 33){
3138 uint32_tcxx . . $ uint32_t# i;
3139 for(i = 0; i < order; i++)
3140 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->outputcxx . . $ FLAC__StreamDecoderPrivate#output.[channel][i] = subframe->warmupcxx . . $ $anonymous_type_81a4853959168ec7_10#warmup.[i];
3141 if(bps+order <= 32)
3142 FLAC__fixed_restore_signalcxx . . $ FLAC__fixed_restore_signal(ba7fe6e63337777d).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->residualcxx . . $ FLAC__StreamDecoderPrivate#residual.[channel], decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..blocksizecxx . . $ $anonymous_type_81a4853959168ec7_16#blocksize.-order, order, decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->outputcxx . . $ FLAC__StreamDecoderPrivate#output.[channel]+order);
3143 else
3144 FLAC__fixed_restore_signal_widecxx . . $ FLAC__fixed_restore_signal_wide(ba7fe6e63337777d).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->residualcxx . . $ FLAC__StreamDecoderPrivate#residual.[channel], decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..blocksizecxx . . $ $anonymous_type_81a4853959168ec7_16#blocksize.-order, order, decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->outputcxx . . $ FLAC__StreamDecoderPrivate#output.[channel]+order);
3145 }
3146 else {
3147 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->side_subframe_in_usecxx . . $ FLAC__StreamDecoderPrivate#side_subframe_in_use. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
3148 memcpycxx . . $ memcpy(cc817cb175f282d).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->side_subframecxx . . $ FLAC__StreamDecoderPrivate#side_subframe., subframe->warmupcxx . . $ $anonymous_type_81a4853959168ec7_10#warmup., sizeof(FLAC__int64cxx . . $ FLAC__int64#) * order);
3149 FLAC__fixed_restore_signal_wide_33bitcxx . . $ FLAC__fixed_restore_signal_wide_33bit(164ba09373fa6493).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->residualcxx . . $ FLAC__StreamDecoderPrivate#residual.[channel], decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..blocksizecxx . . $ $anonymous_type_81a4853959168ec7_16#blocksize.-order, order, decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->side_subframecxx . . $ FLAC__StreamDecoderPrivate#side_subframe.+order);
3150 }
3151 }
3152
3153 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
3154 }
3155
3156 FLAC__boolcxx . . $ FLAC__bool# read_subframe_lpc_cxx . . $ read_subframe_lpc_(116d129310282964).(FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder, uint32_tcxx . . $ uint32_t# channel, uint32_tcxx . . $ uint32_t# bps, const uint32_tcxx . . $ uint32_t# order, FLAC__boolcxx . . $ FLAC__bool# do_full_decode)
3157 {
3158 FLAC__Subframe_LPCcxx . . $ FLAC__Subframe_LPC# *subframe = &decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..subframescxx . . $ $anonymous_type_81a4853959168ec7_19#subframes.[channel].datacxx . . $ $anonymous_type_81a4853959168ec7_12#data..lpccxx . . $ $anonymous_type_81a4853959168ec7_12#$anonymous_type_13#lpc.;
3159 FLAC__int32cxx . . $ FLAC__int32# i32;
3160 FLAC__int64cxx . . $ FLAC__int64# i64;
3161 FLAC__uint32cxx . . $ FLAC__uint32# u32;
3162 uint32_tcxx . . $ uint32_t# u;
3163
3164 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..subframescxx . . $ $anonymous_type_81a4853959168ec7_19#subframes.[channel].typecxx . . $ $anonymous_type_81a4853959168ec7_12#type. = FLAC__SUBFRAME_TYPE_LPCcxx . . $ FLAC__SUBFRAME_TYPE_LPC.;
3165
3166 subframe->residualcxx . . $ $anonymous_type_81a4853959168ec7_11#residual. = decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->residualcxx . . $ FLAC__StreamDecoderPrivate#residual.[channel];
3167 subframe->ordercxx . . $ $anonymous_type_81a4853959168ec7_11#order. = order;
3168
3169 /* read warm-up samples */
3170 for(u = 0; u < order; u++) {
3171 if(!FLAC__bitreader_read_raw_int64cxx . . $ FLAC__bitreader_read_raw_int64(339a16293775a0e3).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., &i64, bps))
3172 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* read_callback_ sets the state for us */
3173 subframe->warmupcxx . . $ $anonymous_type_81a4853959168ec7_11#warmup.[u] = i64;
3174 }
3175
3176 /* read qlp coeff precision */
3177 if(!FLAC__bitreader_read_raw_uint32cxx . . $ FLAC__bitreader_read_raw_uint32(ea282896fbfc92c4).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., &u32, FLAC__SUBFRAME_LPC_QLP_COEFF_PRECISION_LENcxx . . $ FLAC__SUBFRAME_LPC_QLP_COEFF_PRECISION_LEN.))
3178 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* read_callback_ sets the state for us */
3179 if(u32 == (1u << FLAC__SUBFRAME_LPC_QLP_COEFF_PRECISION_LENcxx . . $ FLAC__SUBFRAME_LPC_QLP_COEFF_PRECISION_LEN.) - 1) {
3180 send_error_to_client_cxx . . $ send_error_to_client_(cc791be6cdc6ea1d).(decoder, FLAC__STREAM_DECODER_ERROR_STATUS_LOST_SYNCcxx . . $ FLAC__STREAM_DECODER_ERROR_STATUS_LOST_SYNC.);
3181 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. = FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNCcxx . . $ FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC.;
3182 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
3183 }
3184 subframe->qlp_coeff_precisioncxx . . $ $anonymous_type_81a4853959168ec7_11#qlp_coeff_precision. = u32+1;
3185
3186 /* read qlp shift */
3187 if(!FLAC__bitreader_read_raw_int32cxx . . $ FLAC__bitreader_read_raw_int32(6b1d7cde4a2d845b).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., &i32, FLAC__SUBFRAME_LPC_QLP_SHIFT_LENcxx . . $ FLAC__SUBFRAME_LPC_QLP_SHIFT_LEN.))
3188 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* read_callback_ sets the state for us */
3189 if(i32 < 0) {
3190 send_error_to_client_cxx . . $ send_error_to_client_(cc791be6cdc6ea1d).(decoder, FLAC__STREAM_DECODER_ERROR_STATUS_LOST_SYNCcxx . . $ FLAC__STREAM_DECODER_ERROR_STATUS_LOST_SYNC.);
3191 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. = FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNCcxx . . $ FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC.;
3192 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
3193 }
3194 subframe->quantization_levelcxx . . $ $anonymous_type_81a4853959168ec7_11#quantization_level. = i32;
3195
3196 /* read quantized lp coefficiencts */
3197 for(u = 0; u < order; u++) {
3198 if(!FLAC__bitreader_read_raw_int32cxx . . $ FLAC__bitreader_read_raw_int32(6b1d7cde4a2d845b).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., &i32, subframe->qlp_coeff_precisioncxx . . $ $anonymous_type_81a4853959168ec7_11#qlp_coeff_precision.))
3199 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* read_callback_ sets the state for us */
3200 subframe->qlp_coeffcxx . . $ $anonymous_type_81a4853959168ec7_11#qlp_coeff.[u] = i32;
3201 }
3202
3203 /* read entropy coding method info */
3204 if(!FLAC__bitreader_read_raw_uint32cxx . . $ FLAC__bitreader_read_raw_uint32(ea282896fbfc92c4).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., &u32, FLAC__ENTROPY_CODING_METHOD_TYPE_LENcxx . . $ FLAC__ENTROPY_CODING_METHOD_TYPE_LEN.))
3205 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* read_callback_ sets the state for us */
3206 subframe->entropy_coding_methodcxx . . $ $anonymous_type_81a4853959168ec7_11#entropy_coding_method..typecxx . . $ $anonymous_type_81a4853959168ec7_3#type. = (FLAC__EntropyCodingMethodTypecxx . . $ FLAC__EntropyCodingMethodType#)u32;
3207 switch(subframe->entropy_coding_methodcxx . . $ $anonymous_type_81a4853959168ec7_11#entropy_coding_method..typecxx . . $ $anonymous_type_81a4853959168ec7_3#type.) {
3208 case FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICEcxx . . $ FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE.:
3209 case FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE2cxx . . $ FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE2.:
3210 if(!FLAC__bitreader_read_raw_uint32cxx . . $ FLAC__bitreader_read_raw_uint32(ea282896fbfc92c4).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., &u32, FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE_ORDER_LENcxx . . $ FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE_ORDER_LEN.))
3211 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* read_callback_ sets the state for us */
3212 if((decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..blocksizecxx . . $ $anonymous_type_81a4853959168ec7_16#blocksize. >> u32 < order) ||
3213 (decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..blocksizecxx . . $ $anonymous_type_81a4853959168ec7_16#blocksize. % (1 << u32) > 0)) {
3214 send_error_to_client_cxx . . $ send_error_to_client_(cc791be6cdc6ea1d).(decoder, FLAC__STREAM_DECODER_ERROR_STATUS_LOST_SYNCcxx . . $ FLAC__STREAM_DECODER_ERROR_STATUS_LOST_SYNC.);
3215 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. = FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNCcxx . . $ FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC.;
3216 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
3217 }
3218 subframe->entropy_coding_methodcxx . . $ $anonymous_type_81a4853959168ec7_11#entropy_coding_method..datacxx . . $ $anonymous_type_81a4853959168ec7_3#data..partitioned_ricecxx . . $ $anonymous_type_81a4853959168ec7_3#$anonymous_type_4#partitioned_rice..ordercxx . . $ $anonymous_type_81a4853959168ec7_2#order. = u32;
3219 subframe->entropy_coding_methodcxx . . $ $anonymous_type_81a4853959168ec7_11#entropy_coding_method..datacxx . . $ $anonymous_type_81a4853959168ec7_3#data..partitioned_ricecxx . . $ $anonymous_type_81a4853959168ec7_3#$anonymous_type_4#partitioned_rice..contentscxx . . $ $anonymous_type_81a4853959168ec7_2#contents. = &decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->partitioned_rice_contentscxx . . $ FLAC__StreamDecoderPrivate#partitioned_rice_contents.[channel];
3220 break;
3221 default:
3222 send_error_to_client_cxx . . $ send_error_to_client_(cc791be6cdc6ea1d).(decoder, FLAC__STREAM_DECODER_ERROR_STATUS_UNPARSEABLE_STREAMcxx . . $ FLAC__STREAM_DECODER_ERROR_STATUS_UNPARSEABLE_STREAM.);
3223 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. = FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNCcxx . . $ FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC.;
3224 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
3225 }
3226
3227 /* read residual */
3228 switch(subframe->entropy_coding_methodcxx . . $ $anonymous_type_81a4853959168ec7_11#entropy_coding_method..typecxx . . $ $anonymous_type_81a4853959168ec7_3#type.) {
3229 case FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICEcxx . . $ FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE.:
3230 case FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE2cxx . . $ FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE2.:
3231 if(!read_residual_partitioned_rice_cxx . . $ read_residual_partitioned_rice_(6989f87ac5debb61).(decoder, order, subframe->entropy_coding_methodcxx . . $ $anonymous_type_81a4853959168ec7_11#entropy_coding_method..datacxx . . $ $anonymous_type_81a4853959168ec7_3#data..partitioned_ricecxx . . $ $anonymous_type_81a4853959168ec7_3#$anonymous_type_4#partitioned_rice..ordercxx . . $ $anonymous_type_81a4853959168ec7_2#order., &decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->partitioned_rice_contentscxx . . $ FLAC__StreamDecoderPrivate#partitioned_rice_contents.[channel], decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->residualcxx . . $ FLAC__StreamDecoderPrivate#residual.[channel], /*is_extended=*/subframe->entropy_coding_methodcxx . . $ $anonymous_type_81a4853959168ec7_11#entropy_coding_method..typecxx . . $ $anonymous_type_81a4853959168ec7_3#type. == FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE2cxx . . $ FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE2.))
3232 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
3233 break;
3234 default:
3235 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0);
3236 }
3237
3238 /* decode the subframe */
3239 if(do_full_decode) {
3240 if(bps <= 32) {
3241 uint32_tcxx . . $ uint32_t# i;
3242 for(i = 0; i < order; i++)
3243 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->outputcxx . . $ FLAC__StreamDecoderPrivate#output.[channel][i] = subframe->warmupcxx . . $ $anonymous_type_81a4853959168ec7_11#warmup.[i];
3244 if(FLAC__lpc_max_residual_bpscxx . . $ FLAC__lpc_max_residual_bps(ecf149867fd69ab7).(bps, subframe->qlp_coeffcxx . . $ $anonymous_type_81a4853959168ec7_11#qlp_coeff., order, subframe->quantization_levelcxx . . $ $anonymous_type_81a4853959168ec7_11#quantization_level.) <= 32 &&
3245 FLAC__lpc_max_prediction_before_shift_bpscxx . . $ FLAC__lpc_max_prediction_before_shift_bps(13291d28cd0ecc60).(bps, subframe->qlp_coeffcxx . . $ $anonymous_type_81a4853959168ec7_11#qlp_coeff., order) <= 32)
3246 FLAC__lpc_restore_signalcxx . . $ FLAC__lpc_restore_signal(6941aaaa339379f8).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->residualcxx . . $ FLAC__StreamDecoderPrivate#residual.[channel], decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..blocksizecxx . . $ $anonymous_type_81a4853959168ec7_16#blocksize.-order, subframe->qlp_coeffcxx . . $ $anonymous_type_81a4853959168ec7_11#qlp_coeff., order, subframe->quantization_levelcxx . . $ $anonymous_type_81a4853959168ec7_11#quantization_level., decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->outputcxx . . $ FLAC__StreamDecoderPrivate#output.[channel]+order);
3247 else
3248 FLAC__lpc_restore_signal_widecxx . . $ FLAC__lpc_restore_signal_wide(6941aaaa339379f8).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->residualcxx . . $ FLAC__StreamDecoderPrivate#residual.[channel], decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..blocksizecxx . . $ $anonymous_type_81a4853959168ec7_16#blocksize.-order, subframe->qlp_coeffcxx . . $ $anonymous_type_81a4853959168ec7_11#qlp_coeff., order, subframe->quantization_levelcxx . . $ $anonymous_type_81a4853959168ec7_11#quantization_level., decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->outputcxx . . $ FLAC__StreamDecoderPrivate#output.[channel]+order);
3249 }
3250 else {
3251 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->side_subframe_in_usecxx . . $ FLAC__StreamDecoderPrivate#side_subframe_in_use. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
3252 memcpycxx . . $ memcpy(cc817cb175f282d).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->side_subframecxx . . $ FLAC__StreamDecoderPrivate#side_subframe., subframe->warmupcxx . . $ $anonymous_type_81a4853959168ec7_11#warmup., sizeof(FLAC__int64cxx . . $ FLAC__int64#) * order);
3253 FLAC__lpc_restore_signal_wide_33bitcxx . . $ FLAC__lpc_restore_signal_wide_33bit(c5bb7e0cc1ee7103).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->residualcxx . . $ FLAC__StreamDecoderPrivate#residual.[channel], decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..blocksizecxx . . $ $anonymous_type_81a4853959168ec7_16#blocksize.-order, subframe->qlp_coeffcxx . . $ $anonymous_type_81a4853959168ec7_11#qlp_coeff., order, subframe->quantization_levelcxx . . $ $anonymous_type_81a4853959168ec7_11#quantization_level., decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->side_subframecxx . . $ FLAC__StreamDecoderPrivate#side_subframe.+order);
3254 }
3255 }
3256
3257 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
3258 }
3259
3260 FLAC__boolcxx . . $ FLAC__bool# read_subframe_verbatim_cxx . . $ read_subframe_verbatim_(7b4273826c07efaa).(FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder, uint32_tcxx . . $ uint32_t# channel, uint32_tcxx . . $ uint32_t# bps, FLAC__boolcxx . . $ FLAC__bool# do_full_decode)
3261 {
3262 FLAC__Subframe_Verbatimcxx . . $ FLAC__Subframe_Verbatim# *subframe = &decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..subframescxx . . $ $anonymous_type_81a4853959168ec7_19#subframes.[channel].datacxx . . $ $anonymous_type_81a4853959168ec7_12#data..verbatimcxx . . $ $anonymous_type_81a4853959168ec7_12#$anonymous_type_13#verbatim.;
3263 uint32_tcxx . . $ uint32_t# i;
3264
3265 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..subframescxx . . $ $anonymous_type_81a4853959168ec7_19#subframes.[channel].typecxx . . $ $anonymous_type_81a4853959168ec7_12#type. = FLAC__SUBFRAME_TYPE_VERBATIMcxx . . $ FLAC__SUBFRAME_TYPE_VERBATIM.;
3266
3267 if(bps < 33) {
3268 FLAC__int32cxx . . $ FLAC__int32# x, *residual = decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->residualcxx . . $ FLAC__StreamDecoderPrivate#residual.[channel];
3269
3270 subframe->data_typecxx . . $ $anonymous_type_81a4853959168ec7_8#data_type. = FLAC__VERBATIM_SUBFRAME_DATA_TYPE_INT32cxx . . $ FLAC__VERBATIM_SUBFRAME_DATA_TYPE_INT32.;
3271 subframe->datacxx . . $ $anonymous_type_81a4853959168ec7_8#data..int32cxx . . $ $anonymous_type_81a4853959168ec7_8#$anonymous_type_9#int32. = residual;
3272
3273 for(i = 0; i < decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..blocksizecxx . . $ $anonymous_type_81a4853959168ec7_16#blocksize.; i++) {
3274 if(!FLAC__bitreader_read_raw_int32cxx . . $ FLAC__bitreader_read_raw_int32(6b1d7cde4a2d845b).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., &x, bps))
3275 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* read_callback_ sets the state for us */
3276 residual[i] = x;
3277 }
3278
3279 /* decode the subframe */
3280 if(do_full_decode)
3281 memcpycxx . . $ memcpy(cc817cb175f282d).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->outputcxx . . $ FLAC__StreamDecoderPrivate#output.[channel], subframe->datacxx . . $ $anonymous_type_81a4853959168ec7_8#data..int32cxx . . $ $anonymous_type_81a4853959168ec7_8#$anonymous_type_9#int32., sizeof(FLAC__int32cxx . . $ FLAC__int32#) * decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..blocksizecxx . . $ $anonymous_type_81a4853959168ec7_16#blocksize.);
3282 }
3283 else {
3284 FLAC__int64cxx . . $ FLAC__int64# x, *side = decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->side_subframecxx . . $ FLAC__StreamDecoderPrivate#side_subframe.;
3285
3286 subframe->data_typecxx . . $ $anonymous_type_81a4853959168ec7_8#data_type. = FLAC__VERBATIM_SUBFRAME_DATA_TYPE_INT64cxx . . $ FLAC__VERBATIM_SUBFRAME_DATA_TYPE_INT64.;
3287 subframe->datacxx . . $ $anonymous_type_81a4853959168ec7_8#data..int64cxx . . $ $anonymous_type_81a4853959168ec7_8#$anonymous_type_9#int64. = side;
3288 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->side_subframe_in_usecxx . . $ FLAC__StreamDecoderPrivate#side_subframe_in_use. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
3289
3290 for(i = 0; i < decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..blocksizecxx . . $ $anonymous_type_81a4853959168ec7_16#blocksize.; i++) {
3291 if(!FLAC__bitreader_read_raw_int64cxx . . $ FLAC__bitreader_read_raw_int64(339a16293775a0e3).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., &x, bps))
3292 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* read_callback_ sets the state for us */
3293 side[i] = x;
3294 }
3295 }
3296
3297 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
3298 }
3299
3300 FLAC__boolcxx . . $ FLAC__bool# read_residual_partitioned_rice_cxx . . $ read_residual_partitioned_rice_(6989f87ac5debb61).(FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder, uint32_tcxx . . $ uint32_t# predictor_order, uint32_tcxx . . $ uint32_t# partition_order, FLAC__EntropyCodingMethod_PartitionedRiceContentscxx . . $ FLAC__EntropyCodingMethod_PartitionedRiceContents# *partitioned_rice_contents, FLAC__int32cxx . . $ FLAC__int32# *residual, FLAC__boolcxx . . $ FLAC__bool# is_extended)
3301 {
3302 FLAC__uint32cxx . . $ FLAC__uint32# rice_parameter;
3303 int i;
3304 uint32_tcxx . . $ uint32_t# partition, sample, u;
3305 const uint32_tcxx . . $ uint32_t# partitions = 1u << partition_order;
3306 const uint32_tcxx . . $ uint32_t# partition_samples = decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..blocksizecxx . . $ $anonymous_type_81a4853959168ec7_16#blocksize. >> partition_order;
3307 const uint32_tcxx . . $ uint32_t# plen = is_extended? FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE2_PARAMETER_LENcxx . . $ FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE2_PARAMETER_LEN. : FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE_PARAMETER_LENcxx . . $ FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE_PARAMETER_LEN.;
3308 const uint32_tcxx . . $ uint32_t# pesc = is_extended? FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE2_ESCAPE_PARAMETERcxx . . $ FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE2_ESCAPE_PARAMETER. : FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE_ESCAPE_PARAMETERcxx . . $ FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE_ESCAPE_PARAMETER.;
3309
3310 /* invalid predictor and partition orders mush be handled in the callers */
3311 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(partition_order > 0? partition_samples >= predictor_order : decoder->private_->frame.header.blocksize >= predictor_order);
3312
3313 if(!FLAC__format_entropy_coding_method_partitioned_rice_contents_ensure_sizecxx . . $ FLAC__format_entropy_coding_method_partitioned_rice_contents_ensure_size(bf728dbb55de9f3e).(partitioned_rice_contents, flac_maxcxx . . $ `external/flac/flac_private_macros.h:71:9`!(6u, partition_order))) {
3314 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. = FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERRORcxx . . $ FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR.;
3315 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
3316 }
3317
3318 sample = 0;
3319 for(partition = 0; partition < partitions; partition++) {
3320 if(!FLAC__bitreader_read_raw_uint32cxx . . $ FLAC__bitreader_read_raw_uint32(ea282896fbfc92c4).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., &rice_parameter, plen))
3321 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* read_callback_ sets the state for us */
3322 partitioned_rice_contents->parameterscxx . . $ $anonymous_type_81a4853959168ec7_1#parameters.[partition] = rice_parameter;
3323 if(rice_parameter < pesc) {
3324 partitioned_rice_contents->raw_bitscxx . . $ $anonymous_type_81a4853959168ec7_1#raw_bits.[partition] = 0;
3325 u = (partition == 0) ? partition_samples - predictor_order : partition_samples;
3326 if(!decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->local_bitreader_read_rice_signed_blockcxx . . $ FLAC__StreamDecoderPrivate#local_bitreader_read_rice_signed_block.(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., residual + sample, u, rice_parameter)){
3327 if(decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. == FLAC__STREAM_DECODER_READ_FRAMEcxx . . $ FLAC__STREAM_DECODER_READ_FRAME.) {
3328 /* no error was set, read_callback_ didn't set it, so
3329 * invalid rice symbol was found */
3330 send_error_to_client_cxx . . $ send_error_to_client_(cc791be6cdc6ea1d).(decoder, FLAC__STREAM_DECODER_ERROR_STATUS_LOST_SYNCcxx . . $ FLAC__STREAM_DECODER_ERROR_STATUS_LOST_SYNC.);
3331 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. = FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNCcxx . . $ FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC.;
3332 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
3333 }
3334 else
3335 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* read_callback_ sets the state for us */
3336 }
3337 sample += u;
3338 }
3339 else {
3340 if(!FLAC__bitreader_read_raw_uint32cxx . . $ FLAC__bitreader_read_raw_uint32(ea282896fbfc92c4).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., &rice_parameter, FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE_RAW_LENcxx . . $ FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE_RAW_LEN.))
3341 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* read_callback_ sets the state for us */
3342 partitioned_rice_contents->raw_bitscxx . . $ $anonymous_type_81a4853959168ec7_1#raw_bits.[partition] = rice_parameter;
3343 if(rice_parameter == 0) {
3344 for(u = (partition == 0)? predictor_order : 0; u < partition_samples; u++, sample++)
3345 residual[sample] = 0;
3346 }
3347 else{
3348 for(u = (partition == 0)? predictor_order : 0; u < partition_samples; u++, sample++) {
3349 if(!FLAC__bitreader_read_raw_int32cxx . . $ FLAC__bitreader_read_raw_int32(6b1d7cde4a2d845b).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., &i, rice_parameter))
3350 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* read_callback_ sets the state for us */
3351 residual[sample] = i;
3352 }
3353 }
3354 }
3355 }
3356
3357 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
3358 }
3359
3360 FLAC__boolcxx . . $ FLAC__bool# read_zero_padding_cxx . . $ read_zero_padding_(d92048749c4f1284).(FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder)
3361 {
3362 if(!FLAC__bitreader_is_consumed_byte_alignedcxx . . $ FLAC__bitreader_is_consumed_byte_aligned(828ae4969518c677).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input.)) {
3363 FLAC__uint32cxx . . $ FLAC__uint32# zero = 0;
3364 if(!FLAC__bitreader_read_raw_uint32cxx . . $ FLAC__bitreader_read_raw_uint32(ea282896fbfc92c4).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input., &zero, FLAC__bitreader_bits_left_for_byte_alignmentcxx . . $ FLAC__bitreader_bits_left_for_byte_alignment(14a98ca08b67a72b).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input.)))
3365 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; /* read_callback_ sets the state for us */
3366 #ifndef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
3367 if(zero != 0) {
3368 send_error_to_client_cxx . . $ send_error_to_client_(cc791be6cdc6ea1d).(decoder, FLAC__STREAM_DECODER_ERROR_STATUS_LOST_SYNCcxx . . $ FLAC__STREAM_DECODER_ERROR_STATUS_LOST_SYNC.);
3369 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. = FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNCcxx . . $ FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC.;
3370 }
3371 #endif
3372 }
3373 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
3374 }
3375
3376 FLAC__boolcxx . . $ FLAC__bool# read_callback_cxx . . $ read_callback_(a63a13006dfa3a4e).(FLAC__bytecxx . . $ FLAC__byte# buffer[], size_t *bytes, void *client_data)
3377 {
3378 FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder = (FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *)client_data;
3379
3380 if(
3381 #if FLAC__HAS_OGGcxx . . $ `./flac_config.h:42:9`!
3382 /* see [1] HACK NOTE below for why we don't call the eof_callback when decoding Ogg FLAC */
3383 !decoder->private_->is_ogg &&
3384 #endif
3385 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->eof_callbackcxx . . $ FLAC__StreamDecoderPrivate#eof_callback. && decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->eof_callbackcxx . . $ FLAC__StreamDecoderPrivate#eof_callback.(decoder, decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->client_datacxx . . $ FLAC__StreamDecoderPrivate#client_data.)
3386 ) {
3387 *bytes = 0;
3388 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. = FLAC__STREAM_DECODER_END_OF_STREAMcxx . . $ FLAC__STREAM_DECODER_END_OF_STREAM.;
3389 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
3390 }
3391 else if(*bytes > 0) {
3392 /* While seeking, it is possible for our seek to land in the
3393 * middle of audio data that looks exactly like a frame header
3394 * from a future version of an encoder. When that happens, our
3395 * error callback will get an
3396 * FLAC__STREAM_DECODER_UNPARSEABLE_STREAM and increment its
3397 * unparseable_frame_count. But there is a remote possibility
3398 * that it is properly synced at such a "future-codec frame",
3399 * so to make sure, we wait to see many "unparseable" errors in
3400 * a row before bailing out.
3401 */
3402 if(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->is_seekingcxx . . $ FLAC__StreamDecoderPrivate#is_seeking. && decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->unparseable_frame_countcxx . . $ FLAC__StreamDecoderPrivate#unparseable_frame_count. > 20) {
3403 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. = FLAC__STREAM_DECODER_ABORTEDcxx . . $ FLAC__STREAM_DECODER_ABORTED.;
3404 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
3405 }
3406 else {
3407 const FLAC__StreamDecoderReadStatuscxx . . $ FLAC__StreamDecoderReadStatus# status =
3408 #if FLAC__HAS_OGGcxx . . $ `./flac_config.h:42:9`!
3409 decoder->private_->is_ogg?
3410 read_callback_ogg_aspect_(decoder, buffer, bytes) :
3411 #endif
3412 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->read_callbackcxx . . $ FLAC__StreamDecoderPrivate#read_callback.(decoder, buffer, bytes, decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->client_datacxx . . $ FLAC__StreamDecoderPrivate#client_data.)
3413 ;
3414 if(status == FLAC__STREAM_DECODER_READ_STATUS_ABORTcxx . . $ FLAC__STREAM_DECODER_READ_STATUS_ABORT.) {
3415 #if FLAC__HAS_OGGcxx . . $ `./flac_config.h:42:9`!
3416 if(decoder->private_->ogg_decoder_aspect_allocation_failure) {
3417 decoder->protected_->state = FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR;
3418 return false;
3419 }
3420 #endif
3421 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. = FLAC__STREAM_DECODER_ABORTEDcxx . . $ FLAC__STREAM_DECODER_ABORTED.;
3422 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
3423 }
3424 else if(*bytes == 0) {
3425 if(status == FLAC__STREAM_DECODER_READ_STATUS_END_OF_LINKcxx . . $ FLAC__STREAM_DECODER_READ_STATUS_END_OF_LINK.) {
3426 if(FLAC__bitreader_is_consumed_byte_alignedcxx . . $ FLAC__bitreader_is_consumed_byte_aligned(828ae4969518c677).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->inputcxx . . $ FLAC__StreamDecoderPrivate#input.))
3427 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. = FLAC__STREAM_DECODER_END_OF_LINKcxx . . $ FLAC__STREAM_DECODER_END_OF_LINK.;
3428 else
3429 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. = FLAC__STREAM_DECODER_OGG_ERRORcxx . . $ FLAC__STREAM_DECODER_OGG_ERROR.;
3430 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
3431 }
3432 else if(
3433 status == FLAC__STREAM_DECODER_READ_STATUS_END_OF_STREAMcxx . . $ FLAC__STREAM_DECODER_READ_STATUS_END_OF_STREAM. ||
3434 (
3435 #if FLAC__HAS_OGGcxx . . $ `./flac_config.h:42:9`!
3436 /* see [1] HACK NOTE below for why we don't call the eof_callback when decoding Ogg FLAC */
3437 !decoder->private_->is_ogg &&
3438 #endif
3439 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->eof_callbackcxx . . $ FLAC__StreamDecoderPrivate#eof_callback. && decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->eof_callbackcxx . . $ FLAC__StreamDecoderPrivate#eof_callback.(decoder, decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->client_datacxx . . $ FLAC__StreamDecoderPrivate#client_data.)
3440 )
3441 ) {
3442 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. = FLAC__STREAM_DECODER_END_OF_STREAMcxx . . $ FLAC__STREAM_DECODER_END_OF_STREAM.;
3443 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
3444 }
3445 else
3446 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
3447 }
3448 else
3449 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
3450 }
3451 }
3452 else {
3453 /* abort to avoid a deadlock */
3454 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. = FLAC__STREAM_DECODER_ABORTEDcxx . . $ FLAC__STREAM_DECODER_ABORTED.;
3455 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
3456 }
3457 /* [1] @@@ HACK NOTE: The end-of-stream checking has to be hacked around
3458 * for Ogg FLAC. This is because the ogg decoder aspect can lose sync
3459 * and at the same time hit the end of the stream (for example, seeking
3460 * to a point that is after the beginning of the last Ogg page). There
3461 * is no way to report an Ogg sync loss through the callbacks (see note
3462 * in read_callback_ogg_aspect_()) so it returns CONTINUE with *bytes==0.
3463 * So to keep the decoder from stopping at this point we gate the call
3464 * to the eof_callback and let the Ogg decoder aspect set the
3465 * end-of-stream state when it is needed.
3466 */
3467 }
3468
3469 #if defined(FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION) && !defined(FUZZING_BUILD_MODE_FLAC_SANITIZE_SIGNED_INTEGER_OVERFLOW)
3470 /* The attribute below is to silence the undefined sanitizer of oss-fuzz.
3471 * Because fuzzing feeds bogus predictors and residual samples to the
3472 * decoder, having overflows in this section is unavoidable. Also,
3473 * because the calculated values are audio path only, there is no
3474 * potential for security problems */
3475 __attribute__((no_sanitize("signed-integer-overflow")))
3476 #endif
3477 void undo_channel_codingcxx . . $ undo_channel_coding(1ffd9838c68f2516).(FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder) {
3478 uint32_tcxx . . $ uint32_t# i;
3479 switch(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..channel_assignmentcxx . . $ $anonymous_type_81a4853959168ec7_16#channel_assignment.) {
3480 case FLAC__CHANNEL_ASSIGNMENT_INDEPENDENTcxx . . $ FLAC__CHANNEL_ASSIGNMENT_INDEPENDENT.:
3481 /* do nothing */
3482 break;
3483 case FLAC__CHANNEL_ASSIGNMENT_LEFT_SIDEcxx . . $ FLAC__CHANNEL_ASSIGNMENT_LEFT_SIDE.:
3484 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(decoder->private_->frame.header.channels == 2);
3485 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(decoder->private_->side_subframe_in_use != /* logical XOR */ (decoder->private_->frame.header.bits_per_sample < 32));
3486 for(i = 0; i < decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..blocksizecxx . . $ $anonymous_type_81a4853959168ec7_16#blocksize.; i++)
3487 if(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->side_subframe_in_usecxx . . $ FLAC__StreamDecoderPrivate#side_subframe_in_use.)
3488 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->outputcxx . . $ FLAC__StreamDecoderPrivate#output.[1][i] = decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->outputcxx . . $ FLAC__StreamDecoderPrivate#output.[0][i] - decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->side_subframecxx . . $ FLAC__StreamDecoderPrivate#side_subframe.[i];
3489 else
3490 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->outputcxx . . $ FLAC__StreamDecoderPrivate#output.[1][i] = decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->outputcxx . . $ FLAC__StreamDecoderPrivate#output.[0][i] - decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->outputcxx . . $ FLAC__StreamDecoderPrivate#output.[1][i];
3491 break;
3492 case FLAC__CHANNEL_ASSIGNMENT_RIGHT_SIDEcxx . . $ FLAC__CHANNEL_ASSIGNMENT_RIGHT_SIDE.:
3493 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(decoder->private_->frame.header.channels == 2);
3494 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(decoder->private_->side_subframe_in_use != /* logical XOR */ (decoder->private_->frame.header.bits_per_sample < 32));
3495 for(i = 0; i < decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..blocksizecxx . . $ $anonymous_type_81a4853959168ec7_16#blocksize.; i++)
3496 if(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->side_subframe_in_usecxx . . $ FLAC__StreamDecoderPrivate#side_subframe_in_use.)
3497 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->outputcxx . . $ FLAC__StreamDecoderPrivate#output.[0][i] = decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->outputcxx . . $ FLAC__StreamDecoderPrivate#output.[1][i] + decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->side_subframecxx . . $ FLAC__StreamDecoderPrivate#side_subframe.[i];
3498 else
3499 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->outputcxx . . $ FLAC__StreamDecoderPrivate#output.[0][i] += decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->outputcxx . . $ FLAC__StreamDecoderPrivate#output.[1][i];
3500 break;
3501 case FLAC__CHANNEL_ASSIGNMENT_MID_SIDEcxx . . $ FLAC__CHANNEL_ASSIGNMENT_MID_SIDE.:
3502 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(decoder->private_->frame.header.channels == 2);
3503 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(decoder->private_->side_subframe_in_use != /* logical XOR */ (decoder->private_->frame.header.bits_per_sample < 32));
3504 for(i = 0; i < decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->framecxx . . $ FLAC__StreamDecoderPrivate#frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..blocksizecxx . . $ $anonymous_type_81a4853959168ec7_16#blocksize.; i++) {
3505 if(!decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->side_subframe_in_usecxx . . $ FLAC__StreamDecoderPrivate#side_subframe_in_use.){
3506 FLAC__int32cxx . . $ FLAC__int32# mid, side;
3507 mid = decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->outputcxx . . $ FLAC__StreamDecoderPrivate#output.[0][i];
3508 side = decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->outputcxx . . $ FLAC__StreamDecoderPrivate#output.[1][i];
3509 mid = ((uint32_tcxx . . $ uint32_t#) mid) << 1;
3510 mid |= (side & 1); /* i.e. if 'side' is odd... */
3511 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->outputcxx . . $ FLAC__StreamDecoderPrivate#output.[0][i] = (mid + side) >> 1;
3512 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->outputcxx . . $ FLAC__StreamDecoderPrivate#output.[1][i] = (mid - side) >> 1;
3513 }
3514 else { /* bps == 32 */
3515 FLAC__int64cxx . . $ FLAC__int64# mid;
3516 mid = ((uint64_tcxx . . $ uint64_t#)decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->outputcxx . . $ FLAC__StreamDecoderPrivate#output.[0][i]) << 1;
3517 mid |= (decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->side_subframecxx . . $ FLAC__StreamDecoderPrivate#side_subframe.[i] & 1); /* i.e. if 'side' is odd... */
3518 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->outputcxx . . $ FLAC__StreamDecoderPrivate#output.[0][i] = (mid + decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->side_subframecxx . . $ FLAC__StreamDecoderPrivate#side_subframe.[i]) >> 1;
3519 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->outputcxx . . $ FLAC__StreamDecoderPrivate#output.[1][i] = (mid - decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->side_subframecxx . . $ FLAC__StreamDecoderPrivate#side_subframe.[i]) >> 1;
3520 }
3521 }
3522 break;
3523 default:
3524 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(0);
3525 break;
3526 }
3527 }
3528
3529 #if FLAC__HAS_OGGcxx . . $ `./flac_config.h:42:9`!
3530 FLAC__StreamDecoderReadStatus read_callback_ogg_aspect_(const FLAC__StreamDecoder *decoder, FLAC__byte buffer[], size_t *bytes)
3531 {
3532 switch(FLAC__ogg_decoder_aspect_read_callback_wrapper(&decoder->protected_->ogg_decoder_aspect, buffer, bytes, read_callback_proxy_, decoder->private_->tell_callback, decoder, decoder->private_->client_data)) {
3533 case FLAC__OGG_DECODER_ASPECT_READ_STATUS_OK:
3534 return FLAC__STREAM_DECODER_READ_STATUS_CONTINUE;
3535 /* we don't really have a way to handle lost sync via read
3536 * callback so we'll let it pass and let the underlying
3537 * FLAC decoder catch the error
3538 */
3539 case FLAC__OGG_DECODER_ASPECT_READ_STATUS_LOST_SYNC:
3540 return FLAC__STREAM_DECODER_READ_STATUS_CONTINUE;
3541 case FLAC__OGG_DECODER_ASPECT_READ_STATUS_END_OF_STREAM:
3542 return FLAC__STREAM_DECODER_READ_STATUS_END_OF_STREAM;
3543 case FLAC__OGG_DECODER_ASPECT_READ_STATUS_END_OF_LINK:
3544 return FLAC__STREAM_DECODER_READ_STATUS_END_OF_LINK;
3545 case FLAC__OGG_DECODER_ASPECT_READ_STATUS_NOT_FLAC:
3546 case FLAC__OGG_DECODER_ASPECT_READ_STATUS_UNSUPPORTED_MAPPING_VERSION:
3547 case FLAC__OGG_DECODER_ASPECT_READ_STATUS_ABORT:
3548 case FLAC__OGG_DECODER_ASPECT_READ_STATUS_ERROR:
3549 return FLAC__STREAM_DECODER_READ_STATUS_ABORT;
3550 case FLAC__OGG_DECODER_ASPECT_READ_STATUS_MEMORY_ALLOCATION_ERROR:
3551 decoder->private_->ogg_decoder_aspect_allocation_failure = true;
3552 return FLAC__STREAM_DECODER_READ_STATUS_ABORT;
3553 default:
3554 FLAC__ASSERT(0);
3555 /* double protection */
3556 return FLAC__STREAM_DECODER_READ_STATUS_ABORT;
3557 }
3558 }
3559
3560 FLAC__OggDecoderAspectReadStatus read_callback_proxy_(const void *void_decoder, FLAC__byte buffer[], size_t *bytes, void *client_data)
3561 {
3562 FLAC__StreamDecoder *decoder = (FLAC__StreamDecoder*)void_decoder;
3563
3564 switch(decoder->private_->read_callback(decoder, buffer, bytes, client_data)) {
3565 case FLAC__STREAM_DECODER_READ_STATUS_CONTINUE:
3566 return FLAC__OGG_DECODER_ASPECT_READ_STATUS_OK;
3567 case FLAC__STREAM_DECODER_READ_STATUS_END_OF_STREAM:
3568 return FLAC__OGG_DECODER_ASPECT_READ_STATUS_END_OF_STREAM;
3569 case FLAC__STREAM_DECODER_READ_STATUS_ABORT:
3570 return FLAC__OGG_DECODER_ASPECT_READ_STATUS_ABORT;
3571 default:
3572 /* double protection: */
3573 FLAC__ASSERT(0);
3574 return FLAC__OGG_DECODER_ASPECT_READ_STATUS_ABORT;
3575 }
3576 }
3577 #endif
3578
3579 FLAC__StreamDecoderWriteStatuscxx . . $ FLAC__StreamDecoderWriteStatus# write_audio_frame_to_client_cxx . . $ write_audio_frame_to_client_(4162e1e0b33b291e).(FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder, const FLAC__Framecxx . . $ FLAC__Frame# *frame, const FLAC__int32cxx . . $ FLAC__int32# * const buffer[])
3580 {
3581 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->last_framecxx . . $ FLAC__StreamDecoderPrivate#last_frame. = *frame; /* save the frame */
3582 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->last_frame_is_setcxx . . $ FLAC__StreamDecoderPrivate#last_frame_is_set. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
3583 if(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->is_seekingcxx . . $ FLAC__StreamDecoderPrivate#is_seeking. && !decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->is_indexingcxx . . $ FLAC__StreamDecoderPrivate#is_indexing.) {
3584 FLAC__uint64cxx . . $ FLAC__uint64# this_frame_sample = frame->headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..numbercxx . . $ $anonymous_type_81a4853959168ec7_16#number..sample_numbercxx . . $ $anonymous_type_81a4853959168ec7_16#$anonymous_type_17#sample_number.;
3585 FLAC__uint64cxx . . $ FLAC__uint64# next_frame_sample = this_frame_sample + (FLAC__uint64cxx . . $ FLAC__uint64#)frame->headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..blocksizecxx . . $ $anonymous_type_81a4853959168ec7_16#blocksize.;
3586 FLAC__uint64cxx . . $ FLAC__uint64# target_sample = decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->target_samplecxx . . $ FLAC__StreamDecoderPrivate#target_sample.;
3587
3588 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(frame->header.number_type == FLAC__FRAME_NUMBER_TYPE_SAMPLE_NUMBER);
3589
3590 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->got_a_framecxx . . $ FLAC__StreamDecoderPrivate#got_a_frame. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
3591
3592 if(this_frame_sample <= target_sample && target_sample < next_frame_sample) { /* we hit our target frame */
3593 uint32_tcxx . . $ uint32_t# delta = (uint32_tcxx . . $ uint32_t#)(target_sample - this_frame_sample);
3594 /* kick out of seek mode */
3595 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->is_seekingcxx . . $ FLAC__StreamDecoderPrivate#is_seeking. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
3596 /* shift out the samples before target_sample */
3597 if(delta > 0) {
3598 uint32_tcxx . . $ uint32_t# channel;
3599 const FLAC__int32cxx . . $ FLAC__int32# *newbuffer[FLAC__MAX_CHANNELScxx . . $ `external/flac/flac_FLAC_format.h:106:9`!];
3600 for(channel = 0; channel < frame->headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..channelscxx . . $ $anonymous_type_81a4853959168ec7_16#channels.; channel++) {
3601 newbuffer[channel] = buffer[channel] + delta;
3602 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->last_framecxx . . $ FLAC__StreamDecoderPrivate#last_frame..subframescxx . . $ $anonymous_type_81a4853959168ec7_19#subframes.[channel].typecxx . . $ $anonymous_type_81a4853959168ec7_12#type. = FLAC__SUBFRAME_TYPE_VERBATIMcxx . . $ FLAC__SUBFRAME_TYPE_VERBATIM.;
3603 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->last_framecxx . . $ FLAC__StreamDecoderPrivate#last_frame..subframescxx . . $ $anonymous_type_81a4853959168ec7_19#subframes.[channel].datacxx . . $ $anonymous_type_81a4853959168ec7_12#data..verbatimcxx . . $ $anonymous_type_81a4853959168ec7_12#$anonymous_type_13#verbatim..data_typecxx . . $ $anonymous_type_81a4853959168ec7_8#data_type. = FLAC__VERBATIM_SUBFRAME_DATA_TYPE_INT32cxx . . $ FLAC__VERBATIM_SUBFRAME_DATA_TYPE_INT32.;
3604 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->last_framecxx . . $ FLAC__StreamDecoderPrivate#last_frame..subframescxx . . $ $anonymous_type_81a4853959168ec7_19#subframes.[channel].datacxx . . $ $anonymous_type_81a4853959168ec7_12#data..verbatimcxx . . $ $anonymous_type_81a4853959168ec7_12#$anonymous_type_13#verbatim..datacxx . . $ $anonymous_type_81a4853959168ec7_8#data..int32cxx . . $ $anonymous_type_81a4853959168ec7_8#$anonymous_type_9#int32. = newbuffer[channel];
3605 }
3606 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->last_framecxx . . $ FLAC__StreamDecoderPrivate#last_frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..blocksizecxx . . $ $anonymous_type_81a4853959168ec7_16#blocksize. -= delta;
3607 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->last_framecxx . . $ FLAC__StreamDecoderPrivate#last_frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..numbercxx . . $ $anonymous_type_81a4853959168ec7_16#number..sample_numbercxx . . $ $anonymous_type_81a4853959168ec7_16#$anonymous_type_17#sample_number. += (FLAC__uint64cxx . . $ FLAC__uint64#)delta;
3608 /* write the relevant samples */
3609 return decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->write_callbackcxx . . $ FLAC__StreamDecoderPrivate#write_callback.(decoder, &decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->last_framecxx . . $ FLAC__StreamDecoderPrivate#last_frame., newbuffer, decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->client_datacxx . . $ FLAC__StreamDecoderPrivate#client_data.);
3610 }
3611 else {
3612 /* write the relevant samples */
3613 return decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->write_callbackcxx . . $ FLAC__StreamDecoderPrivate#write_callback.(decoder, frame, buffer, decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->client_datacxx . . $ FLAC__StreamDecoderPrivate#client_data.);
3614 }
3615 }
3616 else {
3617 return FLAC__STREAM_DECODER_WRITE_STATUS_CONTINUEcxx . . $ FLAC__STREAM_DECODER_WRITE_STATUS_CONTINUE.;
3618 }
3619 }
3620 else if(!decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->is_indexingcxx . . $ FLAC__StreamDecoderPrivate#is_indexing.) {
3621 /*
3622 * If we never got STREAMINFO, turn off MD5 checking to save
3623 * cycles since we don't have a sum to compare to anyway
3624 */
3625 if(!decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->has_stream_infocxx . . $ FLAC__StreamDecoderPrivate#has_stream_info.)
3626 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->do_md5_checkingcxx . . $ FLAC__StreamDecoderPrivate#do_md5_checking. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
3627 if(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->do_md5_checkingcxx . . $ FLAC__StreamDecoderPrivate#do_md5_checking.) {
3628 if(!FLAC__MD5Accumulatecxx . . $ FLAC__MD5Accumulate(516ca82d0ee94d4).(&decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->md5contextcxx . . $ FLAC__StreamDecoderPrivate#md5context., buffer, frame->headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..channelscxx . . $ $anonymous_type_81a4853959168ec7_16#channels., frame->headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..blocksizecxx . . $ $anonymous_type_81a4853959168ec7_16#blocksize., (frame->headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..bits_per_samplecxx . . $ $anonymous_type_81a4853959168ec7_16#bits_per_sample.+7) / 8))
3629 return FLAC__STREAM_DECODER_WRITE_STATUS_ABORTcxx . . $ FLAC__STREAM_DECODER_WRITE_STATUS_ABORT.;
3630 }
3631 return decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->write_callbackcxx . . $ FLAC__StreamDecoderPrivate#write_callback.(decoder, frame, buffer, decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->client_datacxx . . $ FLAC__StreamDecoderPrivate#client_data.);
3632 }
3633 else { /* decoder->private_->is_indexing == true */
3634 return FLAC__STREAM_DECODER_WRITE_STATUS_CONTINUEcxx . . $ FLAC__STREAM_DECODER_WRITE_STATUS_CONTINUE.;
3635 }
3636 }
3637
3638 void send_error_to_client_cxx . . $ send_error_to_client_(cc791be6cdc6ea1d).(const FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder, FLAC__StreamDecoderErrorStatuscxx . . $ FLAC__StreamDecoderErrorStatus# status)
3639 {
3640 if(!decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->is_seekingcxx . . $ FLAC__StreamDecoderPrivate#is_seeking.) {
3641 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->error_has_been_sentcxx . . $ FLAC__StreamDecoderPrivate#error_has_been_sent. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
3642 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->error_callbackcxx . . $ FLAC__StreamDecoderPrivate#error_callback.(decoder, status, decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->client_datacxx . . $ FLAC__StreamDecoderPrivate#client_data.);
3643 }
3644 else if(status == FLAC__STREAM_DECODER_ERROR_STATUS_UNPARSEABLE_STREAMcxx . . $ FLAC__STREAM_DECODER_ERROR_STATUS_UNPARSEABLE_STREAM.)
3645 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->unparseable_frame_countcxx . . $ FLAC__StreamDecoderPrivate#unparseable_frame_count.++;
3646 }
3647
3648 FLAC__boolcxx . . $ FLAC__bool# seek_to_absolute_sample_cxx . . $ seek_to_absolute_sample_(a5b871fcbd906fe3).(FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder, FLAC__uint64cxx . . $ FLAC__uint64# stream_length, FLAC__uint64cxx . . $ FLAC__uint64# target_sample)
3649 {
3650 FLAC__uint64cxx . . $ FLAC__uint64# first_frame_offset = decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->first_frame_offsetcxx . . $ FLAC__StreamDecoderPrivate#first_frame_offset., lower_bound, upper_bound, lower_bound_sample, upper_bound_sample, this_frame_sample;
3651 FLAC__int64cxx . . $ FLAC__int64# pos = -1;
3652 int i;
3653 uint32_tcxx . . $ uint32_t# approx_bytes_per_frame;
3654 FLAC__boolcxx . . $ FLAC__bool# first_seek = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!, seek_from_lower_bound = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
3655 const FLAC__uint64cxx . . $ FLAC__uint64# total_samples = FLAC__stream_decoder_get_total_samplescxx . . $ FLAC__stream_decoder_get_total_samples(c220651b448e368d).(decoder);
3656 const uint32_tcxx . . $ uint32_t# min_blocksize = decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->stream_infocxx . . $ FLAC__StreamDecoderPrivate#stream_info..datacxx . . $ FLAC__StreamMetadata#data..stream_infocxx . . $ FLAC__StreamMetadata#$anonymous_type_34#stream_info..min_blocksizecxx . . $ $anonymous_type_81a4853959168ec7_21#min_blocksize.;
3657 const uint32_tcxx . . $ uint32_t# max_blocksize = decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->stream_infocxx . . $ FLAC__StreamDecoderPrivate#stream_info..datacxx . . $ FLAC__StreamMetadata#data..stream_infocxx . . $ FLAC__StreamMetadata#$anonymous_type_34#stream_info..max_blocksizecxx . . $ $anonymous_type_81a4853959168ec7_21#max_blocksize.;
3658 const uint32_tcxx . . $ uint32_t# max_framesize = decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->stream_infocxx . . $ FLAC__StreamDecoderPrivate#stream_info..datacxx . . $ FLAC__StreamMetadata#data..stream_infocxx . . $ FLAC__StreamMetadata#$anonymous_type_34#stream_info..max_framesizecxx . . $ $anonymous_type_81a4853959168ec7_21#max_framesize.;
3659 const uint32_tcxx . . $ uint32_t# min_framesize = decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->stream_infocxx . . $ FLAC__StreamDecoderPrivate#stream_info..datacxx . . $ FLAC__StreamMetadata#data..stream_infocxx . . $ FLAC__StreamMetadata#$anonymous_type_34#stream_info..min_framesizecxx . . $ $anonymous_type_81a4853959168ec7_21#min_framesize.;
3660 /* take these from the current frame in case they've changed mid-stream */
3661 uint32_tcxx . . $ uint32_t# channels = FLAC__stream_decoder_get_channelscxx . . $ FLAC__stream_decoder_get_channels(517ab728c8f24dd5).(decoder);
3662 uint32_tcxx . . $ uint32_t# bps = FLAC__stream_decoder_get_bits_per_samplecxx . . $ FLAC__stream_decoder_get_bits_per_sample(517ab728c8f24dd5).(decoder);
3663 const FLAC__StreamMetadata_SeekTablecxx . . $ FLAC__StreamMetadata_SeekTable# *seek_table = decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->has_seek_tablecxx . . $ FLAC__StreamDecoderPrivate#has_seek_table.? &decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->seek_tablecxx . . $ FLAC__StreamDecoderPrivate#seek_table..datacxx . . $ FLAC__StreamMetadata#data..seek_tablecxx . . $ FLAC__StreamMetadata#$anonymous_type_34#seek_table. : 0;
3664
3665 /* use values from stream info if we didn't decode a frame */
3666 if(channels == 0)
3667 channels = decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->stream_infocxx . . $ FLAC__StreamDecoderPrivate#stream_info..datacxx . . $ FLAC__StreamMetadata#data..stream_infocxx . . $ FLAC__StreamMetadata#$anonymous_type_34#stream_info..channelscxx . . $ $anonymous_type_81a4853959168ec7_21#channels.;
3668 if(bps == 0)
3669 bps = decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->stream_infocxx . . $ FLAC__StreamDecoderPrivate#stream_info..datacxx . . $ FLAC__StreamMetadata#data..stream_infocxx . . $ FLAC__StreamMetadata#$anonymous_type_34#stream_info..bits_per_samplecxx . . $ $anonymous_type_81a4853959168ec7_21#bits_per_sample.;
3670
3671 /* we are just guessing here */
3672 if(max_framesize > 0)
3673 approx_bytes_per_frame = (max_framesize + min_framesize) / 2 + 1;
3674 /*
3675 * Check if it's a known fixed-blocksize stream. Note that though
3676 * the spec doesn't allow zeroes in the STREAMINFO block, we may
3677 * never get a STREAMINFO block when decoding so the value of
3678 * min_blocksize might be zero.
3679 */
3680 else if(min_blocksize == max_blocksize && min_blocksize > 0) {
3681 /* note there are no () around 'bps/8' to keep precision up since it's an integer calculation */
3682 approx_bytes_per_frame = min_blocksize * channels * bps/8 + 64;
3683 }
3684 else
3685 approx_bytes_per_frame = 4096 * channels * bps/8 + 64;
3686
3687 /*
3688 * First, we set an upper and lower bound on where in the
3689 * stream we will search. For now we take the current position
3690 * as one bound and, depending on where the target position lies,
3691 * the beginning of the first frame or the end of the stream as
3692 * the other bound.
3693 */
3694 lower_bound = first_frame_offset;
3695 lower_bound_sample = 0;
3696 upper_bound = stream_length;
3697 upper_bound_sample = total_samples > 0 ? total_samples : target_sample /*estimate it*/;
3698
3699 if(decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. == FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNCcxx . . $ FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC. &&
3700 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->samples_decodedcxx . . $ FLAC__StreamDecoderPrivate#samples_decoded. != 0) {
3701 if(target_sample < decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->samples_decodedcxx . . $ FLAC__StreamDecoderPrivate#samples_decoded.) {
3702 if(FLAC__stream_decoder_get_decode_positioncxx . . $ FLAC__stream_decoder_get_decode_position(eaa4447c58feeb10).(decoder, &upper_bound))
3703 upper_bound_sample = decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->samples_decodedcxx . . $ FLAC__StreamDecoderPrivate#samples_decoded.;
3704 } else {
3705 if(FLAC__stream_decoder_get_decode_positioncxx . . $ FLAC__stream_decoder_get_decode_position(eaa4447c58feeb10).(decoder, &lower_bound))
3706 lower_bound_sample = decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->samples_decodedcxx . . $ FLAC__StreamDecoderPrivate#samples_decoded.;
3707 }
3708 }
3709
3710 /*
3711 * Now we refine the bounds if we have a seektable with
3712 * suitable points. Note that according to the spec they
3713 * must be ordered by ascending sample number.
3714 *
3715 * Note: to protect against invalid seek tables we will ignore points
3716 * that have frame_samples==0 or sample_number>=total_samples. Also,
3717 * because math is limited to 64-bit ints, seekpoints with an offset
3718 * larger than 2^63 (8 exbibyte) are rejected.
3719 */
3720 if(seek_table) {
3721 FLAC__uint64cxx . . $ FLAC__uint64# new_lower_bound = lower_bound;
3722 FLAC__uint64cxx . . $ FLAC__uint64# new_upper_bound = upper_bound;
3723 FLAC__uint64cxx . . $ FLAC__uint64# new_lower_bound_sample = lower_bound_sample;
3724 FLAC__uint64cxx . . $ FLAC__uint64# new_upper_bound_sample = upper_bound_sample;
3725
3726 /* find the closest seek point <= target_sample, if it exists */
3727 for(i = (int)seek_table->num_pointscxx . . $ $anonymous_type_81a4853959168ec7_25#num_points. - 1; i >= 0; i--) {
3728 if(
3729 seek_table->pointscxx . . $ $anonymous_type_81a4853959168ec7_25#points.[i].sample_numbercxx . . $ $anonymous_type_81a4853959168ec7_24#sample_number. != FLAC__STREAM_METADATA_SEEKPOINT_PLACEHOLDERcxx . . $ FLAC__STREAM_METADATA_SEEKPOINT_PLACEHOLDER. &&
3730 seek_table->pointscxx . . $ $anonymous_type_81a4853959168ec7_25#points.[i].frame_samplescxx . . $ $anonymous_type_81a4853959168ec7_24#frame_samples. > 0 && /* defense against bad seekpoints */
3731 (total_samples <= 0 || seek_table->pointscxx . . $ $anonymous_type_81a4853959168ec7_25#points.[i].sample_numbercxx . . $ $anonymous_type_81a4853959168ec7_24#sample_number. < total_samples) && /* defense against bad seekpoints */
3732 seek_table->pointscxx . . $ $anonymous_type_81a4853959168ec7_25#points.[i].sample_numbercxx . . $ $anonymous_type_81a4853959168ec7_24#sample_number. <= target_sample
3733 )
3734 break;
3735 }
3736 if(i >= 0) { /* i.e. we found a suitable seek point... */
3737 new_lower_bound = first_frame_offset + seek_table->pointscxx . . $ $anonymous_type_81a4853959168ec7_25#points.[i].stream_offsetcxx . . $ $anonymous_type_81a4853959168ec7_24#stream_offset.;
3738 new_lower_bound_sample = seek_table->pointscxx . . $ $anonymous_type_81a4853959168ec7_25#points.[i].sample_numbercxx . . $ $anonymous_type_81a4853959168ec7_24#sample_number.;
3739 }
3740
3741 /* find the closest seek point > target_sample, if it exists */
3742 for(i = 0; i < (int)seek_table->num_pointscxx . . $ $anonymous_type_81a4853959168ec7_25#num_points.; i++) {
3743 if(
3744 seek_table->pointscxx . . $ $anonymous_type_81a4853959168ec7_25#points.[i].sample_numbercxx . . $ $anonymous_type_81a4853959168ec7_24#sample_number. != FLAC__STREAM_METADATA_SEEKPOINT_PLACEHOLDERcxx . . $ FLAC__STREAM_METADATA_SEEKPOINT_PLACEHOLDER. &&
3745 seek_table->pointscxx . . $ $anonymous_type_81a4853959168ec7_25#points.[i].frame_samplescxx . . $ $anonymous_type_81a4853959168ec7_24#frame_samples. > 0 && /* defense against bad seekpoints */
3746 (total_samples <= 0 || seek_table->pointscxx . . $ $anonymous_type_81a4853959168ec7_25#points.[i].sample_numbercxx . . $ $anonymous_type_81a4853959168ec7_24#sample_number. < total_samples) && /* defense against bad seekpoints */
3747 seek_table->pointscxx . . $ $anonymous_type_81a4853959168ec7_25#points.[i].sample_numbercxx . . $ $anonymous_type_81a4853959168ec7_24#sample_number. > target_sample
3748 )
3749 break;
3750 }
3751 if(i < (int)seek_table->num_pointscxx . . $ $anonymous_type_81a4853959168ec7_25#num_points.) { /* i.e. we found a suitable seek point... */
3752 new_upper_bound = first_frame_offset + seek_table->pointscxx . . $ $anonymous_type_81a4853959168ec7_25#points.[i].stream_offsetcxx . . $ $anonymous_type_81a4853959168ec7_24#stream_offset.;
3753 new_upper_bound_sample = seek_table->pointscxx . . $ $anonymous_type_81a4853959168ec7_25#points.[i].sample_numbercxx . . $ $anonymous_type_81a4853959168ec7_24#sample_number.;
3754 }
3755 /* final protection against unsorted seek tables; keep original values if bogus */
3756 if(new_upper_bound >= new_lower_bound) {
3757 lower_bound = new_lower_bound;
3758 upper_bound = new_upper_bound;
3759 lower_bound_sample = new_lower_bound_sample;
3760 upper_bound_sample = new_upper_bound_sample;
3761 }
3762 }
3763
3764 #ifndef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
3765 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(upper_bound_sample >= lower_bound_sample);
3766 #endif
3767 /* there are 3 insidious ways that the following equality occurs, which
3768 * we need to fix:
3769 * 1) total_samples is 0 (unknown) and target_sample is 0
3770 * 2) total_samples is 0 (unknown) and target_sample happens to be
3771 * exactly equal to the last seek point in the seek table; this
3772 * means there is no seek point above it, and upper_bound_samples
3773 * remains equal to the estimate (of target_samples) we made above
3774 * in either case it does not hurt to move upper_bound_sample up by 1
3775 * 3) the file is corrupt
3776 */
3777 if(upper_bound_sample == lower_bound_sample) {
3778 if(total_samples == 0)
3779 upper_bound_sample++;
3780 else {
3781 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. = FLAC__STREAM_DECODER_SEEK_ERRORcxx . . $ FLAC__STREAM_DECODER_SEEK_ERROR.;
3782 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
3783 }
3784 }
3785
3786 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->target_samplecxx . . $ FLAC__StreamDecoderPrivate#target_sample. = target_sample;
3787 while(1) {
3788 /* check whether decoder is still valid so bad state isn't overwritten
3789 * with seek error */
3790 if(decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. == FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERRORcxx . . $ FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR. ||
3791 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. == FLAC__STREAM_DECODER_ABORTEDcxx . . $ FLAC__STREAM_DECODER_ABORTED.)
3792 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
3793 /* check if the bounds are still ok */
3794 if (lower_bound_sample >= upper_bound_sample ||
3795 lower_bound > upper_bound ||
3796 upper_bound >= INT64_MAXcxx . . $ `<external>/3415975807581488833/stdint.h:113:10`! ||
3797 target_sample > upper_bound_sample) {
3798 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. = FLAC__STREAM_DECODER_SEEK_ERRORcxx . . $ FLAC__STREAM_DECODER_SEEK_ERROR.;
3799 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
3800 }
3801 if(seek_from_lower_bound) {
3802 pos = lower_bound;
3803 }
3804 else {
3805 #ifndef FLAC__INTEGER_ONLY_LIBRARY
3806 pos = (FLAC__int64cxx . . $ FLAC__int64#)lower_bound + (FLAC__int64cxx . . $ FLAC__int64#)((double)(target_sample - lower_bound_sample) / (double)(upper_bound_sample - lower_bound_sample) * (double)(upper_bound - lower_bound)) - approx_bytes_per_frame;
3807 #else
3808 /* a little less accurate: */
3809 if(upper_bound - lower_bound < 0xffffffff)
3810 pos = (FLAC__int64)lower_bound + (FLAC__int64)(((target_sample - lower_bound_sample) * (upper_bound - lower_bound)) / (upper_bound_sample - lower_bound_sample)) - approx_bytes_per_frame;
3811 else { /* @@@ WATCHOUT, ~2TB limit */
3812 FLAC__uint64 ratio = (1<<16) / (upper_bound_sample - lower_bound_sample);
3813 pos = (FLAC__int64)lower_bound + (FLAC__int64)((((target_sample - lower_bound_sample)>>8) * ((upper_bound - lower_bound)>>8) * ratio)) - approx_bytes_per_frame;
3814 }
3815 #endif
3816 }
3817 if(pos >= (FLAC__int64cxx . . $ FLAC__int64#)upper_bound)
3818 pos = (FLAC__int64cxx . . $ FLAC__int64#)upper_bound - 1;
3819 if(pos < (FLAC__int64cxx . . $ FLAC__int64#)lower_bound)
3820 pos = (FLAC__int64cxx . . $ FLAC__int64#)lower_bound;
3821 if(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->seek_callbackcxx . . $ FLAC__StreamDecoderPrivate#seek_callback.(decoder, (FLAC__uint64cxx . . $ FLAC__uint64#)pos, decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->client_datacxx . . $ FLAC__StreamDecoderPrivate#client_data.) != FLAC__STREAM_DECODER_SEEK_STATUS_OKcxx . . $ FLAC__STREAM_DECODER_SEEK_STATUS_OK.) {
3822 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. = FLAC__STREAM_DECODER_SEEK_ERRORcxx . . $ FLAC__STREAM_DECODER_SEEK_ERROR.;
3823 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
3824 }
3825 if(!FLAC__stream_decoder_flushcxx . . $ FLAC__stream_decoder_flush(d92048749c4f1284).(decoder)) {
3826 /* above call sets the state for us */
3827 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
3828 }
3829 /* Now we need to get a frame. First we need to reset our
3830 * unparseable_frame_count; if we get too many unparseable
3831 * frames in a row, the read callback will return
3832 * FLAC__STREAM_DECODER_READ_STATUS_ABORT, causing
3833 * FLAC__stream_decoder_process_single() to return false.
3834 */
3835 decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->unparseable_frame_countcxx . . $ FLAC__StreamDecoderPrivate#unparseable_frame_count. = 0;
3836 if(!FLAC__stream_decoder_process_singlecxx . . $ FLAC__stream_decoder_process_single(d92048749c4f1284).(decoder) || decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. == FLAC__STREAM_DECODER_ABORTEDcxx . . $ FLAC__STREAM_DECODER_ABORTED. || 0 == decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->samples_decodedcxx . . $ FLAC__StreamDecoderPrivate#samples_decoded.) {
3837 /* No frame could be decoded */
3838 if(decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. != FLAC__STREAM_DECODER_ABORTEDcxx . . $ FLAC__STREAM_DECODER_ABORTED. && decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->eof_callbackcxx . . $ FLAC__StreamDecoderPrivate#eof_callback.(decoder, decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->client_datacxx . . $ FLAC__StreamDecoderPrivate#client_data.) && !seek_from_lower_bound){
3839 /* decoder has hit end of stream while processing corrupt
3840 * frame. To remedy this, try decoding a frame at the lower
3841 * bound so the seek after that hopefully ends up somewhere
3842 * else */
3843 seek_from_lower_bound = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
3844 continue;
3845 }
3846 else {
3847 if(decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. != FLAC__STREAM_DECODER_ABORTEDcxx . . $ FLAC__STREAM_DECODER_ABORTED. && decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. != FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERRORcxx . . $ FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR.)
3848 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. = FLAC__STREAM_DECODER_SEEK_ERRORcxx . . $ FLAC__STREAM_DECODER_SEEK_ERROR.;
3849 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
3850 }
3851 }
3852 seek_from_lower_bound = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
3853
3854 /* our write callback will change the state when it gets to the target frame */
3855 /* actually, we could have got_a_frame if our decoder is at FLAC__STREAM_DECODER_END_OF_STREAM so we need to check for that also */
3856 if(!decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->is_seekingcxx . . $ FLAC__StreamDecoderPrivate#is_seeking.)
3857 break;
3858
3859 FLAC__ASSERTcxx . . $ `external/flac/flac_FLAC_assert.h:43:9`!(decoder->private_->last_frame.header.number_type == FLAC__FRAME_NUMBER_TYPE_SAMPLE_NUMBER);
3860 this_frame_sample = decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->last_framecxx . . $ FLAC__StreamDecoderPrivate#last_frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..numbercxx . . $ $anonymous_type_81a4853959168ec7_16#number..sample_numbercxx . . $ $anonymous_type_81a4853959168ec7_16#$anonymous_type_17#sample_number.;
3861
3862 if(this_frame_sample + decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->last_framecxx . . $ FLAC__StreamDecoderPrivate#last_frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..blocksizecxx . . $ $anonymous_type_81a4853959168ec7_16#blocksize. >= upper_bound_sample && !first_seek) {
3863 if (pos == (FLAC__int64cxx . . $ FLAC__int64#)lower_bound) {
3864 /* can't move back any more than the first frame, something is fatally wrong */
3865 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. = FLAC__STREAM_DECODER_SEEK_ERRORcxx . . $ FLAC__STREAM_DECODER_SEEK_ERROR.;
3866 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
3867 }
3868 /* our last move backwards wasn't big enough, try again */
3869 approx_bytes_per_frame = approx_bytes_per_frame? approx_bytes_per_frame * 2 : 16;
3870 continue;
3871 }
3872 /* allow one seek over upper bound, so we can get a correct upper_bound_sample for streams with unknown total_samples */
3873 first_seek = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
3874
3875 /* make sure we are not seeking in corrupted stream */
3876 if (this_frame_sample < lower_bound_sample) {
3877 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. = FLAC__STREAM_DECODER_SEEK_ERRORcxx . . $ FLAC__STREAM_DECODER_SEEK_ERROR.;
3878 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
3879 }
3880
3881 /* we need to narrow the search */
3882 if(target_sample < this_frame_sample) {
3883 upper_bound_sample = this_frame_sample + decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->last_framecxx . . $ FLAC__StreamDecoderPrivate#last_frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..blocksizecxx . . $ $anonymous_type_81a4853959168ec7_16#blocksize.;
3884 /*@@@@@@ what will decode position be if at end of stream? */
3885 if(!FLAC__stream_decoder_get_decode_positioncxx . . $ FLAC__stream_decoder_get_decode_position(eaa4447c58feeb10).(decoder, &upper_bound)) {
3886 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. = FLAC__STREAM_DECODER_SEEK_ERRORcxx . . $ FLAC__STREAM_DECODER_SEEK_ERROR.;
3887 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
3888 }
3889 approx_bytes_per_frame = (uint32_tcxx . . $ uint32_t#)(2 * (upper_bound - pos) / 3 + 16);
3890 }
3891 else { /* target_sample >= this_frame_sample + this frame's blocksize */
3892 lower_bound_sample = this_frame_sample + decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->last_framecxx . . $ FLAC__StreamDecoderPrivate#last_frame..headercxx . . $ $anonymous_type_81a4853959168ec7_19#header..blocksizecxx . . $ $anonymous_type_81a4853959168ec7_16#blocksize.;
3893 if(!FLAC__stream_decoder_get_decode_positioncxx . . $ FLAC__stream_decoder_get_decode_position(eaa4447c58feeb10).(decoder, &lower_bound)) {
3894 decoder->protected_cxx . . $ FLAC__StreamDecoder#protected_.->statecxx . . $ FLAC__StreamDecoderProtected#state. = FLAC__STREAM_DECODER_SEEK_ERRORcxx . . $ FLAC__STREAM_DECODER_SEEK_ERROR.;
3895 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
3896 }
3897 approx_bytes_per_frame = (uint32_tcxx . . $ uint32_t#)(2 * (lower_bound - pos) / 3 + 16);
3898 }
3899 }
3900
3901 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
3902 }
3903
3904 #if FLAC__HAS_OGGcxx . . $ `./flac_config.h:42:9`!
3905 FLAC__bool seek_to_absolute_sample_ogg_(FLAC__StreamDecoder *decoder, FLAC__uint64 stream_length, FLAC__uint64 target_sample)
3906 {
3907 FLAC__uint64 left_pos = 0, right_pos = stream_length;
3908 FLAC__uint64 left_sample = 0, right_sample = 0;
3909 FLAC__uint64 this_frame_sample = (FLAC__uint64)0 - 1;
3910 FLAC__uint64 pos = 0; /* only initialized to avoid compiler warning */
3911 FLAC__bool did_a_seek;
3912 FLAC__OggDecoderAspect_TargetLink *target_link;
3913 uint32_t current_linknumber = decoder->protected_->ogg_decoder_aspect.current_linknumber;
3914 uint32_t iteration = 0;
3915
3916 /* In the first iterations, we will calculate the target byte position
3917 * by the distance from the target sample to left_sample and
3918 * right_sample (let's call it "proportional search"). After that, we
3919 * will switch to binary search.
3920 */
3921 uint32_t BINARY_SEARCH_AFTER_ITERATION = 2;
3922
3923 /* We will switch to a linear search once our current sample is less
3924 * than this number of samples ahead of the target sample
3925 */
3926 static const FLAC__uint64 LINEAR_SEARCH_WITHIN_SAMPLES = FLAC__MAX_BLOCK_SIZE * 2;
3927
3928 if(FLAC__ogg_decoder_aspect_get_decode_chained_stream(&decoder->protected_->ogg_decoder_aspect)) {
3929 /* Check whether target sample is contained by indexed links.
3930 * If it is not keep moving forward until found */
3931 decoder->private_->is_indexing = true;
3932 while(NULL == (target_link = FLAC__ogg_decoder_aspect_get_target_link(&decoder->protected_->ogg_decoder_aspect, target_sample))) {
3933 FLAC__OggDecoderAspectReadStatus status;
3934 if(decoder->protected_->state == FLAC__STREAM_DECODER_END_OF_STREAM ||
3935 decoder->protected_->state == FLAC__STREAM_DECODER_OGG_ERROR ||
3936 decoder->protected_->state == FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR ||
3937 decoder->protected_->state == FLAC__STREAM_DECODER_ABORTED) {
3938 /* Target sample is not contained in stream or other error */
3939 decoder->private_->is_indexing = false;
3940 decoder->protected_->state = FLAC__STREAM_DECODER_SEEK_ERROR;
3941 return false;
3942 }
3943 status = FLAC__ogg_decoder_aspect_skip_link(&decoder->protected_->ogg_decoder_aspect, read_callback_proxy_, decoder->private_->seek_callback, decoder->private_->tell_callback, decoder->private_->length_callback, decoder, decoder->private_->client_data);
3944 if(status == FLAC__OGG_DECODER_ASPECT_READ_STATUS_END_OF_STREAM)
3945 decoder->protected_->state = FLAC__STREAM_DECODER_END_OF_STREAM;
3946 else if(status != FLAC__OGG_DECODER_ASPECT_READ_STATUS_OK) {
3947 decoder->protected_->state = FLAC__STREAM_DECODER_SEEK_ERROR;
3948 return false;
3949 }
3950 }
3951 decoder->private_->is_indexing = false;
3952 /* Target link found, send metadata if necessary */
3953 FLAC__ogg_decoder_aspect_set_seek_parameters(&decoder->protected_->ogg_decoder_aspect, target_link);
3954 if(target_link->linknumber != current_linknumber) {
3955 if(decoder->private_->seek_callback((FLAC__StreamDecoder*)decoder, (FLAC__uint64)target_link->start_byte, decoder->private_->client_data) != FLAC__STREAM_DECODER_SEEK_STATUS_OK) {
3956 decoder->protected_->state = FLAC__STREAM_DECODER_SEEK_ERROR;
3957 return false;
3958 }
3959 if(!FLAC__stream_decoder_flush(decoder)) {
3960 /* above call sets the state for us */
3961 return false;
3962 }
3963 decoder->protected_->state = FLAC__STREAM_DECODER_SEARCH_FOR_METADATA;
3964 decoder->private_->is_seeking = false;
3965 if(!FLAC__stream_decoder_process_until_end_of_metadata(decoder)) {
3966 decoder->protected_->state = FLAC__STREAM_DECODER_SEEK_ERROR;
3967 return false;
3968 }
3969 decoder->private_->is_seeking = true;
3970 }
3971 /* set boundaries */
3972 left_pos = target_link->start_byte;
3973 left_sample = 0;
3974 right_pos = target_link->end_byte;
3975 right_sample = target_link->samples_this_link;
3976 target_sample -= target_link->samples_in_preceding_links;
3977 }
3978 else {
3979 right_sample = FLAC__stream_decoder_get_total_samples(decoder);
3980
3981 /* If the total number of samples is unknown, use a large value, and
3982 * force binary search immediately.
3983 */
3984 if(right_sample == 0) {
3985 right_sample = (FLAC__uint64)(-1);
3986 BINARY_SEARCH_AFTER_ITERATION = 0;
3987 }
3988 }
3989
3990 decoder->private_->target_sample = target_sample;
3991 for( ; ; iteration++) {
3992 /* Do sanity checks on bounds */
3993 if(right_pos <= left_pos || right_pos - left_pos < 9) {
3994 /* FLAC frame is at least 9 byte in size */
3995 decoder->protected_->state = FLAC__STREAM_DECODER_SEEK_ERROR;
3996 return false;
3997 }
3998 if (iteration == 0 || this_frame_sample > target_sample || target_sample - this_frame_sample > LINEAR_SEARCH_WITHIN_SAMPLES) {
3999 if (iteration >= BINARY_SEARCH_AFTER_ITERATION) {
4000 pos = (right_pos + left_pos) / 2;
4001 }
4002 else {
4003 #ifndef FLAC__INTEGER_ONLY_LIBRARY
4004 pos = (FLAC__uint64)((double)(target_sample - left_sample) / (double)(right_sample - left_sample) * (double)(right_pos - left_pos)) + left_pos;
4005 #else
4006 /* a little less accurate: */
4007 if ((target_sample-left_sample <= 0xffffffff) && (right_pos-left_pos <= 0xffffffff))
4008 pos = (FLAC__int64)(((target_sample-left_sample) * (right_pos-left_pos)) / (right_sample-left_sample)) + left_pos;
4009 else /* @@@ WATCHOUT, ~2TB limit */
4010 pos = (FLAC__int64)((((target_sample-left_sample)>>8) * ((right_pos-left_pos)>>8)) / ((right_sample-left_sample)>>16)) + left_pos;
4011 #endif
4012 /* @@@ TODO: might want to limit pos to some distance
4013 * before EOF, to make sure we land before the last frame,
4014 * thereby getting a this_frame_sample and so having a better
4015 * estimate.
4016 */
4017 }
4018
4019 /* physical seek */
4020 if(decoder->private_->seek_callback((FLAC__StreamDecoder*)decoder, (FLAC__uint64)pos, decoder->private_->client_data) != FLAC__STREAM_DECODER_SEEK_STATUS_OK) {
4021 decoder->protected_->state = FLAC__STREAM_DECODER_SEEK_ERROR;
4022 return false;
4023 }
4024 if(!FLAC__stream_decoder_flush(decoder)) {
4025 /* above call sets the state for us */
4026 return false;
4027 }
4028 did_a_seek = true;
4029 }
4030 else
4031 did_a_seek = false;
4032
4033 decoder->private_->got_a_frame = false;
4034 if(!FLAC__stream_decoder_process_single(decoder) ||
4035 decoder->protected_->state == FLAC__STREAM_DECODER_ABORTED) {
4036 if(decoder->protected_->state != FLAC__STREAM_DECODER_ABORTED && decoder->protected_->state != FLAC__STREAM_DECODER_MEMORY_ALLOCATION_ERROR)
4037 decoder->protected_->state = FLAC__STREAM_DECODER_SEEK_ERROR;
4038 return false;
4039 }
4040 if(!decoder->private_->got_a_frame) {
4041 if(did_a_seek) {
4042 /* this can happen if we seek to a point after the last frame; we drop
4043 * to binary search right away in this case to avoid any wasted
4044 * iterations of proportional search.
4045 */
4046 right_pos = pos;
4047 BINARY_SEARCH_AFTER_ITERATION = 0;
4048 }
4049 else {
4050 /* this can probably only happen if total_samples is unknown and the
4051 * target_sample is past the end of the stream
4052 */
4053 decoder->protected_->state = FLAC__STREAM_DECODER_SEEK_ERROR;
4054 return false;
4055 }
4056 }
4057 /* our write callback will change the state when it gets to the target frame */
4058 else if(!decoder->private_->is_seeking) {
4059 break;
4060 }
4061 else {
4062 this_frame_sample = decoder->private_->last_frame.header.number.sample_number;
4063 FLAC__ASSERT(decoder->private_->last_frame.header.number_type == FLAC__FRAME_NUMBER_TYPE_SAMPLE_NUMBER);
4064
4065 if (did_a_seek) {
4066 if (this_frame_sample <= target_sample) {
4067 /* The 'equal' case should not happen, since
4068 * FLAC__stream_decoder_process_single()
4069 * should recognize that it has hit the
4070 * target sample and we would exit through
4071 * the 'break' above.
4072 */
4073 FLAC__ASSERT(this_frame_sample != target_sample);
4074
4075 left_sample = this_frame_sample;
4076 /* sanity check to avoid infinite loop */
4077 if (left_pos == pos) {
4078 decoder->protected_->state = FLAC__STREAM_DECODER_SEEK_ERROR;
4079 return false;
4080 }
4081 left_pos = pos;
4082 }
4083 else {
4084 right_sample = this_frame_sample;
4085 /* sanity check to avoid infinite loop */
4086 if (right_pos == pos) {
4087 decoder->protected_->state = FLAC__STREAM_DECODER_SEEK_ERROR;
4088 return false;
4089 }
4090 right_pos = pos;
4091 }
4092 }
4093 }
4094 }
4095 /* Tell ogg decoder aspect that seeking is done */
4096 FLAC__ogg_decoder_aspect_set_seek_parameters(&decoder->protected_->ogg_decoder_aspect, 0);
4097 return true;
4098 }
4099 #endif
4100
4101 FLAC__StreamDecoderReadStatuscxx . . $ FLAC__StreamDecoderReadStatus# file_read_callback_cxx . . $ file_read_callback_(96f630744ee4379c).(const FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder, FLAC__bytecxx . . $ FLAC__byte# buffer[], size_t *bytes, void *client_data)
4102 {
4103 (void)client_data;
4104
4105 if(*bytes > 0) {
4106 *bytes = freadcxx . . $ fread(738fc8ac1d711e58).(buffer, sizeof(FLAC__bytecxx . . $ FLAC__byte#), *bytes, decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->filecxx . . $ FLAC__StreamDecoderPrivate#file.);
4107 if(ferrorcxx . . $ ferror(89bc1efcdac0ca22).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->filecxx . . $ FLAC__StreamDecoderPrivate#file.))
4108 return FLAC__STREAM_DECODER_READ_STATUS_ABORTcxx . . $ FLAC__STREAM_DECODER_READ_STATUS_ABORT.;
4109 else if(*bytes == 0)
4110 return FLAC__STREAM_DECODER_READ_STATUS_END_OF_STREAMcxx . . $ FLAC__STREAM_DECODER_READ_STATUS_END_OF_STREAM.;
4111 else
4112 return FLAC__STREAM_DECODER_READ_STATUS_CONTINUEcxx . . $ FLAC__STREAM_DECODER_READ_STATUS_CONTINUE.;
4113 }
4114 else
4115 return FLAC__STREAM_DECODER_READ_STATUS_ABORTcxx . . $ FLAC__STREAM_DECODER_READ_STATUS_ABORT.; /* abort to avoid a deadlock */
4116 }
4117
4118 FLAC__StreamDecoderSeekStatuscxx . . $ FLAC__StreamDecoderSeekStatus# file_seek_callback_cxx . . $ file_seek_callback_(9c12e157eefe73f4).(const FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder, FLAC__uint64cxx . . $ FLAC__uint64# absolute_byte_offset, void *client_data)
4119 {
4120 (void)client_data;
4121
4122 if(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->filecxx . . $ FLAC__StreamDecoderPrivate#file. == stdincxx . . $ `<external>/232824719582829767/stdio.h:153:9`!)
4123 return FLAC__STREAM_DECODER_SEEK_STATUS_UNSUPPORTEDcxx . . $ FLAC__STREAM_DECODER_SEEK_STATUS_UNSUPPORTED.;
4124 else if(fseekocxx . . $ fseeko(543fae30d249f6b1).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->filecxx . . $ FLAC__StreamDecoderPrivate#file., (FLAC__off_tcxx . . $ `external/flac/flac_share_compat.h:72:9`!)absolute_byte_offset, SEEK_SETcxx . . $ `<external>/14710646456994434043/fcntl.h:137:10`!) < 0)
4125 return FLAC__STREAM_DECODER_SEEK_STATUS_ERRORcxx . . $ FLAC__STREAM_DECODER_SEEK_STATUS_ERROR.;
4126 else
4127 return FLAC__STREAM_DECODER_SEEK_STATUS_OKcxx . . $ FLAC__STREAM_DECODER_SEEK_STATUS_OK.;
4128 }
4129
4130 FLAC__StreamDecoderTellStatuscxx . . $ FLAC__StreamDecoderTellStatus# file_tell_callback_cxx . . $ file_tell_callback_(7bc2151b1e5dfc77).(const FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder, FLAC__uint64cxx . . $ FLAC__uint64# *absolute_byte_offset, void *client_data)
4131 {
4132 FLAC__off_tcxx . . $ `external/flac/flac_share_compat.h:72:9`! pos;
4133 (void)client_data;
4134
4135 if(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->filecxx . . $ FLAC__StreamDecoderPrivate#file. == stdincxx . . $ `<external>/232824719582829767/stdio.h:153:9`!)
4136 return FLAC__STREAM_DECODER_TELL_STATUS_UNSUPPORTEDcxx . . $ FLAC__STREAM_DECODER_TELL_STATUS_UNSUPPORTED.;
4137 else if((pos = ftellocxx . . $ ftello(1dcafcd8ef4c6e6c).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->filecxx . . $ FLAC__StreamDecoderPrivate#file.)) < 0)
4138 return FLAC__STREAM_DECODER_TELL_STATUS_ERRORcxx . . $ FLAC__STREAM_DECODER_TELL_STATUS_ERROR.;
4139 else {
4140 *absolute_byte_offset = (FLAC__uint64cxx . . $ FLAC__uint64#)pos;
4141 return FLAC__STREAM_DECODER_TELL_STATUS_OKcxx . . $ FLAC__STREAM_DECODER_TELL_STATUS_OK.;
4142 }
4143 }
4144
4145 FLAC__StreamDecoderLengthStatuscxx . . $ FLAC__StreamDecoderLengthStatus# file_length_callback_cxx . . $ file_length_callback_(93230fe99f0bb400).(const FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder, FLAC__uint64cxx . . $ FLAC__uint64# *stream_length, void *client_data)
4146 {
4147 struct flac_stat_scxx . . $ `external/flac/flac_share_compat.h:217:9`! filestats;
4148 (void)client_data;
4149
4150 if(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->filecxx . . $ FLAC__StreamDecoderPrivate#file. == stdincxx . . $ `<external>/232824719582829767/stdio.h:153:9`!)
4151 return FLAC__STREAM_DECODER_LENGTH_STATUS_UNSUPPORTEDcxx . . $ FLAC__STREAM_DECODER_LENGTH_STATUS_UNSUPPORTED.;
4152
4153 #ifndef FLAC__USE_FILELENGTHI64
4154 if(flac_fstatcxx . . $ `external/flac/flac_share_compat.h:218:9`!(filenocxx . . $ fileno(89bc1efcdac0ca22).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->filecxx . . $ FLAC__StreamDecoderPrivate#file.), &filestats) != 0)
4155 #else
4156 filestats.st_size = _filelengthi64(fileno(decoder->private_->file));
4157 if(filestats.st_size < 0)
4158 #endif
4159 return FLAC__STREAM_DECODER_LENGTH_STATUS_ERRORcxx . . $ FLAC__STREAM_DECODER_LENGTH_STATUS_ERROR.;
4160 else {
4161 *stream_length = (FLAC__uint64cxx . . $ FLAC__uint64#)filestats.st_sizecxx . . $ stat#st_size.;
4162 return FLAC__STREAM_DECODER_LENGTH_STATUS_OKcxx . . $ FLAC__STREAM_DECODER_LENGTH_STATUS_OK.;
4163 }
4164 }
4165
4166 FLAC__boolcxx . . $ FLAC__bool# file_eof_callback_cxx . . $ file_eof_callback_(fce8f04acd72eae6).(const FLAC__StreamDecodercxx . . $ FLAC__StreamDecoder# *decoder, void *client_data)
4167 {
4168 (void)client_data;
4169
4170 return feofcxx . . $ feof(89bc1efcdac0ca22).(decoder->private_cxx . . $ FLAC__StreamDecoder#private_.->filecxx . . $ FLAC__StreamDecoderPrivate#file.)? truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`! : falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
4171 }