Lines Matching defs:pkt
101 static int audio_read_packet(AVFormatContext *s1, AVPacket *pkt)
108 if (!s->pkt->data) {
109 int ret = av_new_packet(s->pkt, s->period_size * s->frame_size);
112 s->pkt->size = 0;
116 while ((res = snd_pcm_readi(s->h, s->pkt->data + s->pkt->size, s->period_size - s->pkt->size / s->frame_size)) < 0) {
120 s->pkt->size = 0;
128 s->pkt->size += res * s->frame_size;
129 } while (s->pkt->size < s->period_size * s->frame_size);
131 av_packet_move_ref(pkt, s->pkt);
135 pkt->pts = ff_timefilter_update(s->timefilter, dts, s->last_period);