summaryrefslogtreecommitdiffstats
path: root/audio/format.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-09-23 21:12:28 +0200
committerwm4 <wm4@nowhere>2014-09-23 23:09:29 +0200
commit308d72a02ee673fc56b637b6134dd63ea258580c (patch)
tree48f7d3388ca7534fd9545828428c383f75bf39e6 /audio/format.h
parentb745c2d0050468580aec0a4e12aec854fefd1796 (diff)
downloadmpv-308d72a02ee673fc56b637b6134dd63ea258580c.tar.bz2
mpv-308d72a02ee673fc56b637b6134dd63ea258580c.tar.xz
ao_wasapi: fix fragile format-mapping code
This code tried to play with the format bits, and potentially could create invalid formats, or reinterpret obscure formats in unexpected ways. Also there was an abort() call if the winapi or mpv used a format with unexpected bit-width. This could probably easily happen; for example, mpv supports at least one 64 bit format. And what would happen on 8 bit formats anyway? Untested.
Diffstat (limited to 'audio/format.h')
0 files changed, 0 insertions, 0 deletions