Lines Matching defs:priv

220                                 struct oggvorbis_private *priv,
227 len = priv->len[0] + priv->len[1] + priv->len[2];
240 offset += av_xiphlacing(&ptr[offset], priv->len[0]);
241 offset += av_xiphlacing(&ptr[offset], priv->len[1]);
243 memcpy(&ptr[offset], priv->packet[i], priv->len[i]);
244 offset += priv->len[i];
245 av_freep(&priv->packet[i]);
256 struct oggvorbis_private *priv = os->private;
259 av_vorbis_parse_free(&priv->vp);
261 av_freep(&priv->packet[i]);
300 struct oggvorbis_private *priv;
309 priv = os->private;
312 return priv->vp ? 0 : AVERROR_INVALIDDATA;
317 if (priv->packet[pkt_type >> 1])
319 if (pkt_type > 1 && !priv->packet[0] || pkt_type > 3 && !priv->packet[1])
320 return priv->vp ? 0 : AVERROR_INVALIDDATA;
322 priv->len[pkt_type >> 1] = os->psize;
323 priv->packet[pkt_type >> 1] = av_memdup(os->buf + os->pstart, os->psize);
324 if (!priv->packet[pkt_type >> 1])
370 if (vorbis_update_metadata(s, idx) >= 0 && priv->len[1] > 10) {
378 new_len = 7 + 4 + AV_RL32(priv->packet[1] + 7) + 4 + 1;
380 AV_WL32(priv->packet[1] + new_len - 5, 0);
381 priv->packet[1][new_len - 1] = 1;
382 priv->len[1] = new_len;
388 if (priv->vp)
391 ret = fixup_vorbis_headers(s, priv, &st->codecpar->extradata);
398 priv->vp = av_vorbis_parse_init(st->codecpar->extradata, st->codecpar->extradata_size);
399 if (!priv->vp) {
413 struct oggvorbis_private *priv = os->private;
416 if (!priv->vp)
428 av_vorbis_parse_reset(priv->vp);
431 d = av_vorbis_parse_frame_flags(priv->vp, last_pkt, 1, &flags);
443 int d = av_vorbis_parse_frame_flags(priv->vp, last_pkt, 1, &flags);
467 priv->final_pts = AV_NOPTS_VALUE;
468 av_vorbis_parse_reset(priv->vp);
473 duration = av_vorbis_parse_frame_flags(priv->vp, os->buf + os->pstart, 1, &flags);
490 priv->final_pts = os->lastpts;
491 priv->final_duration = 0;
494 int64_t skip = priv->final_pts + priv->final_duration + os->pduration - os->granule;
497 os->pduration = os->granule - priv->final_pts - priv->final_duration;
499 priv->final_duration += os->pduration;