Lines Matching refs:vivo
77 VivoContext *vivo = s->priv_data;
90 vivo->type = c >> 4;
91 vivo->sequence = c & 0xF;
93 switch (vivo->type) {
95 case 1: vivo->length = 128; break;
97 case 3: vivo->length = 40; break;
98 case 4: vivo->length = 24; break;
100 av_log(s, AV_LOG_ERROR, "unknown packet type %d\n", vivo->type);
106 vivo->length = c & 0x7F;
109 vivo->length = (vivo->length << 7) | (c & 0x7F);
123 VivoContext *vivo = s->priv_data;
144 if (vivo->sequence || vivo->type)
147 if (vivo->length <= 1024) {
148 avio_read(s->pb, vivo->text, vivo->length);
149 vivo->text[vivo->length] = 0;
152 avio_skip(s->pb, vivo->length);
156 line = vivo->text;
206 if (sscanf(value, "Vivo/%d.", &vivo->version) != 1)
235 if (vivo->version == 1) {
246 vivo->duration = 320;
259 VivoContext *vivo = s->priv_data;
261 unsigned old_sequence = vivo->sequence, old_type = vivo->type;
269 switch (vivo->type) {
271 avio_skip(pb, vivo->length);
283 duration = vivo->duration;
286 av_log(s, AV_LOG_ERROR, "unknown packet type %d\n", vivo->type);
290 if ((ret = av_get_packet(pb, pkt, vivo->length)) < 0)
297 while (vivo->sequence == old_sequence &&
298 (((vivo->type - 1) >> 1) == ((old_type - 1) >> 1))) {
303 if ((ret = av_append_packet(pb, pkt, vivo->length)) < 0)
318 .name = "vivo",