diff options
author | Marco Nelissen <marcone@google.com> | 2015-10-06 16:04:48 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-10-06 16:04:48 +0000 |
commit | 567ad5c622c5dd809e2fae0cec93a545723a2f86 (patch) | |
tree | 5a90675b2a38b23a413c54dcbb4b742e6b1b8d45 | |
parent | 0e86f9f105521095e081c9628d9ddb777c83f42c (diff) | |
parent | 7ce825833ad65cebfded3f35457925ae9e00124a (diff) | |
download | frameworks_av-567ad5c622c5dd809e2fae0cec93a545723a2f86.zip frameworks_av-567ad5c622c5dd809e2fae0cec93a545723a2f86.tar.gz frameworks_av-567ad5c622c5dd809e2fae0cec93a545723a2f86.tar.bz2 |
am 7ce82583: am 13b6b51e: am f7d1f627: am 257b3bc5: Don\'t crash when there\'s no conceal frame
* commit '7ce825833ad65cebfded3f35457925ae9e00124a':
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; |