Lines Matching defs:pkt

840 static int seg_write_packet(AVFormatContext *s, AVPacket *pkt)
843 AVStream *st = s->streams[pkt->stream_index];
856 uint8_t *pkt_extradata = av_packet_get_side_data(pkt, AV_PKT_DATA_NEW_EXTRADATA, &pkt_extradata_size);
890 pkt->stream_index, av_ts2str(pkt->pts), av_ts2timestr(pkt->pts, &st->time_base),
891 av_ts2timestr(pkt->duration, &st->time_base),
892 pkt->flags & AV_PKT_FLAG_KEY,
893 pkt->stream_index == seg->reference_stream_index ? seg->frame_count : -1);
895 if (pkt->stream_index == seg->reference_stream_index &&
896 (pkt->flags & AV_PKT_FLAG_KEY || seg->break_non_keyframes) &&
899 (pkt->pts != AV_NOPTS_VALUE &&
900 av_compare_ts(pkt->pts, st->time_base,
904 seg->cur_entry.end_time = (double)pkt->pts * av_q2d(st->time_base);
914 seg->cur_entry.start_time = (double)pkt->pts * av_q2d(st->time_base);
915 seg->cur_entry.start_pts = av_rescale_q(pkt->pts, st->time_base, AV_TIME_BASE_Q);
922 if (pkt->stream_index == seg->reference_stream_index) {
923 if (pkt->pts != AV_NOPTS_VALUE)
925 FFMAX(seg->cur_entry.end_time, (double)(pkt->pts + pkt->duration) * av_q2d(st->time_base));
926 seg->cur_entry.last_duration = pkt->duration;
931 seg->avf->url, pkt->stream_index,
932 av_ts2str(pkt->pts), av_ts2timestr(pkt->pts, &st->time_base), seg->frame_count);
936 pkt->stream_index,
938 av_ts2str(pkt->pts), av_ts2timestr(pkt->pts, &st->time_base),
939 av_ts2str(pkt->dts), av_ts2timestr(pkt->dts, &st->time_base));
944 if (pkt->pts != AV_NOPTS_VALUE)
945 pkt->pts += offset;
946 if (pkt->dts != AV_NOPTS_VALUE)
947 pkt->dts += offset;
950 av_ts2str(pkt->pts), av_ts2timestr(pkt->pts, &st->time_base),
951 av_ts2str(pkt->dts), av_ts2timestr(pkt->dts, &st->time_base));
953 ret = ff_write_chained(seg->avf, pkt->stream_index, pkt, s,
990 const AVPacket *pkt)
996 int ret = oc->oformat->check_bitstream(oc, ost, pkt);