Mercurial > mplayer.hg
changeset 9265:c9b1b73339da
hwac3 fix
bugrep & testing by Stefan Baehre <ste.ba@gmx.de>
author | arpi |
---|---|
date | Mon, 03 Feb 2003 23:30:27 +0000 |
parents | 2c37b2fe05ee |
children | 8ff6af5abc97 |
files | libao2/ao_mpegpes.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libao2/ao_mpegpes.c Mon Feb 03 22:39:01 2003 +0000 +++ b/libao2/ao_mpegpes.c Mon Feb 03 23:30:27 2003 +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: @@ -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); }