mirror of https://github.com/mstorsjo/fdk-aac.git
Merge "Return transport decoder error in case of invalid ELD configuration" am: 7884aefc84
am: 81b04be9ba
am: 9cc8070883
Change-Id: Ic870a0c4b7f796da18eb8ed2da533214d1e200eb
This commit is contained in:
commit
e9159da7c9
|
@ -1420,6 +1420,10 @@ static TRANSPORTDEC_ERROR EldSpecificConfig_Parse(CSAudioSpecificConfig *asc,
|
||||||
if (ErrorStatus != TRANSPORTDEC_OK) {
|
if (ErrorStatus != TRANSPORTDEC_OK) {
|
||||||
return TRANSPORTDEC_PARSE_ERROR;
|
return TRANSPORTDEC_PARSE_ERROR;
|
||||||
}
|
}
|
||||||
|
if (esc->m_downscaledSamplingFrequency != asc->m_samplingFrequency) {
|
||||||
|
return TRANSPORTDEC_UNSUPPORTED_FORMAT; /* ELDv2 w/ ELD downscaled
|
||||||
|
mode not allowed */
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1441,6 +1445,10 @@ static TRANSPORTDEC_ERROR EldSpecificConfig_Parse(CSAudioSpecificConfig *asc,
|
||||||
if (downscale_fill_nibble != 0x0) {
|
if (downscale_fill_nibble != 0x0) {
|
||||||
return TRANSPORTDEC_PARSE_ERROR;
|
return TRANSPORTDEC_PARSE_ERROR;
|
||||||
}
|
}
|
||||||
|
if (esc->m_useLdQmfTimeAlign == 1) {
|
||||||
|
return TRANSPORTDEC_UNSUPPORTED_FORMAT; /* ELDv2 w/ ELD downscaled
|
||||||
|
mode not allowed */
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue