summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarco Nelissen <marcone@google.com>2015-10-06 16:08:55 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-10-06 16:08:55 +0000
commita0c94bc6582dde27ed31fbb771d7eb758fb9adbe (patch)
tree5a90675b2a38b23a413c54dcbb4b742e6b1b8d45
parent4189eb417eca658f7e05eb16cf595ca4b0dc4567 (diff)
parent567ad5c622c5dd809e2fae0cec93a545723a2f86 (diff)
downloadframeworks_av-a0c94bc6582dde27ed31fbb771d7eb758fb9adbe.zip
frameworks_av-a0c94bc6582dde27ed31fbb771d7eb758fb9adbe.tar.gz
frameworks_av-a0c94bc6582dde27ed31fbb771d7eb758fb9adbe.tar.bz2
am 567ad5c6: am 7ce82583: am 13b6b51e: am f7d1f627: am 257b3bc5: Don\'t crash when there\'s no conceal frame
* commit '567ad5c622c5dd809e2fae0cec93a545723a2f86': Don't crash when there's no conceal frame
-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;