Lines Matching defs:totalframes

76     uint32_t totalframes;
119 av_log(s, AV_LOG_DEBUG, "totalframes = %"PRIu32"\n", ape_ctx->totalframes);
125 if ((ape_ctx->seektablelength / sizeof(uint32_t)) != ape_ctx->totalframes) {
130 for (i = 0; i < ape_ctx->totalframes; i++)
189 ape->totalframes = avio_rl32(pb);
203 ape->totalframes = avio_rl32(pb);
216 ape->seektablelength = ape->totalframes * sizeof(int32_t);
237 if(!ape->totalframes || pb->eof_reached){
241 if(ape->totalframes > UINT_MAX / sizeof(APEFrame)){
243 ape->totalframes);
246 if (ape->seektablelength / sizeof(uint32_t) < ape->totalframes) {
249 ape->seektablelength / sizeof(uint32_t), ape->totalframes);
252 ape->frames = av_malloc_array(ape->totalframes, sizeof(APEFrame));
257 ape->firstframe += ape->totalframes;
262 if (ape->totalframes > 1)
263 ape->totalsamples += ape->blocksperframe * (ape->totalframes - 1);
269 for (i = 1; i < ape->totalframes; i++) {
282 avio_skip(pb, ape->seektablelength / sizeof(uint32_t) - ape->totalframes);
284 ape->frames[ape->totalframes - 1].nblocks = ape->finalframeblocks;
288 final_size = file_size - ape->frames[ape->totalframes - 1].pos -
294 ape->frames[ape->totalframes - 1].size = final_size;
296 for (i = 0; i < ape->totalframes; i++) {
306 for (i = 0; i < ape->totalframes; i++) {
332 total_blocks = (ape->totalframes == 0) ? 0 : ((ape->totalframes - 1) * ape->blocksperframe) + ape->finalframeblocks;
341 st->nb_frames = ape->totalframes;
353 for (i = 0; i < ape->totalframes; i++) {
378 if (ape->currentframe >= ape->totalframes)
386 if (ape->currentframe == (ape->totalframes - 1))