From 050f0af19a94c0bb384e31ac6715e54ffe1f9ba0 Mon Sep 17 00:00:00 2001 From: Katarzyna Miernikiewicz Date: Tue, 25 Aug 2020 09:50:19 +0000 Subject: [PATCH] minor change --- oss-internship-2020/openjpeg/examples/decompress_example.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/oss-internship-2020/openjpeg/examples/decompress_example.cc b/oss-internship-2020/openjpeg/examples/decompress_example.cc index f19ce0e..6d81c2c 100644 --- a/oss-internship-2020/openjpeg/examples/decompress_example.cc +++ b/oss-internship-2020/openjpeg/examples/decompress_example.cc @@ -122,8 +122,9 @@ int main(int argc, char* argv[]) { return EXIT_FAILURE; } + sapi::v::RemotePtr image_remote_pointer(image.GetRemote()); bool_status = api.opj_decode(&codec_pointer, &stream_pointer, - (sapi::v::Ptr*)&image_pointer); + &image_remote_pointer); if (!bool_status.ok() || !bool_status.value()) { LOG(FATAL) << "decoding failed"; return EXIT_FAILURE;