[libcamera-devel] qcam: Corrupt JPEG data

Christian Rauch Rauch.Christian at gmx.de
Wed Aug 31 23:13:50 CEST 2022


Hi,

I have a "Logitech, Inc. Webcam C270" (046d:0825) USB wecam that causes
an MJPEG related error message in qcam of the form: "Corrupt JPEG data:
XX extraneous bytes before marker 0xXX". I don't see obvious issues with
the resulting (decoded) image.

I don't have this issue with other cameras on MJPEG mode or in "cam". I,
however, have this same issue in my own code where I decode the jpeg
payload via OpenCV imdecode.

The error message originates from "libjpeg-turbo":
https://github.com/libjpeg-turbo/libjpeg-turbo/blob/2.1.4/jerror.h#L192-L193

Is this a:
a) hardware issue
b) libcamera issue
c) libjpeg-turbo issue
d) all of the above :-)

Best,
Christian



More information about the libcamera-devel mailing list