shithub: libtags

Download patch

ref: 54c79eb8a7b90d1503104761b01f037a83ba2391
parent: d66a83c26b96ac8931ffffbbea473557baa96502
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Fri May 29 10:39:55 EDT 2020

id3v2: make mp3 format check better

--- a/id3v2.c
+++ b/id3v2.c
@@ -372,7 +372,7 @@
 	if(ctx->read(ctx, d, sizeof(d)) != sizeof(d))
 		return -1;
 	if(!isid3(d)){ /* no tags, but the stream information is there */
-		if(d[0] != 0xff || (d[1] & 0xe0) != 0xe0)
+		if(d[0] != 0xff || (d[1] & 0xfe) != 0xfa)
 			return -1;
 		ctx->seek(ctx, -(int)sizeof(d), 1);
 		getduration(ctx, 0);