Lines Matching defs:pc
222 int ff_combine_frame(ParseContext *pc, int next, const uint8_t **buf, int *buf_size)
224 if(pc->overread){
225 av_dlog(pc, "overread %d, state:%X next:%d index:%d o_index:%d\n",
226 pc->overread, pc->state, next, pc->index, pc->overread_index);
227 av_dlog(pc, "%X %X %X %X\n", (*buf)[0], (*buf)[1], (*buf)[2], (*buf)[3]);
231 for(; pc->overread>0; pc->overread--){
232 pc->buffer[pc->index++]= pc->buffer[pc->overread_index++];
240 pc->last_index= pc->index;
244 void* new_buffer = av_fast_realloc(pc->buffer, &pc->buffer_size, (*buf_size) + pc->index + FF_INPUT_BUFFER_PADDING_SIZE);
248 pc->buffer = new_buffer;
249 memcpy(&pc->buffer[pc->index], *buf, *buf_size);
250 pc->index += *buf_size;
255 pc->overread_index= pc->index + next;
258 if(pc->index){
259 void* new_buffer = av_fast_realloc(pc->buffer, &pc->buffer_size, next + pc->index + FF_INPUT_BUFFER_PADDING_SIZE);
263 pc->buffer = new_buffer;
265 memcpy(&pc->buffer[pc->index], *buf,
267 pc->index = 0;
268 *buf= pc->buffer;
273 pc->state = (pc->state<<8) | pc->buffer[pc->last_index + next];
274 pc->state64 = (pc->state64<<8) | pc->buffer[pc->last_index + next];
275 pc->overread++;
278 if(pc->overread){
279 av_dlog(pc, "overread %d, state:%X next:%d index:%d o_index:%d\n",
280 pc->overread, pc->state, next, pc->index, pc->overread_index);
281 av_dlog(pc, "%X %X %X %X\n", (*buf)[0], (*buf)[1],(*buf)[2],(*buf)[3]);
289 ParseContext *pc = s->priv_data;
291 av_freep(&pc->buffer);
298 av_free(pc1->pc.buffer);