Lines Matching refs:pmp
44 PMPContext *pmp = s->priv_data;
92 pmp->num_streams = avio_rl16(pb) + 1;
105 if (size < 9 + 4*pmp->num_streams) {
116 for (i = 1; i < pmp->num_streams; i++) {
131 PMPContext *pmp = s->priv_data;
138 if (pmp->cur_stream == 0) {
140 pmp->audio_packets = avio_r8(pb);
142 if (!pmp->audio_packets) {
147 num_packets = (pmp->num_streams - 1) * pmp->audio_packets + 1;
149 pmp->current_packet = 0;
150 av_fast_malloc(&pmp->packet_sizes,
151 &pmp->packet_sizes_alloc,
152 num_packets * sizeof(*pmp->packet_sizes));
153 if (!pmp->packet_sizes_alloc) {
158 pmp->packet_sizes[i] = avio_rl32(pb);
160 ret = av_get_packet(pb, pkt, pmp->packet_sizes[pmp->current_packet]);
163 pkt->stream_index = pmp->cur_stream;
165 if (pmp->current_packet % pmp->audio_packets == 0)
166 pmp->cur_stream = (pmp->cur_stream + 1) % pmp->num_streams;
167 pmp->current_packet++;
173 PMPContext *pmp = s->priv_data;
174 pmp->cur_stream = 0;
181 PMPContext *pmp = s->priv_data;
182 av_freep(&pmp->packet_sizes);
187 .name = "pmp",