Lines Matching defs:size
192 static const struct ogg_codec *ogg_find_codec(uint8_t *buf, int size)
197 if (size >= ogg_codecs[i]->magicsize &&
299 static int buf_realloc(struct ogg_stream *os, int size)
302 if (os->bufsize - os->bufpos < size) {
323 int size = 0, idx;
365 /* To rewind if checksum is bad/check magic on switches - this is the max packet size */
388 size += segments[i];
394 ret = buf_realloc(os, size);
400 readout_buf = av_malloc(size);
403 ret = avio_read(bc, readout_buf, size);
404 if (ret < size) {
433 idx = ogg_replace_stream(s, serial, readout_buf, size, probing);
445 ret = buf_realloc(os, size);
451 memcpy(os->buf + os->bufpos, readout_buf, size);
460 os->bufpos += size;
645 int64_t size, end;
655 size = avio_size(s->pb);
656 if (size < 0)
658 end = size > MAX_PAGE_SIZE ? size - MAX_PAGE_SIZE : 0;