[Mplayer-cvslog] CVS: main dec_audio.c,1.21,1.22
Jürgen Keil
jkeil at mplayer.dev.hu
Sat Jul 14 18:58:57 CEST 2001
Update of /cvsroot/mplayer/main
In directory mplayer:/var/tmp.root/cvs-serv9602
Modified Files:
dec_audio.c
Log Message:
On big-endian architectures, all audio decoders default to big-endian 16-bit
audio sample format.
Add support to play both big- and little-endian 16-bit audio format to the
sun audio_out driver.
Index: dec_audio.c
===================================================================
RCS file: /cvsroot/mplayer/main/dec_audio.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- dec_audio.c 13 Jul 2001 08:54:24 -0000 1.21
+++ dec_audio.c 14 Jul 2001 16:58:55 -0000 1.22
@@ -61,7 +61,11 @@
extern int acm_decode_audio(sh_audio_t *sh_audio, void* a_buffer,int minlen,int maxlen);
sh_audio->samplesize=2;
+#if WORDS_BIGENDIAN
+sh_audio->sample_format=AFMT_S16_BE;
+#else
sh_audio->sample_format=AFMT_S16_LE;
+#endif
sh_audio->samplerate=0;
//sh_audio->pcm_bswap=0;
More information about the MPlayer-cvslog
mailing list