summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/codecs
diff options
context:
space:
mode:
authorMarco Nelissen <marcone@google.com>2015-10-06 16:21:04 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-10-06 16:21:04 +0000
commit711e9dfc85dfa41c8c840103bd510e98d9b663da (patch)
tree0c03c0ffb0d77a94f141101048e99266d2aa52f1 /media/libstagefright/codecs
parentcb70fdbe9be14002a4303a93f07a13c508c00d89 (diff)
parent8b3aa04a625dfd3adf68118e64da1eafec9db594 (diff)
downloadframeworks_av-711e9dfc85dfa41c8c840103bd510e98d9b663da.zip
frameworks_av-711e9dfc85dfa41c8c840103bd510e98d9b663da.tar.gz
frameworks_av-711e9dfc85dfa41c8c840103bd510e98d9b663da.tar.bz2
am 8b3aa04a: am a0c94bc6: am 567ad5c6: am 7ce82583: am 13b6b51e: am f7d1f627: am 257b3bc5: Don\'t crash when there\'s no conceal frame
* commit '8b3aa04a625dfd3adf68118e64da1eafec9db594': Don't crash when there's no conceal frame
Diffstat (limited to 'media/libstagefright/codecs')
-rw-r--r--media/libstagefright/codecs/m4v_h263/dec/src/conceal.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/media/libstagefright/codecs/m4v_h263/dec/src/conceal.cpp b/media/libstagefright/codecs/m4v_h263/dec/src/conceal.cpp
index e9ead01..03e4119 100644
--- a/media/libstagefright/codecs/m4v_h263/dec/src/conceal.cpp
+++ b/media/libstagefright/codecs/m4v_h263/dec/src/conceal.cpp
@@ -19,6 +19,7 @@
#include "vlc_decode.h"
#include "bitstream.h"
#include "scaling.h"
+#include "log/log.h"
/* ====================================================================== /
Function : ConcealTexture_I()
@@ -137,6 +138,10 @@ Modified: 6/04/2001 rewrote the function
****************************************************************************/
void CopyVopMB(Vop *curr, uint8 *prevFrame, int mbnum, int width_Y, int height)
{
+ if (curr == NULL || prevFrame == NULL) {
+ ALOGE("b/24630158");
+ return;
+ }
int width_C = width_Y >> 1;
int row = MB_SIZE;
uint8 *y1, *y2, *u1, *u2, *v1, *v2;