From 0adfd9ae76dcf2d782f0173c75fdc06328d778f2 Mon Sep 17 00:00:00 2001 From: arpi Date: Mon, 3 Feb 2003 23:30:27 +0000 Subject: [PATCH] hwac3 fix bugrep & testing by Stefan Baehre git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9266 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libao2/ao_mpegpes.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libao2/ao_mpegpes.c b/libao2/ao_mpegpes.c index e00acde8f0..6c516fc214 100644 --- a/libao2/ao_mpegpes.c +++ b/libao2/ao_mpegpes.c @@ -97,6 +97,7 @@ static int init(int rate,int channels,int format,int flags){ case AFMT_S16_LE: case AFMT_S16_BE: case AFMT_MPEG: + case AFMT_AC3: ao_data.format=format; break; default: @@ -178,7 +179,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==AFMT_S16_LE) + if(ao_data.format==AFMT_S16_LE || ao_data.format==AFMT_AC3) for(i=0;i>8)|(s[i]<<8); // le<->be send_lpcm_packet(data,len,0xA0,ao_data.pts,freq_id); }