[Mplayer-cvslog] CVS: main/libao2 ao_mpegpes.c,1.15,1.16

Arpi of Ize arpi at mplayerhq.hu
Tue Feb 4 00:30:41 CET 2003


Update of /cvsroot/mplayer/main/libao2
In directory mail:/var/tmp.root/cvs-serv20832

Modified Files:
	ao_mpegpes.c 
Log Message:
hwac3 fix
bugrep & testing by Stefan Baehre <ste.ba at gmx.de>


Index: ao_mpegpes.c
===================================================================
RCS file: /cvsroot/mplayer/main/libao2/ao_mpegpes.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- ao_mpegpes.c	28 Dec 2002 12:04:57 -0000	1.15
+++ ao_mpegpes.c	3 Feb 2003 23:30:27 -0000	1.16
@@ -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);
     }



More information about the MPlayer-cvslog mailing list