[MPlayer-dev-eng] [PATCH] Metadata retrieval from FLAc audio files.

Benjamin Zores ben at geexbox.org
Sun Mar 12 12:34:33 CET 2006


On Sat, 11 Mar 2006 14:18:06 +0100
Benjamin Zores <ben at geexbox.org> wrote:

>Hi,
>On Sat, Mar 11, 2006 at 02:18:06PM +0100, Benjamin Zores wrote:
>> +        length = le2me_32 (*(uint32_t *) ptr);
>> +        ptr += 4 + length;
>> +
>> +        user_comment_list_length = le2me_32 (*(uint32_t *) ptr);
>> +        ptr += 4;

> Since ptr AFAICT might be non-aligned, casting to (uint32_t *) is wrong.

> Greetings,
> Reimar Döffinger

I reply to myself (even if it's Reimar's reply) as I had problems with my mailer yesterday
and thus, only was able to read your reply through devlist archives.

Anyhow, what do you suggest to do then ?
When not cast, MPlayer crashes.
This piece of code was taken from latest xine-lib, only adapted to MPlayer's API.
But the algorithm/way_it_is_done behind isn't mine.

Just tell me how to solve the dilemna and I'll update my patch.

Ben




More information about the MPlayer-dev-eng mailing list