shithub: libtags

Download patch

ref: eaaa32c852f9c8229007be1f2c1842eb21eededb
parent: 03c517ec41660f0eddd0385b858a745230b22736
author: Sigrid Solveig Haflínudóttir <[email protected]>
date: Mon Feb 19 13:53:03 EST 2024

m4a: "gnre" is non-standard id3v1 style (non-text) - check before reading the value

--- a/m4a.c
+++ b/m4a.c
@@ -137,7 +137,7 @@
 			sz -= 4;
 			snprint((char*)d, ctx->bufsz, "%d", beuint(d));
 			txtcb(ctx, type, "", d);
-		}else if(type == Tgenre){
+		}else if(type == Tgenre && dtype != 1){
 			if(ctx->read(ctx, d, 2) != 2)
 				return -1;
 			sz -= 2;