summaryrefslogtreecommitdiff
path: root/src/lib/stack.cpp
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-11-25 00:11:55 +0100
committerCarl Hetherington <cth@carlh.net>2020-11-25 00:36:22 +0100
commite43dababfc7aaf1429d3552e91b24e4e51979111 (patch)
treeddb1d0119531ea1e6e91b210b8f8413f5a904f48 /src/lib/stack.cpp
parent8a1da1da65ba0e6a6fb915c73ff6e6a81da349f2 (diff)
Fix corrupted image when over-cropping black filler frames.
FFmpegDecoder can emit small black frames (128x128 pixels) when it wants to fill in a gap. Image::crop_scale_window would do the wrong thing if we then applied a crop of greater than 128 in either direction; though cropped_size is correctly clamped, the crop value itself was not and is used to calculate the input data pointers. This would result in random frames, usually at the end of DCPs, often made up of blurry colour washes.
Diffstat (limited to 'src/lib/stack.cpp')
0 files changed, 0 insertions, 0 deletions