Lines Matching refs:size
89 nal->size =
140 nal->size = di;
264 int size = nal->size;
267 while (skip_trailing_zeros && size > 0 && nal->data[size - 1] == 0)
268 size--;
270 if (!size)
273 if (size <= min_size) {
274 if (nal->size < min_size)
276 size = min_size;
278 int v = nal->data[size - 1];
285 if (size > INT_MAX / 8)
287 size *= 8;
289 return size - trailing_padding;
349 static void alloc_rbsp_buffer(H2645RBSP *rbsp, unsigned int size, int use_ref)
351 int min_size = size;
353 if (size > INT_MAX - AV_INPUT_BUFFER_PADDING_SIZE)
355 size += AV_INPUT_BUFFER_PADDING_SIZE;
357 if (rbsp->rbsp_buffer_alloc_size >= size &&
364 size = FFMIN(size + size / 16 + 32, INT_MAX);
371 rbsp->rbsp_buffer = av_mallocz(size);
374 rbsp->rbsp_buffer_alloc_size = size;
377 rbsp->rbsp_buffer_ref = av_buffer_create(rbsp->rbsp_buffer, size,
474 nal->skipped_bytes_pos_size = FFMIN(1024, extract_length/3+1); // initial buffer size
502 if (nal->size <= 0 || nal->size_bits <= 0)