shithub: libtags

Download patch

ref: 20eb728d82e67ea8fb0f5ceade56e1a3b1076c84
parent: 090895882eb536348924cbbedf59b1fc22e8658e
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Tue Mar 5 18:10:32 EST 2024

wav: see if there is an id3v2 tag at the end

Audacity appends id3v2 tag at the end if Unicode tags were used.
Makes sense to try parsing it as well.

binary files a/input/noise.wav b/input/noise.wav differ
--- a/wav.c
+++ b/wav.c
@@ -86,5 +86,9 @@
 			return -1;
 	}
 
+	/* some software may append an id3v2 tag */
+	if(i > 0 && ctx->read(ctx, d, 8) == 8 && memcmp(d, "id3 ", 4) == 0)
+		tagid3v2(ctx);
+
 	return i > 0 ? 0 : -1;
 }