move Header constructor inside try/catch (#4208)

Signed-off-by: Cary Phillips <seabeepea@gmail.com>
This commit is contained in:
seabeepea 2020-07-28 19:17:13 -07:00 committed by GitHub
parent 3c234c8f1c
commit e1920a468d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -113,8 +113,8 @@ static void readFile(T *inpart) {
static void readFileSingle(IStream& is, uint64_t width, uint64_t height) {
DeepScanLineInputFile *file = NULL;
Header header(width, height);
try {
Header header(width, height);
file = new DeepScanLineInputFile(header, &is, EXR_VERSION, 0);
} catch (...) {
return;