diff options
author | Gilles-Arnaud Bleu-Laine <gilles@ti.com> | 2011-09-15 21:30:13 -0500 |
---|---|---|
committer | Andreas Huber <andih@google.com> | 2011-09-30 10:46:12 -0700 |
commit | d3523f89a867afa111bb332887bf006ec3ae93e6 (patch) | |
tree | 569a59483ca970991541c7508172df425b6396e0 /include | |
parent | fea8f6217455d8cfc957e5b30f4eb2349859518f (diff) | |
download | frameworks_av-d3523f89a867afa111bb332887bf006ec3ae93e6.zip frameworks_av-d3523f89a867afa111bb332887bf006ec3ae93e6.tar.gz frameworks_av-d3523f89a867afa111bb332887bf006ec3ae93e6.tar.bz2 |
Gracefuly return on detecting wrong AAC format from corrupted files
Return BAD_VALUE error upon detection of wrongly formatted files.
The client should abort the initialization upon error detection.
The current CHECK() interrupts the configurecodec() preventing a graceful
exit.
Change-Id: Ic79313fa76a63284897df5d91635de87d06f3100
Signed-off-by: Gilles-Arnaud Bleu-Laine <gilles@ti.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/media/stagefright/OMXCodec.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/media/stagefright/OMXCodec.h b/include/media/stagefright/OMXCodec.h index 8baf5ec..21b8c74 100644 --- a/include/media/stagefright/OMXCodec.h +++ b/include/media/stagefright/OMXCodec.h @@ -228,7 +228,7 @@ private: void setComponentRole(); void setAMRFormat(bool isWAMR, int32_t bitRate); - void setAACFormat(int32_t numChannels, int32_t sampleRate, int32_t bitRate); + status_t setAACFormat(int32_t numChannels, int32_t sampleRate, int32_t bitRate); void setG711Format(int32_t numChannels); status_t setVideoPortFormatType( |