Skip to content

Commit

Permalink
Update frmts/heif/heifdatasetcreatecopy.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Even Rouault <[email protected]>
  • Loading branch information
bradh and rouault committed May 17, 2024
1 parent 592c00a commit fa17bec
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions frmts/heif/heifdatasetcreatecopy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,6 @@ GDALHEIFDataset::CreateCopy(const char *pszFilename, GDALDataset *poSrcDS, int,

heif_context_free(ctx);

GDALPamDataset *poDS = (GDALPamDataset *)GDALOpen(pszFilename, GA_ReadOnly);
return poDS;
return GDALDataset::Open(pszFilename);
}
#endif

0 comments on commit fa17bec

Please sign in to comment.