Lines Matching refs:pktl
827 PacketList *pktl = s->internal->raw_packet_buffer; in ff_read_packet() local
830 if (pktl) { in ff_read_packet()
831 st = s->streams[pktl->pkt.stream_index]; in ff_read_packet()
852 if (!pktl || ret == AVERROR(EAGAIN)) in ff_read_packet()
906 if (!pktl && st->internal->request_probe <= 0) in ff_read_packet()
1035 static PacketList *get_next_pkt(AVFormatContext *s, AVStream *st, PacketList *pktl) in get_next_pkt() argument
1037 if (pktl->next) in get_next_pkt()
1038 return pktl->next; in get_next_pkt()
1039 if (pktl == s->internal->packet_buffer_end) in get_next_pkt()
1120 …PacketList *pktl = s->internal->packet_buffer ? s->internal->packet_buffer : s->internal->parse_qu… in update_initial_timestamps() local
1140 for (pktl_it = pktl; pktl_it; pktl_it = get_next_pkt(s, st, pktl_it)) { in update_initial_timestamps()
1157 update_dts_from_pts(s, stream_index, pktl); in update_initial_timestamps()
1172 …PacketList *pktl = s->internal->packet_buffer ? s->internal->packet_buffer : s->internal->parse_qu… in update_initial_durations() local
1180 for (; pktl; pktl = get_next_pkt(s, st, pktl)) { in update_initial_durations()
1181 if (pktl->pkt.stream_index == stream_index) { in update_initial_durations()
1182 if (pktl->pkt.pts != pktl->pkt.dts || in update_initial_durations()
1183 pktl->pkt.dts != AV_NOPTS_VALUE || in update_initial_durations()
1184 pktl->pkt.duration) in update_initial_durations()
1189 if (pktl && pktl->pkt.dts != st->first_dts) { in update_initial_durations()
1191 … av_ts2str(st->first_dts), av_ts2str(pktl->pkt.dts), av_ts2str(pktl->pkt.pts), pktl->pkt.duration); in update_initial_durations()
1194 if (!pktl) { in update_initial_durations()
1198 …pktl = s->internal->packet_buffer ? s->internal->packet_buffer : s->internal->parse_queue; in update_initial_durations()
1203 for (; pktl; pktl = get_next_pkt(s, st, pktl)) { in update_initial_durations()
1204 if (pktl->pkt.stream_index != stream_index) in update_initial_durations()
1206 if ((pktl->pkt.pts == pktl->pkt.dts || in update_initial_durations()
1207 pktl->pkt.pts == AV_NOPTS_VALUE) && in update_initial_durations()
1208 (pktl->pkt.dts == AV_NOPTS_VALUE || in update_initial_durations()
1209 pktl->pkt.dts == st->first_dts || in update_initial_durations()
1210 pktl->pkt.dts == RELATIVE_TS_BASE) && in update_initial_durations()
1211 !pktl->pkt.duration && in update_initial_durations()
1214 pktl->pkt.dts = cur_dts; in update_initial_durations()
1216 pktl->pkt.pts = cur_dts; in update_initial_durations()
1217 pktl->pkt.duration = duration; in update_initial_durations()
1220 cur_dts = pktl->pkt.dts + pktl->pkt.duration; in update_initial_durations()
1222 if (!pktl) in update_initial_durations()
1759 PacketList *pktl = s->internal->packet_buffer; in av_read_frame() local
1761 if (pktl) { in av_read_frame()
1762 AVPacket *next_pkt = &pktl->pkt; in av_read_frame()
1770 while (pktl && next_pkt->pts == AV_NOPTS_VALUE) { in av_read_frame()
1771 if (pktl->pkt.stream_index == next_pkt->stream_index && in av_read_frame()
1772 av_compare_mod(next_pkt->dts, pktl->pkt.dts, 2ULL << (wrap_bits - 1)) < 0) { in av_read_frame()
1773 if (av_compare_mod(pktl->pkt.pts, pktl->pkt.dts, 2ULL << (wrap_bits - 1))) { in av_read_frame()
1775 next_pkt->pts = pktl->pkt.dts; in av_read_frame()
1779 last_dts = pktl->pkt.dts; in av_read_frame()
1782 pktl = pktl->next; in av_read_frame()
1792 pktl = s->internal->packet_buffer; in av_read_frame()
1807 if (pktl && ret != AVERROR(EAGAIN)) { in av_read_frame()