diff options
Diffstat (limited to 'third_party/jpeg-xl/lib/jxl/enc_modular.cc')
-rw-r--r-- | third_party/jpeg-xl/lib/jxl/enc_modular.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/third_party/jpeg-xl/lib/jxl/enc_modular.cc b/third_party/jpeg-xl/lib/jxl/enc_modular.cc index 35fac3c827..25464737b8 100644 --- a/third_party/jpeg-xl/lib/jxl/enc_modular.cc +++ b/third_party/jpeg-xl/lib/jxl/enc_modular.cc @@ -5,11 +5,9 @@ #include "lib/jxl/enc_modular.h" -#include <stddef.h> -#include <stdint.h> - #include <array> #include <atomic> +#include <cstddef> #include <cstdint> #include <limits> #include <utility> @@ -17,6 +15,7 @@ #include "lib/jxl/base/compiler_specific.h" #include "lib/jxl/base/printf_macros.h" +#include "lib/jxl/base/rect.h" #include "lib/jxl/base/status.h" #include "lib/jxl/compressed_dc.h" #include "lib/jxl/dec_ans.h" @@ -998,7 +997,9 @@ Status ModularFrameEncoder::ComputeEncodingData( pool, 0, stream_params_.size(), ThreadPool::NoInit, [&](const uint32_t i, size_t /* thread */) { size_t stream = stream_params_[i].id.ID(frame_dim_); - stream_options_[stream] = stream_options_[0]; + if (stream != 0) { + stream_options_[stream] = stream_options_[0]; + } JXL_CHECK(PrepareStreamParams( stream_params_[i].rect, cparams_, stream_params_[i].minShift, stream_params_[i].maxShift, stream_params_[i].id, do_color, |