From 841d22b0645ff48a03e7f500f95458f3d70a0a61 Mon Sep 17 00:00:00 2001 From: Ronghua Wu Date: Thu, 22 Jan 2015 16:36:31 -0800 Subject: libstagefright: Use aligned width and height. Bug: 19014147 Change-Id: I33314b02448e436c43fcfad086b5edfa650dcf83 --- media/libstagefright/codecs/m4v_h263/dec/src/pvdec_api.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/media/libstagefright/codecs/m4v_h263/dec/src/pvdec_api.cpp b/media/libstagefright/codecs/m4v_h263/dec/src/pvdec_api.cpp index b783222..90d7c6b 100644 --- a/media/libstagefright/codecs/m4v_h263/dec/src/pvdec_api.cpp +++ b/media/libstagefright/codecs/m4v_h263/dec/src/pvdec_api.cpp @@ -292,8 +292,10 @@ Bool PVAllocVideoData(VideoDecControls *decCtrl, int width, int height, int nLay if (video->shortVideoHeader == PV_TRUE) { - video->displayWidth = video->width = width; - video->displayHeight = video->height = height; + video->displayWidth = width; + video->displayHeight = height; + video->width = (width + 15) & -16; + video->height = (height + 15) & -16; video->nMBPerRow = video->nMBinGOB = video->width / MB_SIZE; -- cgit v1.1