]> git.baikalelectronics.ru Git - kernel.git/commit
media: imx-jpeg: Fix occasional decoder fail on jpegs without DHT
authorMirela Rabulea <mirela.rabulea@nxp.com>
Mon, 27 Sep 2021 18:56:57 +0000 (20:56 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Fri, 8 Oct 2021 09:26:13 +0000 (11:26 +0200)
commita1959d68c3547a6ee97938476388d81a8509c6fc
tree95c20ca29ecc64ceace95a1470797360a4205181
parent55a9de0731333652fc4b810115364e88953f4801
media: imx-jpeg: Fix occasional decoder fail on jpegs without DHT

Add some body to the dummy jpeg used to inject a default DHT.
Use jpeg_image_red as compressed image data, insert it at the
end of SOS, before EOI.

The pure dummy jpeg was occasionally not working well on
8qxp C0.

Signed-off-by: Mirela Rabulea <mirela.rabulea@nxp.com>
Reviewed-by: Laurentiu Palcu <laurentiu.palcu@oss.nxp.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/imx-jpeg/mxc-jpeg.c