Lines Matching refs:idx
38 static int theora_header(AVFormatContext *s, int idx)
41 struct ogg_stream *os = ogg->streams + idx;
42 AVStream *st = s->streams[idx];
145 static uint64_t theora_gptopts(AVFormatContext *ctx, int idx, uint64_t gp,
149 struct ogg_stream *os = ogg->streams + idx;
171 static int theora_packet(AVFormatContext *s, int idx)
174 struct ogg_stream *os = ogg->streams + idx;
192 pts = theora_gptopts(s, idx, os->granule, NULL);
196 if(s->streams[idx]->start_time == AV_NOPTS_VALUE && os->lastpts != AV_NOPTS_VALUE) {
197 s->streams[idx]->start_time = os->lastpts;
198 if (s->streams[idx]->duration > 0)
199 s->streams[idx]->duration = av_sat_sub64(s->streams[idx]->duration, s->streams[idx]->start_time);