aboutsummaryrefslogtreecommitdiffhomepage
path: root/TOOLS/old-configure
diff options
context:
space:
mode:
authorGravatar wm4 <wm4@nowhere>2015-06-25 17:32:00 +0200
committerGravatar wm4 <wm4@nowhere>2015-06-25 17:32:00 +0200
commitfd1194de3c4b14126269f2db918c0f8bcf2bf34a (patch)
treedbc3146079a212b5fb17c7aa3941a90d0834ef74 /TOOLS/old-configure
parent5d71188c9939a0a881b82982efb5203d6704fd0b (diff)
audio: fix channel map fallback selection (again)
The speaker replacement nonsense sometimes made blatantly incorrect decisions. In this case, it prefered a 7.1(rear) upmix over outputting 5.1(side) as 5.1, which makes no sense at all. This happened because 5.1 and 7.1(rear) appeared equivalent to the final selection, as both of them lose the sl-sr channels. The old code was too stupid to select the one with the lower number of channels as well. Redo this. There's really no reason why there should be a separate final decision, so move the speaker replacement logic into the mp_chmap_is_better() function. Improve some other details. For example, we never should compare the plain number of channels for deciding upmix/downmix, because due to NA channels this is essentially meaningless. Remove the NA channels when doing this comparison. Also, explicitly handle exact matches. Conceptually this is not necessary, but it avoids that we have to needlessly shuffle audio data around.
Diffstat (limited to 'TOOLS/old-configure')
0 files changed, 0 insertions, 0 deletions