mlp: improve request_channel_layout behavior.
authorTim Walker <tdskywalker@gmail.com>
Thu, 6 Feb 2014 21:50:38 +0000 (21:50 +0000)
committerTim Walker <tdskywalker@gmail.com>
Sat, 8 Feb 2014 12:39:37 +0000 (13:39 +0100)
commitc0c45188e56cfa3050bb39f8299025345b8a204c
treec02e7479d5764ae40c43053f4c7161a476e259f4
parent5c1c6e82261b856214499b9fef3a08bf3ff6e0ae
mlp: improve request_channel_layout behavior.

Don't decode further substreams if request_channel_layout
is a subset of the current substream's channel_layout.

Before, we would only discard further substreams if
request_channel_layout matched the substream's
channel_layout extactly, thus decoding additional
channels which the caller would probably end up downmixing.
libavcodec/mlp_parser.c
libavcodec/mlpdec.c