Lines Matching refs:nstreams
86 av_malloc(sizeof(*ost) + (ogg->nstreams - 1) * sizeof(*ogg->streams)); in ogg_save()
96 ost->nstreams = ogg->nstreams; in ogg_save()
97 memcpy(ost->streams, ogg->streams, ogg->nstreams * sizeof(*ogg->streams)); in ogg_save()
99 for (i = 0; i < ogg->nstreams; i++) { in ogg_save()
130 for (i = 0; i < ogg->nstreams; i++) { in ogg_restore()
135 if (i >= ost->nstreams || !ost->streams[i].private) { in ogg_restore()
143 ogg->nstreams = ost->nstreams; in ogg_restore()
144 if ((err = av_reallocp_array(&ogg->streams, ogg->nstreams, in ogg_restore()
146 ogg->nstreams = 0; in ogg_restore()
150 ost->nstreams * sizeof(*ogg->streams)); in ogg_restore()
163 for (i = 0; i < ogg->nstreams; i++) { in ogg_reset()
217 if (ogg->nstreams != 1) { in ogg_replace_stream()
251 int idx = ogg->nstreams; in ogg_new_stream()
263 if (av_size_mult(ogg->nstreams + 1, sizeof(*ogg->streams), &size) < 0 || in ogg_new_stream()
286 ogg->nstreams++; in ogg_new_stream()
294 for (i = 0; i < ogg->nstreams; i++) in data_packets_seen()
589 for (i = 0; i < ogg->nstreams; i++) { in ogg_packet()
715 for (i = 0; i < ogg->nstreams; i++) { in ogg_read_close()
719 ogg->nstreams = 0; in ogg_read_close()
742 for (i = 0; i < ogg->nstreams; i++) { in ogg_read_header()
943 av_assert0(stream_index < ogg->nstreams); in ogg_read_seek()