Lines Matching refs:totalframes
79 uint32_t totalframes;
122 av_log(s, AV_LOG_DEBUG, "totalframes = %"PRIu32"\n", ape_ctx->totalframes);
128 if ((ape_ctx->seektablelength / sizeof(uint32_t)) != ape_ctx->totalframes) {
132 if (i < ape_ctx->totalframes - 1) {
143 for (i = 0; i < ape_ctx->totalframes; i++)
201 ape->totalframes = avio_rl32(pb);
215 ape->totalframes = avio_rl32(pb);
228 ape->seektablelength = ape->totalframes * sizeof(int32_t);
249 if(!ape->totalframes){
253 if(ape->totalframes > UINT_MAX / sizeof(APEFrame)){
255 ape->totalframes);
258 if (ape->seektablelength && (ape->seektablelength / sizeof(*ape->seektable)) < ape->totalframes) {
261 ape->seektablelength / sizeof(*ape->seektable), ape->totalframes);
264 ape->frames = av_malloc(ape->totalframes * sizeof(APEFrame));
272 if (ape->totalframes > 1)
273 ape->totalsamples += ape->blocksperframe * (ape->totalframes - 1);
286 for (i = 1; i < ape->totalframes; i++) {
292 ape->frames[ape->totalframes - 1].size = ape->finalframeblocks * 4;
293 ape->frames[ape->totalframes - 1].nblocks = ape->finalframeblocks;
295 for (i = 0; i < ape->totalframes; i++) {
321 total_blocks = (ape->totalframes == 0) ? 0 : ((ape->totalframes - 1) * ape->blocksperframe) + ape->finalframeblocks;
331 st->nb_frames = ape->totalframes;
343 for (i = 0; i < ape->totalframes; i++) {
361 if (ape->currentframe > ape->totalframes)
367 if (ape->currentframe == (ape->totalframes - 1))