changeset 24522:89bae6fd11fe

ao_mpegpes does not support S16_LE format, do not claim it does!
author reimar
date Sun, 16 Sep 2007 09:16:45 +0000
parents 186626edd969
children 72d1de1a3f04
files libao2/ao_mpegpes.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libao2/ao_mpegpes.c	Sun Sep 16 09:00:45 2007 +0000
+++ b/libao2/ao_mpegpes.c	Sun Sep 16 09:16:45 2007 +0000
@@ -217,7 +217,6 @@
     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 @@
 	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);
     }