Lines Matching defs:pc
31 ParseContext pc;
41 ParseContext *pc = &t->pc;
58 while (buf_size || t->index + needed <= pc->index) {
59 if (buf_size && t->index + TAK_MAX_FRAME_HEADER_BYTES > pc->index) {
64 if (ff_combine_frame(pc, END_NOT_FOUND, &tmp_buf, &tmp_buf_size) != -1)
71 for (; t->index + needed <= pc->index; t->index++) {
72 if (pc->buffer[ t->index ] == 0xFF &&
73 pc->buffer[ t->index + 1 ] == 0xA0) {
76 init_get_bits(&gb, pc->buffer + t->index,
77 8 * (pc->index - t->index));
79 pc->frame_start_found ? &ti : &t->ti, 127) &&
80 !ff_tak_check_crc(pc->buffer + t->index,
82 if (!pc->frame_start_found) {
83 pc->frame_start_found = 1;
89 pc->frame_start_found = 0;
90 next = t->index - pc->index;
101 ff_combine_frame(pc, next, &buf, &buf_size) < 0) {
109 pc->overread = FFMAX(0, -next);