diff options
author | Lajos Molnar <lajos@google.com> | 2013-06-04 18:43:08 -0700 |
---|---|---|
committer | Lajos Molnar <lajos@google.com> | 2013-06-05 16:52:34 +0000 |
commit | 53b0a2b1f9cb6b99b3f0d1a639921d1b24bc30b7 (patch) | |
tree | ce48b754d137bbf922c55a884d570a0ffd160c25 /media/libstagefright/codecs/m4v_h263/dec | |
parent | 1e7bc6681466777fdcca9b46122c9e7028618564 (diff) | |
download | frameworks_av-53b0a2b1f9cb6b99b3f0d1a639921d1b24bc30b7.zip frameworks_av-53b0a2b1f9cb6b99b3f0d1a639921d1b24bc30b7.tar.gz frameworks_av-53b0a2b1f9cb6b99b3f0d1a639921d1b24bc30b7.tar.bz2 |
Reset PV decoder on SoftMPEG4 decoder reset
Otherwise, state may be undefined for subsequent frames.
Change-Id: Icdc0126247e1422eba21f2008a04cf7867d93f5d
Signed-off-by: Lajos Molnar <lajos@google.com>
Bug: 9284771
(cherry picked from commit 0f15875b8e80fb49a3b18d88964b063326f307b9)
Diffstat (limited to 'media/libstagefright/codecs/m4v_h263/dec')
-rw-r--r-- | media/libstagefright/codecs/m4v_h263/dec/SoftMPEG4.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/media/libstagefright/codecs/m4v_h263/dec/SoftMPEG4.cpp b/media/libstagefright/codecs/m4v_h263/dec/SoftMPEG4.cpp index 3c15adc..875674b 100644 --- a/media/libstagefright/codecs/m4v_h263/dec/SoftMPEG4.cpp +++ b/media/libstagefright/codecs/m4v_h263/dec/SoftMPEG4.cpp @@ -574,6 +574,11 @@ void SoftMPEG4::onPortEnableCompleted(OMX_U32 portIndex, bool enabled) { void SoftMPEG4::onReset() { mSignalledError = false; mOutputPortSettingsChange = NONE; + mFramesConfigured = false; + if (mInitialized) { + PVCleanUpVideoDecoder(mHandle); + mInitialized = false; + } } void SoftMPEG4::updatePortDefinitions() { |