[MPlayer-dev-eng] compiling mplayer with gcc 4.6, broken audio decoding

Alexander Strange astrange at ithinksw.com
Thu Apr 7 06:21:38 CEST 2011


On Apr 4, 2011, at 12:50 PM, Dominik 'Rathann' Mierzejewski wrote:

> On Thursday, 31 March 2011 at 12:12, Kazuo Teramoto wrote:
>> On Thu, Mar 31, 2011 at 6:25 AM, Kazuo Teramoto <kaz.rag at gmail.com> wrote:
>>> But if I change the -O2 to -O0, I don't get the warning AND I don't
>>> get the very high pitch sound with mp3lib.
>>> 
>>> So, in summary compiling the mp3lib/dct64_sse.c with gcc 4.6 and -O0,
>>> I don't get the high pitch sound with mp3lib.
>>> 
>> 
>> I learned about the --save-temps! (sorry about my lack of gcc expertise =])
>> 
>> So I'm attaching the .s of -O1 and -O0 of the dct64_sse.c file compile
>> with the gcc 4.6 on my machine.
> 
> Hm, looks like gcc is doing something funny with the nnnn table, folding
> it into one 1<<31 entry and ignoring aligned(16).
> 
> Regards,
> Dominik

There is probably an asm input constraint referring to nnnn[0] or something.
gcc 4.6 will remove the rest of the table and keep the 0 entry in this case.

That reminds me, I found the same problem in swscale and forgot to fix it.



More information about the MPlayer-dev-eng mailing list