shithub: mcfs

Download patch

ref: 9ac034a0b81b6b1c9c3d0e77dda0aec255ad182d
parent: 7cf8106fed6f1848e20820fa4c1d360309e0a6cb
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Wed Dec 16 15:58:33 EST 2020

ebml: treat unknown size as 0 for now

--- a/ebml.c
+++ b/ebml.c
@@ -343,6 +343,8 @@
 		v |= c;
 		if(v & m){
 			*out = isid ? v : (v & ~m);
+			if(!isid && *out == (1<<(7*n))-1)
+				*out = 0;
 			return n;
 		}
 		if(!isid)