shithub: mcfs

Download patch

ref: d33fb00ca66876c6e663ab1c69e812fdf2e66ae4
parent: 869a8b94cbe9b216d41ac11a570f7a7ba22d0d30
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Mon Feb 8 06:52:04 EST 2021

mkvdump: print timecode and mark key frames

--- a/extra/mkvdump.c
+++ b/extra/mkvdump.c
@@ -92,7 +92,9 @@
 				}
 				sz -= 3;
 				lacing = (t[2] >> 1) & 3;
-				Bprint(&out, "(track %lld) ", x);
+				Bprint(&out, "(track %lld, timecode %d) ", x, (s16int)(t[0]<<8 | t[1]));
+				if(t[2] & 0x80)
+					Bprint(&out, "(key) ");
 				if(lacing != 0)
 					Bprint(&out, "(lacing %d) ", lacing);
 			}