[Mplayer-cvslog] CVS: main dec_audio.c,1.79,1.80
Arpi of Ize
arpi at mplayer.dev.hu
Wed Jan 30 23:05:49 CET 2002
Update of /cvsroot/mplayer/main
In directory mplayer:/var/tmp.root/cvs-serv13025
Modified Files:
dec_audio.c
Log Message:
possible AC3 fix, by Marcus Blomenkamp <Marcus.Blomenkamp at epost.de>
Index: dec_audio.c
===================================================================
RCS file: /cvsroot/mplayer/main/dec_audio.c,v
retrieving revision 1.79
retrieving revision 1.80
diff -u -r1.79 -r1.80
--- dec_audio.c 17 Jan 2002 01:11:21 -0000 1.79
+++ dec_audio.c 30 Jan 2002 22:05:46 -0000 1.80
@@ -320,7 +320,7 @@
int driver=sh_audio->codec->driver;
sh_audio->samplesize=2;
-#if WORDS_BIGENDIAN
+#ifdef WORDS_BIGENDIAN
sh_audio->sample_format=AFMT_S16_BE;
#else
sh_audio->sample_format=AFMT_S16_LE;
@@ -405,8 +405,9 @@
case AFM_HWAC3:
// Dolby AC3 audio:
sh_audio->audio_out_minsize=4*256*6;
- sh_audio->sample_format = AFMT_AC3;
- sh_audio->channels=1;
+// sh_audio->sample_format = AFMT_AC3;
+// sh_audio->sample_format = AFMT_S16_LE;
+ sh_audio->channels=2;
break;
case AFM_GSM:
// MS-GSM audio codec:
@@ -630,8 +631,8 @@
// o_bps is calculated from samplesize*channels*samplerate
// a single ac3 frame is always translated to 6144 byte packet. (zero padding)
- sh_audio->channels=1;
- sh_audio->samplesize=4; // 1*4*(6*256) = 6144 (very TRICKY!)
+ sh_audio->channels=2;
+ sh_audio->samplesize=2; // 2*2*(6*256) = 6144 (very TRICKY!)
break;
}
More information about the MPlayer-cvslog
mailing list