summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-09-16 09:16:45 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-09-16 09:16:45 +0000
commit455de9ca0500d5267e9938e6406082b635183870 (patch)
tree31c465cfa1bc6f87b2509867be7e8e5389856d81
parente9ea243fbd51de37372e27949ed9b64979365ee7 (diff)
downloadmpv-455de9ca0500d5267e9938e6406082b635183870.tar.bz2
mpv-455de9ca0500d5267e9938e6406082b635183870.tar.xz
ao_mpegpes does not support S16_LE format, do not claim it does!
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24542 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--libao2/ao_mpegpes.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libao2/ao_mpegpes.c b/libao2/ao_mpegpes.c
index b2dde6ae9c..59cba696ec 100644
--- a/libao2/ao_mpegpes.c
+++ b/libao2/ao_mpegpes.c
@@ -217,7 +217,6 @@ static int init(int rate,int channels,int format,int flags){
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 flags){
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);
}