Skip to content
Myr

Other (pedantic) warnings for possible uninitialized variables.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Marco Lizza · committed by Marco Lizza · parent 43c6bd4 · Browse files · 1 file+3 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−3 removed

  • other:+3 added−3 removed

1 file+3 added−3 removed

modified:stb_vorbis.c+3 added-3 removed
3967 unmodified lines
3968 for (j=0; j < g->values; ++j)3969 g->sorted_order[j] = (uint8) p[j].id;3970 // precompute the neighbors3971 for (j=2; j < g->values; ++j) {3972 int low,hi;3972 int low = 0,hi = 0;3973 neighbors(g->Xlist, j, &low,&hi);3974 g->neighbors[j][0] = low;3975 g->neighbors[j][1] = hi;3976 }
695 unmodified lines
4672{4673 ProbedPage left, right, mid;4674 int i, start_seg_with_known_loc, end_pos, page_start;4675 uint32 delta, stream_length, padding, last_sample_limit;4676 double offset, bytes_per_sample;4676 double offset = 0.0, bytes_per_sample = 0.0;4677 int probe = 0;46784679 // find the last page and validate the target sample4680 stream_length = stb_vorbis_stream_length_in_samples(f);
543 unmodified lines
5224}52255226int stb_vorbis_get_frame_short(stb_vorbis *f, int num_c, short **buffer, int num_samples)5227{5228 float **output;5228 float **output = NULL;5229 int len = stb_vorbis_get_frame_float(f, NULL, &output);5230 if (len > num_samples) len = num_samples;5231 if (len)5232 convert_samples_short(num_c, buffer, 0, f->channels, output, 0, len);
322 unmodified lines