diff options
author | Hamsalekha S <hamsalekha.s@ittiam.com> | 2015-06-24 18:45:35 -0700 |
---|---|---|
committer | Robert Shih <robertshih@google.com> | 2015-07-09 17:27:28 +0000 |
commit | 90599b61289fbeda8312e6633c551a6e3d1a0ada (patch) | |
tree | 236c98f1479e5ad5254bfa3bddd7d37087a0a72b /media/libstagefright/codecs/avcdec/SoftAVCDec.h | |
parent | 065f6572752dca646b7d60df8e80b6d4ac159281 (diff) | |
download | frameworks_av-90599b61289fbeda8312e6633c551a6e3d1a0ada.zip frameworks_av-90599b61289fbeda8312e6633c551a6e3d1a0ada.tar.gz frameworks_av-90599b61289fbeda8312e6633c551a6e3d1a0ada.tar.bz2 |
SoftAVCDec: fail gracefully in onQueueFilled
Bug: 21942104
Change-Id: Ia3b16b39b53c3a4678f4bba9e80dd0a715409520
Diffstat (limited to 'media/libstagefright/codecs/avcdec/SoftAVCDec.h')
-rw-r--r-- | media/libstagefright/codecs/avcdec/SoftAVCDec.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/media/libstagefright/codecs/avcdec/SoftAVCDec.h b/media/libstagefright/codecs/avcdec/SoftAVCDec.h index 2067810..1ec8991 100644 --- a/media/libstagefright/codecs/avcdec/SoftAVCDec.h +++ b/media/libstagefright/codecs/avcdec/SoftAVCDec.h @@ -105,8 +105,9 @@ private: // codec. So the codec is switching to decode the new resolution. bool mChangingResolution; bool mFlushNeeded; + bool mSignalledError; - status_t initDecoder(); + status_t initDecoder(uint32_t width, uint32_t height); status_t deInitDecoder(); status_t setFlushMode(); status_t setParams(size_t stride); @@ -114,7 +115,7 @@ private: status_t setNumCores(); status_t resetDecoder(); status_t resetPlugin(); - status_t reInitDecoder(); + status_t reInitDecoder(uint32_t width, uint32_t height); void setDecodeArgs( ivd_video_decode_ip_t *ps_dec_ip, |