OSDN Git Service

dcadec: treat all 2-channel modes as Stereo in dca_downmix.
authorTim Walker <tdskywalker@gmail.com>
Fri, 22 Nov 2013 21:59:54 +0000 (22:59 +0100)
committerAnton Khirnov <anton@khirnov.net>
Thu, 28 Nov 2013 21:02:53 +0000 (22:02 +0100)
commit220494ad0b2e9e980ef703b46b69308236f29be5
tree42a3d22badb2616301a97c36dcb875523eaa82e5
parentaaa44d0299338e3bc90128816c21dbfab06cdb48
dcadec: treat all 2-channel modes as Stereo in dca_downmix.

The check for (prim_channels > 2) before calling dca_downmix made these
cases unreachable, but now 2.1 layouts will go through the downmix code.
Having dual mono, Lt/Rt and sum-difference layouts print errors when
regular Stereo doesn't seems pointless.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavcodec/dcadec.c