[MPlayer-cvslog] r30279 - trunk/libao2/ao_alsa.c
reimar
subversion at mplayerhq.hu
Mon Jan 11 20:40:58 CET 2010
Author: reimar
Date: Mon Jan 11 20:40:58 2010
New Revision: 30279
Log:
Use af_fmt2bits, it should give more sensible values than snd_pcm_format_physical_width,
especially for AC3.
Modified:
trunk/libao2/ao_alsa.c
Modified: trunk/libao2/ao_alsa.c
==============================================================================
--- trunk/libao2/ao_alsa.c Mon Jan 11 20:37:50 2010 (r30278)
+++ trunk/libao2/ao_alsa.c Mon Jan 11 20:40:58 2010 (r30279)
@@ -574,7 +574,7 @@ static int init(int rate_hz, int channel
return 0;
}
- bytes_per_sample = snd_pcm_format_physical_width(alsa_format) / 8;
+ bytes_per_sample = af_fmt2bits(ao_data.format) / 8;
bytes_per_sample *= ao_data.channels;
ao_data.bps = ao_data.samplerate * bytes_per_sample;
More information about the MPlayer-cvslog
mailing list