115 if (skip < 0 || !st->codec->extradata ||
122 #define ALAC_PREAMBLE 12
123 #define ALAC_HEADER 36
124 #define ALAC_NEW_KUKI 24
140 if (!memcmp(&preamble[4],
"frmaalac", 8)) {
170 int64_t pos = 0, ccount, num_packets;
176 if (num_packets < 0 || INT32_MAX /
sizeof(
AVIndexEntry) < num_packets)
184 for (i = 0; i < num_packets; i++) {
206 for (i = 0; i < nb_entries; i++) {
259 caf->
data_size = size < 0 ? -1 : size - 4;
287 #define _(x) ((x) >= ' ' ? (x) : ' ')
289 tag,
_(tag>>24),
_((tag>>16)&0xFF),
_((tag>>8)&0xFF),
_(tag&0xFF), size);
298 if (pos > INT64_MAX - size)
315 "block size or frame size are variable.\n");
329 #define CAF_MAX_PKT_SIZE 4096
336 int res, pkt_size = 0, pkt_frames = 0;
354 if (pkt_size > 0 && pkt_frames == 1) {
356 pkt_size =
FFMIN(pkt_size, left);
370 if (pkt_size == 0 || pkt_frames == 0 || pkt_size > left)
388 int64_t timestamp,
int flags)
392 int64_t pos, packet_cnt, frame_cnt;
394 timestamp =
FFMAX(timestamp, 0);