[pkg-mad-maintainers] Bug#539871: Bug#539871: libid3tag encoding patch update

Kurt Roeckx kurt at roeckx.be
Fri Sep 18 16:23:46 UTC 2009


Hi,

As I understand it, the ID3 v2.3 doc says TYER is a numeric string that
is always 4 chars long, and is always encoded in latin1, does not need
an encoding.

So would you say that a length of 5 in that case is actually
unusual, and the code should probably never try to read the
encoding, but that you're just trying in case some files
are actually like that?

I can't seem to find any mp3 files with the TYER tag, it was
replaced by TDRC in v2.4.


Kurt

On Tue, Aug 04, 2009 at 09:48:31AM +0200, Andreas Henriksson wrote:
> Package: libid3tag
> Version: 0.15.1b-10
> Severity: important
> 
> Hector Santos found a problem with the current patch and seems to have
> figured out a much better fix. See forwarded message below.
> 
> Regards,
> Andreas Henriksson
> 
> ----- Forwarded message from Hector Santos <hsantos at santronics.com> -----
> 
> Date: Fri, 24 Jul 2009 18:26:56 -0400
> From: Hector Santos <hsantos at santronics.com>
> To: andreas at fatal.se
> Subject: libid3tag patch update
> User-Agent: Thunderbird 2.0.0.0 (Windows/20070326)
> 
> Hello, I had a problem with a MP3 file using the libid3tag library and
> after tracking it down, I looked for a current patch. I found yours:
> 
> http://patch-tracking.debian.net/patch/series/view/libid3tag/0.15.1b-10/11_unknown_encoding
> 
> This work, but it doesn't solve the issue of why it is reading the
> TYER tags wrong.
> 
> The patch I have (which includes your changes) isL
> 
> 
>     end = data + length;
> 
> +   length 4 is expected, if 5 then get encoding byte
> +   encoding = 0;
> +   if (length == 5) {
> +       encoding = id3_parse_uint(&data, 1);
> +   }
>     string   = id3_parse_string(&data, end - data, encoding, 0);
> 
>     if (!string) {
>         continue;
>     }
> 
>     if (id3_ucs4_length(string) < 4) {
>       free(string);
>       continue;
>     }
> 
> I am not an expert with this patch systems, so I hope you can update
> the library for the community.
> 
> Thanks
> 
> -- 
> Sincerely
> 
> Hector Santos
> http://www.santronics.com
> 
> 
> 
> ----- End forwarded message -----
> 
> 
> 
> 
> _______________________________________________
> pkg-mad-maintainers mailing list
> pkg-mad-maintainers at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/pkg-mad-maintainers
> 





More information about the pkg-mad-maintainers mailing list