Lines Matching refs:os
40 struct ogg_stream *os = ogg->streams + idx;
41 struct speex_params *spxp = os->private;
43 uint8_t *p = os->buf + os->pstart;
47 os->private = spxp;
70 st->codec->extradata_size = os->psize;
78 ff_vorbis_comment(s, &st->metadata, p, os->psize);
84 static int ogg_page_packets(struct ogg_stream *os)
88 for (i = 0; i < os->nsegs; i++)
89 if (os->segments[i] < 255)
97 struct ogg_stream *os = ogg->streams + idx;
98 struct speex_params *spxp = os->private;
101 if (os->flags & OGG_FLAG_EOS && os->lastpts != AV_NOPTS_VALUE &&
102 os->granule > 0) {
106 spxp->final_packet_duration = os->granule - os->lastpts -
107 packet_size * (ogg_page_packets(os) - 1);
110 if (!os->lastpts && os->granule > 0)
112 os->pduration = os->granule - packet_size * (ogg_page_packets(os) - 1);
113 else if (os->flags & OGG_FLAG_EOS && os->segp == os->nsegs &&
116 os->pduration = spxp->final_packet_duration;
118 os->pduration = packet_size;