Lines Matching refs:currentframe
56 int currentframe; member
259 ape->currentframe = 0; in ape_read_header()
385 if (ape->currentframe >= ape->totalframes) in ape_read_packet()
388 ret64 = avio_seek(s->pb, ape->frames[ape->currentframe].pos, SEEK_SET); in ape_read_packet()
393 if (ape->currentframe == (ape->totalframes - 1)) in ape_read_packet()
398 if (ape->frames[ape->currentframe].size <= 0 || in ape_read_packet()
399 ape->frames[ape->currentframe].size > INT_MAX - extra_size) { in ape_read_packet()
401 ape->frames[ape->currentframe].size); in ape_read_packet()
402 ape->currentframe++; in ape_read_packet()
406 ret = av_new_packet(pkt, ape->frames[ape->currentframe].size + extra_size); in ape_read_packet()
411 AV_WL32(pkt->data + 4, ape->frames[ape->currentframe].skip); in ape_read_packet()
412 ret = avio_read(s->pb, pkt->data + extra_size, ape->frames[ape->currentframe].size); in ape_read_packet()
417 pkt->pts = ape->frames[ape->currentframe].pts; in ape_read_packet()
424 ape->currentframe++; in ape_read_packet()
449 ape->currentframe = index; in ape_read_seek()