summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAustin Hu <austin.hu@intel.com>2016-06-17 11:34:20 +0800
committerNick Desaulniers <ndesaulniers@google.com>2016-06-17 10:19:30 -0700
commit4a5e38d65e3f21def5373c8ccce936473845d888 (patch)
tree7566e8cd54e91b50edfc491834ac2bfe604f3492
parent89be4f7c8a434378432d1a39850a3c9dea334e96 (diff)
downloadutils-4a5e38d65e3f21def5373c8ccce936473845d888.tar.gz
Fixed the video playback glitch issues by hardware decoding of libva.nougat-dev
Bug: 29160724 Bug: IMINAN-49451 Because the iWidth of gralloc handle wouldn't be hacked in gralloc HAL, assign mStride with the correct stride value. Change-Id: Ic9406f45fcf8de68cd12a89e7504d012a5856c88 Signed-off-by: Austin Hu <austin.hu@intel.com>
-rw-r--r--ISV/base/isv_bufmanager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ISV/base/isv_bufmanager.cpp b/ISV/base/isv_bufmanager.cpp
index f6376ce..3b02ab4 100644
--- a/ISV/base/isv_bufmanager.cpp
+++ b/ISV/base/isv_bufmanager.cpp
@@ -89,7 +89,7 @@ status_t ISVBuffer::initBufferInfo(uint32_t hackFormat)
mColorFormat = info.format;
#else
IMG_native_handle_t* grallocHandle = (IMG_native_handle_t*)mGrallocHandle;
- mStride = grallocHandle->iWidth;
+ mStride = grallocHandle->aiStride[0];
mSurfaceHeight = grallocHandle->iHeight;
mColorFormat = (hackFormat != 0) ? hackFormat : grallocHandle->iFormat;
#endif