Lines Matching refs:pkt
72 static int ff_interleave_new_audio_packet(AVFormatContext *s, AVPacket *pkt,
82 av_new_packet(pkt, size);
83 av_fifo_read(&aic->fifo, pkt->data, size);
85 pkt->dts = pkt->pts = aic->dts;
86 pkt->duration = av_rescale_q(*aic->samples, st->time_base, aic->time_base);
87 pkt->stream_index = stream_index;
88 aic->dts += pkt->duration;
97 int ff_audio_rechunk_interleave(AVFormatContext *s, AVPacket *out, AVPacket *pkt, int flush,
103 if (pkt) {
104 AVStream *st = s->streams[pkt->stream_index];
107 unsigned new_size = av_fifo_size(&aic->fifo) + pkt->size;
113 av_fifo_generic_write(&aic->fifo, pkt->data, pkt->size, NULL);
116 pkt->pts = pkt->dts = aic->dts;
117 aic->dts += pkt->duration;
118 ff_interleave_add_packet(s, pkt, compare_ts);
120 pkt = NULL;
132 return get_packet(s, out, pkt, flush);