diff options
author | Changyeon Lee <cyeon.lee@samsung.com> | 2018-08-24 12:35:49 +0900 |
---|---|---|
committer | Changyeon Lee <cyeon.lee@samsung.com> | 2018-08-24 12:35:49 +0900 |
commit | 83b5ed0ce0532d0286230e74ea8a26b84960ee44 (patch) | |
tree | ee8ef81d4cf0e04e84098e90b0b0336e760bc626 | |
parent | 3ac2f609979edaea87147aeeea80401edccb2bbc (diff) | |
download | libtbm-exynos-tgm-83b5ed0ce0532d0286230e74ea8a26b84960ee44.tar.gz libtbm-exynos-tgm-83b5ed0ce0532d0286230e74ea8a26b84960ee44.tar.bz2 libtbm-exynos-tgm-83b5ed0ce0532d0286230e74ea8a26b84960ee44.zip |
fix offset NV12 format
Change-Id: Ia9532676af2a7b3b768c7a5767a9dc38c858d14b
-rw-r--r-- | src/tbm_bufmgr_exynos.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tbm_bufmgr_exynos.c b/src/tbm_bufmgr_exynos.c index 9ae4285..974e399 100644 --- a/src/tbm_bufmgr_exynos.c +++ b/src/tbm_bufmgr_exynos.c @@ -1124,7 +1124,7 @@ tbm_exynos_bufmgr_get_plane_data(tbm_backend_bufmgr_data *bufmgr_data, } /*else if (plane_idx == 1)*/ { - _offset += _size; + _offset = 0; _pitch = SIZE_ALIGN(width, TBM_SURFACE_ALIGNMENT_PITCH_YUV); _size = SIZE_ALIGN((SIZE_ALIGN(width, 16) * SIZE_ALIGN(height, 16) * 3) / 2, 512); _bo_idx = 1; |