[media] coda: relax coda_jpeg_check_buffer for trailing bytes
authorPhilipp Zabel <philipp.zabel@gmail.com>
Wed, 2 Dec 2015 16:58:51 +0000 (14:58 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Wed, 23 Dec 2015 16:02:14 +0000 (14:02 -0200)
commitd4de047b536cc0fe06521eda111f4a31a0844e11
treea5f9ec09e18666b15ef566eedfb22ca9e07c8612
parent5542570ea9e7dfbd699dce3d542761926ef26712
[media] coda: relax coda_jpeg_check_buffer for trailing bytes

coda_jpeg_check_buffer only cares about the buffer length and contents,
so change the parameter type back from v4l2_vb2_buffer to just the
vb2_buffer.
Instead of just checking the first and last bytes for the SOI and EOI
markers, relax the EOI marker check a bit and allow up to 32 trailing
bytes after the EOI marker as hardware generated JPEGs sometimes contain
some alignment overhead.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/coda/coda-bit.c
drivers/media/platform/coda/coda-jpeg.c
drivers/media/platform/coda/coda.h
This page took 0.038827 seconds and 5 git commands to generate.