From 92c59814f3b0109c37bc6af05fbdd37b4180497e Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Wed, 6 Apr 2005 13:18:32 +0000 Subject: [PATCH] Output timecodes in summary mode in a form that's easier to read, too, and not only in milliseconds. --- src/info/mkvinfo.cpp | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/info/mkvinfo.cpp b/src/info/mkvinfo.cpp index f9902cc67..0486e47b0 100644 --- a/src/info/mkvinfo.cpp +++ b/src/info/mkvinfo.cpp @@ -1634,17 +1634,19 @@ def_handle2(block_group, for (fidx = 0; fidx < frame_sizes.size(); fidx++) { if (bduration != -1.0) - mxinfo(Y("%c frame, track %u, timecode %lld, duration %.3f, size %d, " - "adler 0x%08x\n"), bref_found && fref_found ? 'B' : + mxinfo(Y("%c frame, track %u, timecode %lld (" FMT_TIMECODE + "), duration %.3f, size %d, adler 0x%08x\n"), + bref_found && fref_found ? 'B' : bref_found ? 'P' : !fref_found ? 'I' : '?', - lf_tnum, lf_timecode, bduration, frame_sizes[fidx], - frame_adlers[fidx]); + lf_tnum, lf_timecode, ARG_TIMECODE(lf_timecode), + bduration, frame_sizes[fidx], frame_adlers[fidx]); else - mxinfo(Y("%c frame, track %u, timecode %lld, size %d, adler " - "0x%08x\n"), bref_found && fref_found ? 'B' : + mxinfo(Y("%c frame, track %u, timecode %lld (" FMT_TIMECODE + "), size %d, adler 0x%08x\n"), + bref_found && fref_found ? 'B' : bref_found ? 'P' : !fref_found ? 'I' : '?', - lf_tnum, lf_timecode, frame_sizes[fidx], - frame_adlers[fidx]); + lf_tnum, lf_timecode, ARG_TIMECODE(lf_timecode), + frame_sizes[fidx], frame_adlers[fidx]); } } else if (verbose > 2) show_element(NULL, 2, Y("[%c frame for track %u, timecode %lld]"),