[ID3 Dev] synchsafe integers

Dhanraj Birader dhanraj at nextbitcpu.com
Tue Sep 16 01:41:25 PDT 2008


Ya u r right because while extracting we need to extract only 28bits.

Thank u........
regards
Dhanraj biradar

On Mon, Sep 15, 2008 at 6:16 PM, Ben Bennett <fiji at ayup.limey.net> wrote:

> On Mon, Sep 15, 2008 at 01:35:01PM +0530, Dhanraj Birader wrote:
> >  If bit 7 is zero then keep it as it is.
>
> No!  Otherwise you can not correctly convert back since multiple
> synchsafe ints would map to the same number.
>
>
> > On Sat, Sep 13, 2008 at 1:43 PM, Daniel Wechsler <daaaaaaniel at gmx.de>
> wrote:
> > > Bit 7 must always be 0, so 1111 1111 becomes 0000 0001  0111 1111.
> > >
> > > But what is if bit 7 is already 0? Do I have to add a 0, too? [0000
> 0001
> > >  0111 1111 -> 0000 0010  0111 1111]
>
> Yes.  That is correct.
>
> Before Conversion      After Conversion
> --------------------   --------------------
> 0000 0000  1111 1111   0000 0001  0111 1111
> 0000 0001  0111 1111   0000 0010  0111 1111
>
> If you did not convert the second one, then you would be unable to
> tell what '0000 0001  0111 1111' mapped to.
>
>          Hope that helps.
>
>                      -ben
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: id3v2-unsubscribe at id3.org
> For additional commands, e-mail: id3v2-help at id3.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.id3.org/pipermail/id3v2/attachments/20080916/4e92f5bb/attachment.html>


More information about the ID3v2 mailing list