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)) {
171 int64_t pos = 0, ccount, num_packets;
177 if (num_packets < 0 || INT32_MAX /
sizeof(
AVIndexEntry) < num_packets)
185 for (i = 0; i < num_packets; i++) {
207 for (i = 0; i < nb_entries; i++) {
260 caf->
data_size = size < 0 ? -1 : size - 4;
288 #define _(x) ((x) >= ' ' ? (x) : ' ')
290 tag,
_(tag>>24),
_((tag>>16)&0xFF),
_((tag>>8)&0xFF),
_(tag&0xFF), size);
299 if (pos > INT64_MAX - size)
316 "block size or frame size are variable.\n");
330 #define CAF_MAX_PKT_SIZE 4096
337 int res, pkt_size = 0, pkt_frames = 0;
355 if (pkt_size > 0 && pkt_frames == 1) {
357 pkt_size =
FFMIN(pkt_size, left);
371 if (pkt_size == 0 || pkt_frames == 0 || pkt_size > left)
389 int64_t timestamp,
int flags)
393 int64_t pos, packet_cnt, frame_cnt;
395 timestamp =
FFMAX(timestamp, 0);