diff options
author | wm4 <wm4@nowhere> | 2015-05-05 22:08:04 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-05-05 22:10:33 +0200 |
commit | 4ffcf2531bb525c19c3b6df75ecb27c5cffbdd28 (patch) | |
tree | 6020004b821abf78243bccd25a8c45c2b9184f78 /demux/matroska.h | |
parent | 656703e279bc88cd7dc81e30f333e4104b6687b2 (diff) | |
download | mpv-4ffcf2531bb525c19c3b6df75ecb27c5cffbdd28.tar.bz2 mpv-4ffcf2531bb525c19c3b6df75ecb27c5cffbdd28.tar.xz |
ao_coreaudio_utils: decide formats by comparing raw bits
Instead of trying to use af_format_conversion_score() (which tries to be
all kinds of clever), just compare the raw bits as a quality measure. Do
this because otherwise, weird formats like padded 24 bit formats will be
excluded, even though they might be the highest precision formats for
some hardware.
This means that for now, the user would have to check whether the format
is usable at all before calling ca_asbd_is_better(). But since this is
currently only used for ao_coreaudio.c and for the physical format, it
doesn't matter.
If coreaudio-exclusive should get PCM support, the best would be to
revert this change, and to add support for 24 bit formats directly.
Diffstat (limited to 'demux/matroska.h')
0 files changed, 0 insertions, 0 deletions