aboutsummaryrefslogtreecommitdiffstats
path: root/libMpegTPDec/src/tpdec_asc.cpp
diff options
context:
space:
mode:
authorJean-Michel Trivi <jmtrivi@google.com>2019-01-02 12:46:39 -0800
committerandroid-build-merger <android-build-merger@google.com>2019-01-02 12:46:39 -0800
commit81b04be9baf3540329e940b6ce8117463d71279e (patch)
tree40e7c66aedbbc37b65f46caa6fbebd8d05e9bfbb /libMpegTPDec/src/tpdec_asc.cpp
parent8d06f35f31eae5dd73b5ac16ef797023395bda99 (diff)
parent7884aefc84b56d7f805d8e84d378ab468274d3ff (diff)
downloadfdk-aac-81b04be9baf3540329e940b6ce8117463d71279e.tar.gz
fdk-aac-81b04be9baf3540329e940b6ce8117463d71279e.tar.bz2
fdk-aac-81b04be9baf3540329e940b6ce8117463d71279e.zip
Merge "Return transport decoder error in case of invalid ELD configuration"
am: 7884aefc84 Change-Id: Iff226ac091d4dffb5d94033c0afcfb0af4c5bfd2
Diffstat (limited to 'libMpegTPDec/src/tpdec_asc.cpp')
-rw-r--r--libMpegTPDec/src/tpdec_asc.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/libMpegTPDec/src/tpdec_asc.cpp b/libMpegTPDec/src/tpdec_asc.cpp
index a81a137..5270f2b 100644
--- a/libMpegTPDec/src/tpdec_asc.cpp
+++ b/libMpegTPDec/src/tpdec_asc.cpp
@@ -1420,6 +1420,10 @@ static TRANSPORTDEC_ERROR EldSpecificConfig_Parse(CSAudioSpecificConfig *asc,
if (ErrorStatus != TRANSPORTDEC_OK) {
return TRANSPORTDEC_PARSE_ERROR;
}
+ if (esc->m_downscaledSamplingFrequency != asc->m_samplingFrequency) {
+ return TRANSPORTDEC_UNSUPPORTED_FORMAT; /* ELDv2 w/ ELD downscaled
+ mode not allowed */
+ }
break;
}
@@ -1441,6 +1445,10 @@ static TRANSPORTDEC_ERROR EldSpecificConfig_Parse(CSAudioSpecificConfig *asc,
if (downscale_fill_nibble != 0x0) {
return TRANSPORTDEC_PARSE_ERROR;
}
+ if (esc->m_useLdQmfTimeAlign == 1) {
+ return TRANSPORTDEC_UNSUPPORTED_FORMAT; /* ELDv2 w/ ELD downscaled
+ mode not allowed */
+ }
break;
}
}