Fixed the video playback glitch issues by hardware decoding of libva.
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>
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 @@
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