ref: 3389f5793e35a290431bd1a2f1d4aa960f81f454
parent: 8386fb7b891a0aac55e8f5c9ffa350a9491f142d
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Wed Mar 6 19:27:08 EST 2024
id3v2: make sure duration is left as is if already calculated
--- a/id3v2.c
+++ b/id3v2.c
@@ -308,7 +308,7 @@
uint x;
int xversion, xlayer, xbitrate, i;
- if(ctx->read(ctx, ctx->buf, 256) != 256)
+ if(ctx->duration != 0 || ctx->read(ctx, ctx->buf, 256) != 256)
return;
x = beuint((uint8_t*)ctx->buf);