Mercurial > mplayer.hg
diff libao2/ao_win32.c @ 30240:1c55c7f6874b
More uses of AF_FORMAT_IS_AC3
author | reimar |
---|---|
date | Mon, 11 Jan 2010 20:02:46 +0000 |
parents | 0f1b5b68af32 |
children | 02b9c1a452e1 |
line wrap: on
line diff
--- a/libao2/ao_win32.c Mon Jan 11 19:55:07 2010 +0000 +++ b/libao2/ao_win32.c Mon Jan 11 20:02:46 2010 +0000 @@ -180,7 +180,7 @@ wformat.Format.cbSize = (channels>2)?sizeof(WAVEFORMATEXTENSIBLE)-sizeof(WAVEFORMATEX):0; wformat.Format.nChannels = channels; wformat.Format.nSamplesPerSec = rate; - if(format == AF_FORMAT_AC3) + if(AF_FORMAT_IS_AC3(format)) { wformat.Format.wFormatTag = WAVE_FORMAT_DOLBY_AC3_SPDIF; wformat.Format.wBitsPerSample = 16;