MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / read_packets

Function read_packets

fftools/ffprobe.c:1718–1736  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1716}
1717
1718static int read_packets(AVTextFormatContext *tfc, InputFile *ifile)
1719{
1720 AVFormatContext *fmt_ctx = ifile->fmt_ctx;
1721 int i, ret = 0;
1722 int64_t cur_ts = fmt_ctx->start_time;
1723
1724 if (read_intervals_nb == 0) {
1725 ReadInterval interval = (ReadInterval) { .has_start = 0, .has_end = 0 };
1726 ret = read_interval_packets(tfc, ifile, &interval, &cur_ts);
1727 } else {
1728 for (i = 0; i < read_intervals_nb; i++) {
1729 ret = read_interval_packets(tfc, ifile, &read_intervals[i], &cur_ts);
1730 if (ret < 0)
1731 break;
1732 }
1733 }
1734
1735 return ret;
1736}
1737
1738static void print_dispositions(AVTextFormatContext *tfc, uint32_t disposition, SectionID section_id)
1739{

Callers 1

probe_fileFunction · 0.85

Calls 1

read_interval_packetsFunction · 0.85

Tested by

no test coverage detected