| 1567 | } |
| 1568 | |
| 1569 | static void log_read_interval(const ReadInterval *interval, void *log_ctx, int log_level) |
| 1570 | { |
| 1571 | av_log(log_ctx, log_level, "id:%d", interval->id); |
| 1572 | |
| 1573 | if (interval->has_start) { |
| 1574 | av_log(log_ctx, log_level, " start:%s%s", interval->start_is_offset ? "+" : "", |
| 1575 | av_ts2timestr(interval->start, &AV_TIME_BASE_Q)); |
| 1576 | } else { |
| 1577 | av_log(log_ctx, log_level, " start:N/A"); |
| 1578 | } |
| 1579 | |
| 1580 | if (interval->has_end) { |
| 1581 | av_log(log_ctx, log_level, " end:%s", interval->end_is_offset ? "+" : ""); |
| 1582 | if (interval->duration_frames) |
| 1583 | av_log(log_ctx, log_level, "#%"PRId64, interval->end); |
| 1584 | else |
| 1585 | av_log(log_ctx, log_level, "%s", av_ts2timestr(interval->end, &AV_TIME_BASE_Q)); |
| 1586 | } else { |
| 1587 | av_log(log_ctx, log_level, " end:N/A"); |
| 1588 | } |
| 1589 | |
| 1590 | av_log(log_ctx, log_level, "\n"); |
| 1591 | } |
| 1592 | |
| 1593 | static int read_interval_packets(AVTextFormatContext *tfc, InputFile *ifile, |
| 1594 | const ReadInterval *interval, int64_t *cur_ts) |
no test coverage detected