[Mplayer-dvb] Re: mpegpes audio output broken
Arpi
arpi at thot.banki.hu
Tue Feb 4 00:04:34 CET 2003
Hi,
> > works with both changes or the second one only?
>
> The second is enough for me. The first fix doesn't change anything
> here.
hmm. it's bad.
try this please:
Index: ao_mpegpes.c
===================================================================
RCS file: /cvsroot/mplayer/main/libao2/ao_mpegpes.c,v
retrieving revision 1.15
diff -u -r1.15 ao_mpegpes.c
--- ao_mpegpes.c 28 Dec 2002 12:04:57 -0000 1.15
+++ ao_mpegpes.c 3 Feb 2003 23:03:45 -0000
@@ -97,6 +97,7 @@
case AFMT_S16_LE:
case AFMT_S16_BE:
case AFMT_MPEG:
+ case AFMT_AC3:
ao_data.format=format;
break;
default:
@@ -178,7 +179,7 @@
unsigned short *s=data;
// if(len>2000) len=2000;
// printf("ao_mpegpes: len=%d \n",len);
- if(ao_data.format==AFMT_S16_LE)
+ if(ao_data.format==AFMT_S16_LE || ao_data.format==AFMT_AC3)
for(i=0;i<len/2;i++) s[i]=(s[i]>>8)|(s[i]<<8); // le<->be
send_lpcm_packet(data,len,0xA0,ao_data.pts,freq_id);
}
A'rpi / Astral & ESP-team
--
Developer of MPlayer, the Movie Player for Linux - http://www.MPlayerHQ.hu
"However, many people beg for its inclusion in Debian. Why?" - Gabucino
"Because having new software in Debian is good." - Josselin Mouette
"Because having good software in Debian is new." - Gabucino
More information about the MPlayer-dvb
mailing list