diff options
-rw-r--r-- | merrifield/test/nv12_ved_test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/merrifield/test/nv12_ved_test.cpp b/merrifield/test/nv12_ved_test.cpp index 7fb5b36..7753eb3 100644 --- a/merrifield/test/nv12_ved_test.cpp +++ b/merrifield/test/nv12_ved_test.cpp @@ -117,7 +117,7 @@ int main(int argc, char **argv) { return 0; if (anb == NULL) return 0; - sp < GraphicBuffer > buf(new GraphicBuffer(anb, false)); + sp <GraphicBuffer> buf(GraphicBuffer::from(anb)); //if (anw->lockBuffer(anw.get(), buf->getNativeBuffer()) != NO_ERROR) // return 0; buf->lock(GRALLOC_USAGE_SW_WRITE_OFTEN, (void**) (&img)); |