The previous patch introduced a regression because "granule" was made
unsigned by mistake but needs to be a signed variable. This can cause
the loop in oac_get_file_info() to not terminate which eventually
results in an abort due to an allocation failure:
para_realloc: realloc failed (size =
2097152000), aborting
ogg_page op;
char *buf;
int ret, i, j, frames_per_chunk, ct_size, prev_pageno = 0;
- long long unsigned granule = 0, granule_skip = 0, num_frames = 0;
- int64_t prev_granule = 0;
+ long long unsigned granule_skip = 0, num_frames = 0;
+ int64_t granule = 0, prev_granule = 0;
ogg_sync_init(&oss);
ret = -E_OGG_SYNC;