Lines Matching refs:buffer
209 /* Copy overread bytes from last frame into buffer. */
211 pc->buffer[pc->index++] = pc->buffer[pc->overread_index++];
222 /* copy into buffer end return */
224 void *new_buffer = av_fast_realloc(pc->buffer, &pc->buffer_size,
229 av_log(NULL, AV_LOG_ERROR, "Failed to reallocate parser buffer to %d\n", *buf_size + pc->index + AV_INPUT_BUFFER_PADDING_SIZE);
233 pc->buffer = new_buffer;
234 memcpy(&pc->buffer[pc->index], *buf, *buf_size);
235 memset(&pc->buffer[pc->index + *buf_size], 0, AV_INPUT_BUFFER_PADDING_SIZE);
240 av_assert0(next >= 0 || pc->buffer);
245 /* append to buffer */
247 void *new_buffer = av_fast_realloc(pc->buffer, &pc->buffer_size,
251 av_log(NULL, AV_LOG_ERROR, "Failed to reallocate parser buffer to %d\n", next + pc->index + AV_INPUT_BUFFER_PADDING_SIZE);
256 pc->buffer = new_buffer;
258 memcpy(&pc->buffer[pc->index], *buf,
261 *buf = pc->buffer;
270 pc->state = pc->state << 8 | pc->buffer[pc->last_index + next];
271 pc->state64 = pc->state64 << 8 | pc->buffer[pc->last_index + next];
289 av_freep(&pc->buffer);