Closed kim-mishra closed 1 year ago
Patch coverage: 83.87
% and project coverage change: +0.25
:tada:
Comparison is base (
bf290b0
) 58.85% compared to head (c8312f9
) 59.11%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
Description
Certain MJPEG frames do not include Huffman tables, this causes an
uninitialized Huffman table
error duringjpeg.Decode()
. These changes add a default Huffman Table in the case that one was not provide, so that the jpeg can be processed and transformed into an image. I tested these changes locally with cameras that provide and do not provide Huffman tables to ensure that the error is avoided, and for frames with initialized Huffman tables there is no change in behavior.Reference issue
Fixes an uninitialized Huffman error that is returned from
jpeg.Decode()
when a jpeg Frame omits the Huffman Table