Lines Matching defs:pc
42 DVDSubParseContext *pc = s->priv_data;
44 if (pc->packet_index == 0) {
47 pc->packet_len = AV_RB16(buf);
48 if (pc->packet_len == 0) /* HD-DVD subpicture packet */
49 pc->packet_len = AV_RB32(buf+2);
50 av_freep(&pc->packet);
51 pc->packet = av_malloc(pc->packet_len);
53 if (pc->packet) {
54 if (pc->packet_index + buf_size <= pc->packet_len) {
55 memcpy(pc->packet + pc->packet_index, buf, buf_size);
56 pc->packet_index += buf_size;
57 if (pc->packet_index >= pc->packet_len) {
58 *poutbuf = pc->packet;
59 *poutbuf_size = pc->packet_len;
60 pc->packet_index = 0;
65 pc->packet_index = 0;
75 DVDSubParseContext *pc = s->priv_data;
76 av_freep(&pc->packet);