diff options
author | Marco Nelissen <marcone@google.com> | 2015-10-06 16:00:00 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-10-06 16:00:00 +0000 |
commit | 7ce825833ad65cebfded3f35457925ae9e00124a (patch) | |
tree | e0c7b687e7abae31583f4e24787adc6851fa19c8 | |
parent | f888d47cb2a99cec66f451bab812fc3a3fd9d657 (diff) | |
parent | 13b6b51e6d9c399f0bfa55be4eecaf47b63845f2 (diff) | |
download | frameworks_av-7ce825833ad65cebfded3f35457925ae9e00124a.zip frameworks_av-7ce825833ad65cebfded3f35457925ae9e00124a.tar.gz frameworks_av-7ce825833ad65cebfded3f35457925ae9e00124a.tar.bz2 |
am 13b6b51e: am f7d1f627: am 257b3bc5: Don\'t crash when there\'s no conceal frame
* commit '13b6b51e6d9c399f0bfa55be4eecaf47b63845f2':
Don't crash when there's no conceal frame
-rw-r--r-- | media/libstagefright/codecs/m4v_h263/dec/src/conceal.cpp | 5 |
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; |