minor change

This commit is contained in:
Katarzyna Miernikiewicz 2020-08-25 09:50:19 +00:00
parent 6554f635fc
commit 050f0af19a

View File

@ -122,8 +122,9 @@ int main(int argc, char* argv[]) {
return EXIT_FAILURE; return EXIT_FAILURE;
} }
sapi::v::RemotePtr image_remote_pointer(image.GetRemote());
bool_status = api.opj_decode(&codec_pointer, &stream_pointer, bool_status = api.opj_decode(&codec_pointer, &stream_pointer,
(sapi::v::Ptr*)&image_pointer); &image_remote_pointer);
if (!bool_status.ok() || !bool_status.value()) { if (!bool_status.ok() || !bool_status.value()) {
LOG(FATAL) << "decoding failed"; LOG(FATAL) << "decoding failed";
return EXIT_FAILURE; return EXIT_FAILURE;