Closed IzumiHoshi closed 1 year ago
should add this line image->bits_per_sample = image->bits_per_sample_original; after https://github.com/syoyo/tinydng/blob/2bf9af18d2f7ce426e3c7b7ceeed04e7996153cb/tiny_dng_loader.h#L5548
image->bits_per_sample = image->bits_per_sample_original;
or image->data will be resize to 0.
@IzumiHoshi Good catch! Thanks! Fixed. Also added some size check of len.
len
should add this line
image->bits_per_sample = image->bits_per_sample_original;
after https://github.com/syoyo/tinydng/blob/2bf9af18d2f7ce426e3c7b7ceeed04e7996153cb/tiny_dng_loader.h#L5548or image->data will be resize to 0.