Lines Matching defs:vivo
74 VivoContext *vivo = s->priv_data;
87 vivo->type = c >> 4;
88 vivo->sequence = c & 0xF;
90 switch (vivo->type) {
92 case 1: vivo->length = 128; break;
94 case 3: vivo->length = 40; break;
95 case 4: vivo->length = 24; break;
97 av_log(s, AV_LOG_ERROR, "unknown packet type %d\n", vivo->type);
103 vivo->length = c & 0x7F;
106 vivo->length = (vivo->length << 7) | (c & 0x7F);
120 VivoContext *vivo = s->priv_data;
141 if (vivo->sequence || vivo->type)
144 if (vivo->length <= 1024) {
145 avio_read(s->pb, vivo->text, vivo->length);
146 vivo->text[vivo->length] = 0;
149 avio_skip(s->pb, vivo->length);
153 line = vivo->text;
203 if (sscanf(value, "Vivo/%d.", &vivo->version) != 1)
228 if (vivo->version == 1) {
246 VivoContext *vivo = s->priv_data;
248 unsigned old_sequence = vivo->sequence, old_type = vivo->type;
256 switch (vivo->type) {
258 avio_skip(pb, vivo->length);
271 av_log(s, AV_LOG_ERROR, "unknown packet type %d\n", vivo->type);
275 if ((ret = av_get_packet(pb, pkt, vivo->length)) < 0)
282 while (vivo->sequence == old_sequence &&
283 (((vivo->type - 1) >> 1) == ((old_type - 1) >> 1))) {
289 if ((ret = av_append_packet(pb, pkt, vivo->length)) < 0)
306 .name = "vivo",