Lines Matching refs:bytes_per_packet
40 int bytes_per_packet; ///< bytes in a packet, or 0 if variable member
76 caf->bytes_per_packet = avio_rb32(pb); in read_desc_chunk()
77 st->codecpar->block_align = caf->bytes_per_packet; in read_desc_chunk()
82 if (caf->bytes_per_packet < 0 || caf->frames_per_packet < 0 || st->codecpar->channels < 0) in read_desc_chunk()
86 if (caf->frames_per_packet > 0 && caf->bytes_per_packet > 0) { in read_desc_chunk()
87 … st->codecpar->bit_rate = (uint64_t)st->codecpar->sample_rate * (uint64_t)caf->bytes_per_packet * 8 in read_desc_chunk()
207 if (caf->bytes_per_packet > 0 && caf->frames_per_packet > 0) { in read_pakt_chunk()
209 pos = caf-> bytes_per_packet * num_packets; in read_pakt_chunk()
218 pos += caf->bytes_per_packet ? caf->bytes_per_packet : ff_mp4_read_descr_len(pb); in read_pakt_chunk()
342 if (caf->bytes_per_packet > 0 && caf->frames_per_packet > 0) { in read_header()
344 st->nb_frames = (caf->data_size / caf->bytes_per_packet) * caf->frames_per_packet; in read_header()
392 pkt_size = caf->bytes_per_packet; in read_packet()
397 pkt_frames = pkt_size / caf->bytes_per_packet; in read_packet()
436 if (caf->frames_per_packet > 0 && caf->bytes_per_packet > 0) { in read_seek()
438 pos = caf->bytes_per_packet * (timestamp / caf->frames_per_packet); in read_seek()
441 packet_cnt = pos / caf->bytes_per_packet; in read_seek()