[Mplayer-dvb] Re: mpegpes audio output broken
Arpi
arpi at thot.banki.hu
Mon Feb 3 23:04:48 CET 2003
Hi,
> > hwac3 was broken in rc3, but was fixed about a week ago in cvs.
> > at least for oss/alsa. i can't test ao_mpegpes with hwac3 but it should
> > work. if not, find teh exact cvs date when it gone broken.
> > 'cvs log ao_mpegpes.c' may help to find possible dates.
>
> Ok, just did that.
>
> Revision 1.12 of that file works, revision 1.13 doesn't.
Hmm.
Could you try to add AFMT_AC3 to teh supported format list:
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 22:03:13 -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:
if still not work, also try to remove this if:
@@ -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)
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);
}
and tell me the results
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