diff options
| author | android-build-team Robot <android-build-team-robot@google.com> | 2020-01-24 04:13:28 +0000 |
|---|---|---|
| committer | android-build-team Robot <android-build-team-robot@google.com> | 2020-01-24 04:13:28 +0000 |
| commit | 5d864894785ccf240717f78aa35e8a2b9371b62f (patch) | |
| tree | e4bd2c8d1c13085e3c2babcfeb39ea867a3f596e /libMpegTPDec/src/tpdec_lib.cpp | |
| parent | 3a6eca5c661f7e7596c39aa9e4a5c6763bbef035 (diff) | |
| parent | f04a8a855cf8ddb5996c8e191fd3fa15b3808657 (diff) | |
| download | fdk-aac-5d864894785ccf240717f78aa35e8a2b9371b62f.tar.gz fdk-aac-5d864894785ccf240717f78aa35e8a2b9371b62f.tar.bz2 fdk-aac-5d864894785ccf240717f78aa35e8a2b9371b62f.zip | |
Snap for 6157842 from f04a8a855cf8ddb5996c8e191fd3fa15b3808657 to rvc-release
Change-Id: Icd800c3d313c30fc67595fc70baaf69b12188cd7
Diffstat (limited to 'libMpegTPDec/src/tpdec_lib.cpp')
| -rw-r--r-- | libMpegTPDec/src/tpdec_lib.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libMpegTPDec/src/tpdec_lib.cpp b/libMpegTPDec/src/tpdec_lib.cpp index 7bebbaa..ca35184 100644 --- a/libMpegTPDec/src/tpdec_lib.cpp +++ b/libMpegTPDec/src/tpdec_lib.cpp @@ -929,6 +929,11 @@ static TRANSPORTDEC_ERROR transportDec_readHeader( } } } + /* if an error is detected terminate config parsing to avoid that an + * invalid config is accepted in the second pass */ + if (err != TRANSPORTDEC_OK) { + break; + } } } else { /* Reset CRC because the next bits are the beginning of a |
