OSDN Git Service

dcadec: set the output channel mode more accurately.
authorTim Walker <tdskywalker@gmail.com>
Wed, 11 Dec 2013 02:03:30 +0000 (02:03 +0000)
committerTim Walker <tdskywalker@gmail.com>
Sun, 5 Jan 2014 15:41:56 +0000 (16:41 +0100)
commit6bfdb2de881372048be7fbda643417e1fd3ce93c
treeb261bcf51a8930a63254a425738ec2d7adb0c2f0
parent5b4797a21db900b7d509660b7a4d49829089b004
dcadec: set the output channel mode more accurately.

When downmixing 2.1 to 2-channel, if the 2.0 portion is Lt/Rt, sum-difference or dual mono, the actual output will be the same (with the LFE either mixed-in or discarded).

Also, when downmixing an arbitrary layout to 2-channel, if the bitstream contains custom downmix coefficients targeting Lt/Rt, then the output will be Lt/Rt rather than regular Stereo.
libavcodec/dcadec.c