Lines Matching refs:size

135     int      size;
428 // The following forward declarations need their size because
966 * Returns NEEDS_CHECKING unless size == 0.
968 static int ebml_read_uint(AVIOContext *pb, int size,
973 if (size == 0) {
979 while (n++ < size)
987 * Returns NEEDS_CHECKING unless size == 0.
989 static int ebml_read_sint(AVIOContext *pb, int size,
994 if (size == 0) {
1001 while (n++ < size)
1010 * Returns 0 if size == 0, NEEDS_CHECKING or < 0 on obvious failure.
1012 static int ebml_read_float(AVIOContext *pb, int size,
1015 if (size == 0) {
1018 } else if (size == 4) {
1020 } else if (size == 8) {
1032 static int ebml_read_ascii(AVIOContext *pb, int size,
1038 if (size == 0 && default_value) {
1045 if (!(res = av_malloc(size + 1)))
1047 if ((ret = avio_read(pb, (uint8_t *) res, size)) != size) {
1051 (res)[size] = '\0';
1074 bin->size = length;
1079 bin->size = 0;
1356 "at 0x%"PRIx64" inside parent with finite size\n", pos);
1592 int len_mask = 0x80, size = 1, n = 1, i;
1600 while (size <= 8 && !(total & len_mask)) {
1601 size++;
1604 if (size > 8)
1607 while (n < size)
1610 if (total + 1 == 1ULL << (7 * size)){
1612 total = p->buf_size - 4 - size;
1615 if (p->buf_size < 4 + size + total)
1627 for (n = 4 + size; n <= 4 + size + total - probelen; n++)
1670 int header_size = encodings[0].compression.settings.size;
1674 av_log(NULL, AV_LOG_ERROR, "Compression size but no data in headerstrip\n");
2053 int size = track->codec_priv.size;
2055 if (size < 8 + FLAC_STREAMINFO_SIZE || p[4] & 0x7f) {
2057 track->codec_priv.size = 0;
2061 track->codec_priv.size = 8 + FLAC_STREAMINFO_SIZE;
2063 p += track->codec_priv.size;
2064 size -= track->codec_priv.size;
2067 while (size >= 4) {
2073 size -= 4;
2074 if (block_size > size)
2096 size -= block_size;
2194 size_t size = 0;
2196 AVContentLightMetadata *metadata = av_content_light_metadata_alloc(&size);
2200 (uint8_t *)metadata, size);
2288 if (mkv_projection->private.size && priv_data[0] != 0) {
2297 if (track->video.projection.private.size == 20) {
2310 } else if (track->video.projection.private.size != 0) {
2321 if (track->video.projection.private.size < 4) {
2324 } else if (track->video.projection.private.size == 12) {
2375 return ff_isom_parse_dvcc_dvvc(s, st, bin->data, bin->size);
2413 * size at the start. */
2416 track->codec_priv.size + 4 + AV_INPUT_BUFFER_PADDING_SIZE);
2421 memmove(track->codec_priv.data + 4, track->codec_priv.data, track->codec_priv.size);
2422 track->codec_priv.size += 4;
2423 AV_WB32(track->codec_priv.data, track->codec_priv.size);
2499 if (track->video.color_space.size == 4)
2510 if (encodings[0].encryption.key_id.size > 0) {
2513 const int b64_size = AV_BASE64_SIZE(encodings[0].encryption.key_id.size);
2520 encodings[0].encryption.key_id.size);
2540 } else if (track->codec_priv.size && encodings[0].scope & 2) {
2543 &track->codec_priv.size,
2547 track->codec_priv.size = 0;
2556 track->codec_priv.size + AV_INPUT_BUFFER_PADDING_SIZE,
2560 track->codec_priv.size = 0;
2571 encodings[0].compression.settings.size);
2594 track->codec_priv.size >= 40 &&
2606 track->codec_priv.size >= 14 &&
2610 track->codec_priv.size,
2613 track->codec_priv.size, 0);
2618 extradata_offset = FFMIN(track->codec_priv.size, 18);
2621 && (track->codec_priv.size >= 32)
2642 (track->codec_priv.size >= 21) &&
2654 if (track->codec_priv.size >= 86) {
2657 track->codec_priv.size,
2691 } else if (codec_id == AV_CODEC_ID_AAC && !track->codec_priv.size) {
2707 } else if (codec_id == AV_CODEC_ID_ALAC && track->codec_priv.size && track->codec_priv.size < INT_MAX - 12 - AV_INPUT_BUFFER_PADDING_SIZE) {
2709 * Create the "atom size", "tag", and "tag version" fields the
2711 extradata_size = 12 + track->codec_priv.size;
2720 track->codec_priv.size);
2765 if (track->codec_priv.size < 46)
2784 track->codec_priv.size = 0;
2802 } else if (codec_id == AV_CODEC_ID_FLAC && track->codec_priv.size) {
2806 } else if (codec_id == AV_CODEC_ID_WAVPACK && track->codec_priv.size < 2) {
2814 } else if (codec_id == AV_CODEC_ID_PRORES && track->codec_priv.size == 4) {
2816 } else if (codec_id == AV_CODEC_ID_VP9 && track->codec_priv.size) {
2819 track->codec_priv.size = 0;
2821 track->codec_priv.size -= extradata_offset;
2865 } else if (track->codec_priv.data && track->codec_priv.size > 0) {
2866 if (ff_alloc_extradata(st->codecpar, track->codec_priv.size))
2870 track->codec_priv.size);
3086 if (matroska->date_utc.size == 8)
3096 attachments[j].bin.data && attachments[j].bin.size > 0)) {
3123 if (ff_alloc_extradata(st->codecpar, attachments[j].bin.size))
3126 attachments[j].bin.size);
3194 int size, int type, AVIOContext *pb,
3202 lace_size[0] = size;
3206 if (size <= 0)
3211 size -= 1;
3222 if (size <= total)
3228 size -= 1;
3231 if (size < total)
3234 lace_size[n] = size - total;
3238 case 0x2: /* fixed-size lacing */
3239 if (size % (*laces))
3242 lace_size[n] = size / *laces;
3275 size -= offset;
3276 if (size < total)
3279 lace_size[*laces - 1] = size - total;
3291 uint8_t *data, int size, uint64_t timecode,
3306 if (size < cfs * h / 2) {
3308 "Corrupt int4 RM-style audio packet size\n");
3315 if (size < w) {
3317 "Corrupt sipr RM-style audio packet size\n");
3322 if (size < w) {
3324 "Corrupt generic RM-style audio packet size\n");
3368 uint8_t **data, int *size)
3373 int srclen = *size;
3442 *size = dstlen;
3452 uint8_t **data, int *size)
3455 int dstlen = *size + 8;
3467 *size = dstlen;
3639 pkt->size = pkt_size;
3696 int size, int64_t pos, uint64_t cluster_time,
3714 ffio_init_context(&pb, data, size, 0, NULL, NULL, NULL, NULL);
3719 size -= n;
3722 if (!track || size < 3)
3740 size -= 3;
3773 res = matroska_parse_laces(matroska, &data, size, (flags & 0x06) >> 1,
3859 /* Found a cluster: subtract the size of the ID already read. */
3872 if (res >= 0 && block->bin.size > 0) {
3874 uint8_t* additional = block->additional.size > 0 ?
3878 block->bin.size, block->bin.pos,
3881 block->additional.size, cluster->pos,