summaryrefslogtreecommitdiffstats
path: root/libao2
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-03-06 13:22:48 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-03-06 13:22:48 +0000
commit7c52124a2bd4913092805fb5831514e55cbf121b (patch)
treeb62a6382718ce13d4c25177cb66d4cf3835a3f6e /libao2
parentb33adcdd02e548818a6a8084bb64dac4e39a6a8e (diff)
downloadmpv-7c52124a2bd4913092805fb5831514e55cbf121b.tar.bz2
mpv-7c52124a2bd4913092805fb5831514e55cbf121b.tar.xz
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] git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28850 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libao2')
-rw-r--r--libao2/ao_dsound.c2
-rw-r--r--libao2/ao_win32.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/libao2/ao_dsound.c b/libao2/ao_dsound.c
index acd59983dd..a654865b76 100644
--- a/libao2/ao_dsound.c
+++ b/libao2/ao_dsound.c
@@ -431,7 +431,7 @@ static int init(int rate, int channels, int format, int flags)
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_dsound: format %s not supported defaulting to Signed 16-bit Little-Endian\n",af_fmt2str_short(format));
diff --git a/libao2/ao_win32.c b/libao2/ao_win32.c
index 93622b944b..f3e0df1ce1 100644
--- a/libao2/ao_win32.c
+++ b/libao2/ao_win32.c
@@ -155,7 +155,7 @@ static int init(int rate,int channels,int format,int flags)
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));