From 60bd665e74cfeeaf70882173a0dd56c883e2014a Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Fri, 12 Mar 2021 03:55:34 +0100 Subject: Added to git tree --- misc/brokentags.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 misc/brokentags.c (limited to 'misc') diff --git a/misc/brokentags.c b/misc/brokentags.c new file mode 100644 index 0000000..e850057 --- /dev/null +++ b/misc/brokentags.c @@ -0,0 +1,16 @@ +/* I tried to use it to fix broken tags (call id3_get_text), but +it really didn't help much (half of title tag, instead of one fourth) */ +void id3_fix_text(struct id3_frame *frame, int offset) { + int i, size; + char *string; + + size = frame->fr_size - offset - 1; + string = ID3_TEXT_FRAME_PTR(frame) + offset; + + for (offset=0, i=0;i0;offset--) string[i-offset]=0; +} -- cgit v1.2.3