Lines Matching defs:pkt
37 static int sup_read_packet(AVFormatContext *s, AVPacket *pkt)
50 if ((ret = av_get_packet(s->pb, pkt, 3)) < 0)
53 pkt->stream_index = 0;
54 pkt->flags |= AV_PKT_FLAG_KEY;
55 pkt->pos = pos;
56 pkt->pts = pts;
58 pkt->dts = dts ? dts : AV_NOPTS_VALUE;
60 if (pkt->size >= 3) {
62 size_t len = AV_RB16(pkt->data + 1);
64 if ((ret = av_append_packet(s->pb, pkt, len)) < 0)