shithub: mcfs

Download patch

ref: 21b0ea38419d431dc8d9492df9761c348df3558b
parent: b4007e735d619438ba3dde8e076bd0afaf1ac530
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Wed Feb 10 11:54:54 EST 2021

mkvdump: show hidden/discard block flags

--- a/extra/mkvdump.c
+++ b/extra/mkvdump.c
@@ -93,8 +93,14 @@
 				sz -= 3;
 				lacing = (t[2] >> 1) & 3;
 				Bprint(&out, "(track %lld, timecode %d) ", x, (s16int)(t[0]<<8 | t[1]));
-				if(s.id == ESimpleBlock && (t[2] & 0x80) != 0)
-					Bprint(&out, "(key) ");
+				if(s.id == ESimpleBlock){
+					if(t[2] & 0x80)
+						Bprint(&out, "(key) ");
+					if(t[2] & 0x01)
+						Bprint(&out, "(discard) ");
+				}
+				if(t[2] & 0x08)
+					Bprint(&out, "(hidden) ");
 				if(lacing != 0)
 					Bprint(&out, "(lacing %d) ", lacing);
 			}