[MPlayer-cvslog] r24542 - trunk/libao2/ao_mpegpes.c

reimar subversion at mplayerhq.hu
Sun Sep 16 11:16:46 CEST 2007


Author: reimar
Date: Sun Sep 16 11:16:45 2007
New Revision: 24542

Log:
ao_mpegpes does not support S16_LE format, do not claim it does!


Modified:
   trunk/libao2/ao_mpegpes.c

Modified: trunk/libao2/ao_mpegpes.c
==============================================================================
--- trunk/libao2/ao_mpegpes.c	(original)
+++ trunk/libao2/ao_mpegpes.c	Sun Sep 16 11:16:45 2007
@@ -217,7 +217,6 @@ static int init(int rate,int channels,in
     ao_data.channels=2;
     ao_data.outburst=2000;
     switch(format){
-	case AF_FORMAT_S16_LE:
 	case AF_FORMAT_S16_BE:
 	case AF_FORMAT_MPEG2:
 	case AF_FORMAT_AC3:
@@ -303,7 +302,7 @@ static int play(void* data,int len,int f
 	unsigned short *s=data;
 //	if(len>2000) len=2000;
 //	printf("ao_mpegpes: len=%d  \n",len);
-	if(ao_data.format==AF_FORMAT_S16_LE || ao_data.format==AF_FORMAT_AC3)
+	if(ao_data.format==AF_FORMAT_AC3)
 	    for(i=0;i<len/2;i++) s[i]=(s[i]>>8)|(s[i]<<8); // le<->be
 	send_mpeg_lpcm_packet(data, len, 0xA0, ao_data.pts, freq_id, my_ao_write);
     }



More information about the MPlayer-cvslog mailing list