diff mbox series

[FFmpeg-devel,1/2] ffprobe: print packet timebase

Message ID Mg5rGO8--3-2@lynne.ee
State New
Headers show
Series [FFmpeg-devel,1/2] ffprobe: print packet timebase | expand

Checks

Context Check Description
andriy/x86_make success Make finished
andriy/x86_make_fate success Make fate finished
andriy/PPC64_make success Make finished
andriy/PPC64_make_fate success Make fate finished

Commit Message

Lynne Aug. 2, 2021, 12:35 p.m. UTC
(One-line) Patch attached
Subject: [PATCH 1/2] ffprobe: print packet timebase

---
 fftools/ffprobe.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/fftools/ffprobe.c b/fftools/ffprobe.c
index f411ba35b5..2f1d3f58d4 100644
--- a/fftools/ffprobe.c
+++ b/fftools/ffprobe.c
@@ -2174,6 +2174,7 @@  static void show_packet(WriterContext *w, InputFile *ifile, AVPacket *pkt, int p
     print_time("pts_time",        pkt->pts, &st->time_base);
     print_ts  ("dts",             pkt->dts);
     print_time("dts_time",        pkt->dts, &st->time_base);
+    if (pkt->time_base.num && pkt->time_base.den) print_q("time_base", pkt->time_base, '/');
     print_duration_ts("duration",        pkt->duration);
     print_duration_time("duration_time", pkt->duration, &st->time_base);
     print_val("size",             pkt->size, unit_byte_str);