[MPlayer-cvslog] r36948 - trunk/libao2/ao_sndio.c
reimar
subversion at mplayerhq.hu
Wed Feb 26 20:54:17 CET 2014
Author: reimar
Date: Wed Feb 26 20:54:17 2014
New Revision: 36948
Log:
ao_sndio: simplify, don't care about 8-bit endianness.
Modified:
trunk/libao2/ao_sndio.c
Modified: trunk/libao2/ao_sndio.c
==============================================================================
--- trunk/libao2/ao_sndio.c Wed Feb 26 20:54:15 2014 (r36947)
+++ trunk/libao2/ao_sndio.c Wed Feb 26 20:54:17 2014 (r36948)
@@ -130,8 +130,7 @@ static int init(int rate, int channels,
bpf = par.bps * par.pchan;
ao_data.format = af_bits2fmt(8 * par.bps);
ao_data.format |= par.sig ? AF_FORMAT_SI : AF_FORMAT_US;
- if (par.bits > 8)
- ao_data.format |= par.le ? AF_FORMAT_LE : AF_FORMAT_BE;
+ ao_data.format |= par.le ? AF_FORMAT_LE : AF_FORMAT_BE;
ao_data.channels = par.pchan;
ao_data.bps = bpf * par.rate;
ao_data.buffersize = par.bufsz * bpf;
More information about the MPlayer-cvslog
mailing list