diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-02-22 01:25:03 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-02-22 01:25:03 +0100 |
| commit | a45f6245e8cc785fab436c9282fa3d1baf3a8575 (patch) | |
| tree | c6ae82be2319446c35ebad6666f68dbb109f8904 /src/lib/image_decoder.cc | |
| parent | 6c3ded5baac385d95ec2cf5e625c6c796c23e318 (diff) | |
| parent | 3ffd0163026be24e5373e0674c3301ed37546e44 (diff) | |
Merge tag 'v2.16.78' into v2.17.xv2.17.12
Diffstat (limited to 'src/lib/image_decoder.cc')
| -rw-r--r-- | src/lib/image_decoder.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/image_decoder.cc b/src/lib/image_decoder.cc index d743c8395..527a98c7d 100644 --- a/src/lib/image_decoder.cc +++ b/src/lib/image_decoder.cc @@ -73,7 +73,9 @@ ImageDecoder::pass () /* We can't extract image size from a JPEG2000 codestream without decoding it, so pass in the image content's size here. */ - _image = make_shared<J2KImageProxy>(path, _image_content->video->size(), pf); + auto size = _image_content->video->size(); + DCPOMATIC_ASSERT(size); + _image = make_shared<J2KImageProxy>(path, *size, pf); } else { _image = make_shared<FFmpegImageProxy>(path); } |
