diff options
author | Jean-Michel Trivi <jmtrivi@google.com> | 2019-01-02 12:54:32 -0800 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2019-01-02 12:54:32 -0800 |
commit | e9159da7c9286bd6d0bdd1282c70dfe2a837674a (patch) | |
tree | a6d6d2d89b54c22f6a6b1e899df6ab89bfc0e15e | |
parent | e656165e17bdfb3a7b0d3f526dd297a6fc0a8e54 (diff) | |
parent | 9cc8070883b24126085012c0a742d3746450bab8 (diff) | |
download | fdk-aac-e9159da7c9286bd6d0bdd1282c70dfe2a837674a.tar.gz fdk-aac-e9159da7c9286bd6d0bdd1282c70dfe2a837674a.tar.bz2 fdk-aac-e9159da7c9286bd6d0bdd1282c70dfe2a837674a.zip |
Merge "Return transport decoder error in case of invalid ELD configuration" am: 7884aefc84 am: 81b04be9ba
am: 9cc8070883
Change-Id: Ic870a0c4b7f796da18eb8ed2da533214d1e200eb
-rw-r--r-- | libMpegTPDec/src/tpdec_asc.cpp | 8 |
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; } } |