[MPlayer-users] Problems with mplayer on PPC
Arpi
arpi at thot.banki.hu
Wed Apr 24 04:11:01 CEST 2002
Hi,
> >
> > if(sh_audio->format!=0x736F7774){ // "twos" is swapped byteorder
> > ...
> >
> > and tell me if it's ok now
>
> Yes, that fixes it, with at least the AVI file I tried and
> with all WAVs I tried.
ehh it was a wrong way to fix, sorry
so, try this please: (ad_pcm.c)
change this line:
default: sh_audio->sample_format=(sh_audio->samplesize==2)?AFMT_S16_LE:AFMT_U8;
to:
default: sh_audio->sample_format=(sh_audio->samplesize==2)?AFMT_S16_BE:AFMT_U8;
(so change AFMT_S16_LE -> AFMT_S16_BE)
and tell me if iy's ok (don't forget to change back that if() bellow to
the original code)
> With a VOB from a DVD, it didn't. But that may be another
> problem. I'll have to test it more to give a conclusive
> answer.
does it have LPCM audio???
for ac3, problems are in codec, i can't help with that...
for lpcm, try this in ad_dvdpcm.c:
find this:
len=demux_read_data(sh_audio->ds,buf,(minlen+3)&(~3));
for(j=0;j<len;j+=2){
char x=buf[j];
buf[j]=buf[j+1];
buf[j+1]=x;
}
and remove the whole for(){ ... } section
and tell me if it's ok
A'rpi / Astral & ESP-team
--
Developer of MPlayer, the Movie Player for Linux - http://www.MPlayerHQ.hu
More information about the MPlayer-users
mailing list