ao_wasapi: fix regression

This probably fixes the regression introduced with commit 6147bcce.
This commit is contained in:
wm4 2015-06-27 17:59:27 +02:00
parent 2a67208f40
commit 6ffb1e2b66
1 changed files with 1 additions and 1 deletions

View File

@ -310,7 +310,7 @@ static int format_from_waveformat(WAVEFORMATEX *wf)
// configured "special" formats, otherwise it will return 0. // configured "special" formats, otherwise it will return 0.
if (wf->wBitsPerSample % 8) if (wf->wBitsPerSample % 8)
return 0; return 0;
return af_fmt_change_bytes(format, wf->wBitsPerSample / 8) * 8; return af_fmt_change_bytes(format, wf->wBitsPerSample / 8);
} }
static bool chmap_from_waveformat(struct mp_chmap *channels, const WAVEFORMATEX *wf) static bool chmap_from_waveformat(struct mp_chmap *channels, const WAVEFORMATEX *wf)