fix syntax error 01/62601/2
authorBoram Park <boram1288.park@samsung.com>
Thu, 17 Mar 2016 00:04:22 +0000 (09:04 +0900)
committerBoram Park <boram1288.park@samsung.com>
Thu, 17 Mar 2016 02:52:03 +0000 (11:52 +0900)
Change-Id: I5fdb2e30bb3e0d1c664cfa14d881f067f5c3f04e

src/tdm_helper.c

index d4a0937..7c47b6e 100644 (file)
@@ -140,26 +140,26 @@ tdm_helper_dump_buffer(tbm_surface_h buffer, const char *file)
        case TBM_FORMAT_YVU420:
        case TBM_FORMAT_YUV420:
                _tdm_helper_dump_raw(file,
-                                    info.planes[0].ptr + info.planes[0].offset,
+                                    info.planes[0].ptr,
                                     info.planes[0].stride * info.height,
-                                    info.planes[1].ptr + info.planes[1].offset,
+                                    info.planes[1].ptr,
                                     info.planes[1].stride * (info.height >> 1),
-                                    info.planes[2].ptr + info.planes[2].offset,
+                                    info.planes[2].ptr,
                                     info.planes[2].stride * (info.height >> 1));
                break;
        case TBM_FORMAT_NV12:
        case TBM_FORMAT_NV21:
                _tdm_helper_dump_raw(file,
-                                    info.planes[0].ptr + info.planes[0].offset,
+                                    info.planes[0].ptr,
                                     info.planes[0].stride * info.height,
-                                    info.planes[1].ptr + info.planes[1].offset,
+                                    info.planes[1].ptr,
                                     info.planes[1].stride * (info.height >> 1), NULL,
                                     0);
                break;
        case TBM_FORMAT_YUYV:
        case TBM_FORMAT_UYVY:
                _tdm_helper_dump_raw(file,
-                                    info.planes[0].ptr + info.planes[0].offset,
+                                    info.planes[0].ptr,
                                     info.planes[0].stride * info.height, NULL, 0,
                                     NULL, 0);
                break;