Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix jpeg buffer too small #1548

Merged
merged 1 commit into from
Jul 6, 2016

Conversation

knight-of-ni
Copy link
Member

@knight-of-ni knight-of-ni commented Jul 3, 2016

fixes #1547

This PR attempts to solve the issue by splitting out jpg_dcinfo and jpg_ccinfo into four different structures.
jpg_dcinfo becomes readjpg_dcinfo and decodejpg_dcinfo
jpg_ccinfo becomes writejpg_ccinfo and encodejpg_ccinfo

By splitting these out in this manner, ZoneMinder no longer tries to use a cinfo structure, which was created in a different part of the ZoneMinder source code, which is what caused the libjpeg-turbo library to complain with ERREXITJERR_BUFFER_SIZE.

Note that a better solution could possibly be obtained by eliminating the duplicate jpeg library source code found in zm_jpeg.cpp. However, I do not have a clear enough understanding of why it is there in the first place to attempt it at this time.

@SteveGilvarry SteveGilvarry added this to the v1.30.0 milestone Jul 4, 2016
@knight-of-ni knight-of-ni mentioned this pull request Jul 4, 2016
@SteveGilvarry
Copy link
Member

Confirmed issue was present in Debian Stretch running 1.29.0, updated to 1.30.0-rc1 still present, applied this PR and issue resolved.

@SteveGilvarry SteveGilvarry merged commit 4873683 into ZoneMinder:master Jul 6, 2016
@knight-of-ni knight-of-ni deleted the libjpegturbo branch December 23, 2016 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

libjpegturbo 1.5.0 causes streaming to break
2 participants