Skip to content

Commit

Permalink
show detailed parse error instead of only 'no meta box'
Browse files Browse the repository at this point in the history
  • Loading branch information
farindk committed Oct 17, 2023
1 parent f0d903f commit bfeb00c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion libheif/file.cc
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,11 @@ Error HeifFile::parse_heif_file(BitstreamRange& range)

// When an EOF error is returned, this is not really a fatal exception,
// but simply the indication that we reached the end of the file.
if (error != Error::Ok || range.error() || range.eof()) {
if (error != Error::Ok) {
return error;
}

if (range.error() || range.eof()) {
break;
}

Expand Down

0 comments on commit bfeb00c

Please sign in to comment.