Mercurial > mplayer.hg
diff libao2/ao_win32.c @ 28815:ce24a9f06ccb
The 8 bit per sample formats are unsigned on Windows, fixes playback with
-af format=s8 for -ao dsound and -ao win32.
Patch by Zhou Zongyi [zhouzongyi (at) pset suntec net]
author | reimar |
---|---|
date | Fri, 06 Mar 2009 13:22:48 +0000 |
parents | afbd8dd23299 |
children | c64464d924d5 |
line wrap: on
line diff
--- a/libao2/ao_win32.c Fri Mar 06 12:56:13 2009 +0000 +++ b/libao2/ao_win32.c Fri Mar 06 13:22:48 2009 +0000 @@ -155,7 +155,7 @@ case AF_FORMAT_AC3: case AF_FORMAT_S24_LE: case AF_FORMAT_S16_LE: - case AF_FORMAT_S8: + case AF_FORMAT_U8: break; default: mp_msg(MSGT_AO, MSGL_V,"ao_win32: format %s not supported defaulting to Signed 16-bit Little-Endian\n",af_fmt2str_short(format));