Lines Matching defs:pktl
556 PacketListEntry *pktl = si->raw_packet_buffer.head;
561 if (pktl) {
562 AVStream *const st = s->streams[pktl->pkt.stream_index];
582 if (!pktl || err == AVERROR(EAGAIN))
638 if (!pktl && sti->request_probe <= 0)
734 PacketListEntry *pktl)
737 if (pktl->next)
738 return pktl->next;
739 if (pktl == si->packet_buffer.tail)
827 PacketListEntry *pktl = si->packet_buffer.head ? si->packet_buffer.head : si->parse_queue.head;
846 for (PacketListEntry *pktl_it = pktl; pktl_it; pktl_it = get_next_pkt(s, st, pktl_it)) {
863 update_dts_from_pts(s, stream_index, pktl);
879 PacketListEntry *pktl = si->packet_buffer.head ? si->packet_buffer.head : si->parse_queue.head;
887 for (; pktl; pktl = get_next_pkt(s, st, pktl)) {
888 if (pktl->pkt.stream_index == stream_index) {
889 if (pktl->pkt.pts != pktl->pkt.dts ||
890 pktl->pkt.dts != AV_NOPTS_VALUE ||
891 pktl->pkt.duration)
896 if (pktl && pktl->pkt.dts != sti->first_dts) {
898 av_ts2str(sti->first_dts), av_ts2str(pktl->pkt.dts), av_ts2str(pktl->pkt.pts), pktl->pkt.duration);
901 if (!pktl) {
905 pktl = si->packet_buffer.head ? si->packet_buffer.head : si->parse_queue.head;
910 for (; pktl; pktl = get_next_pkt(s, st, pktl)) {
911 if (pktl->pkt.stream_index != stream_index)
913 if ((pktl->pkt.pts == pktl->pkt.dts ||
914 pktl->pkt.pts == AV_NOPTS_VALUE) &&
915 (pktl->pkt.dts == AV_NOPTS_VALUE ||
916 pktl->pkt.dts == sti->first_dts ||
917 pktl->pkt.dts == RELATIVE_TS_BASE) &&
918 !pktl->pkt.duration &&
921 pktl->pkt.dts = cur_dts;
923 pktl->pkt.pts = cur_dts;
924 pktl->pkt.duration = duration;
927 cur_dts = pktl->pkt.dts + pktl->pkt.duration;
929 if (!pktl)
1469 PacketListEntry *pktl = si->packet_buffer.head;
1471 if (pktl) {
1472 AVPacket *next_pkt = &pktl->pkt;
1480 while (pktl && next_pkt->pts == AV_NOPTS_VALUE) {
1481 if (pktl->pkt.stream_index == next_pkt->stream_index &&
1482 av_compare_mod(next_pkt->dts, pktl->pkt.dts, 2ULL << (wrap_bits - 1)) < 0) {
1483 if (av_compare_mod(pktl->pkt.pts, pktl->pkt.dts, 2ULL << (wrap_bits - 1))) {
1485 next_pkt->pts = pktl->pkt.dts;
1489 last_dts = pktl->pkt.dts;
1492 pktl = pktl->next;
1502 pktl = si->packet_buffer.head;
1516 if (pktl && ret != AVERROR(EAGAIN)) {