mirror of https://git.ffmpeg.org/ffmpeg.git
aacdec: Fix SCE parity check.
An unpaired SCE preceding a CPE only makes sense for front SCEs
preceding the first CPE.
Split from FFmpeg commit a8d67efa53
Signed-off-by: Alex Converse <alex.converse@gmail.com>
This commit is contained in:
parent
d53fe096e4
commit
744dd1d356
|
@ -200,7 +200,7 @@ static int count_paired_channels(uint8_t (*layout_map)[3], int tags, int pos, in
|
||||||
break;
|
break;
|
||||||
if (layout_map[i][0] == TYPE_CPE) {
|
if (layout_map[i][0] == TYPE_CPE) {
|
||||||
if (sce_parity) {
|
if (sce_parity) {
|
||||||
if (pos == AAC_CHANNEL_FRONT || !first_cpe) {
|
if (pos == AAC_CHANNEL_FRONT && !first_cpe) {
|
||||||
sce_parity = 0;
|
sce_parity = 0;
|
||||||
} else {
|
} else {
|
||||||
return -1;
|
return -1;
|
||||||
|
|
Loading…
Reference in New Issue