mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-03-15 04:17:38 -04:00
When reading a jpeg, and the dimensions don't match, update the image dimension values so that the image at least looks right.
This commit is contained in:
@@ -1021,6 +1021,8 @@ bool Image::ReadJpeg(const std::string &filename, unsigned int p_colours, unsign
|
||||
|
||||
if ((width != new_width) || (height != new_height)) {
|
||||
Debug(9, "Image dimensions differ. Old: %ux%u New: %ux%u", width, height, new_width, new_height);
|
||||
width = new_width;
|
||||
height = new_height;
|
||||
}
|
||||
|
||||
switch (p_colours) {
|
||||
|
||||
Reference in New Issue
Block a user