[media] coda: adjust sequence offset after unexpected decoded frame
authorLucas Stach <l.stach@pengutronix.de>
Fri, 23 Jan 2015 16:51:19 +0000 (13:51 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 2 Feb 2015 12:00:10 +0000 (10:00 -0200)
commit83f31c8a5fc87a2bc384f33e66994d079adc2273
treebc74cfff1ca2409e827dd21885a1b2636d69aeb0
parent07ba277f896ec774cb529277d6072a5611b34f18
[media] coda: adjust sequence offset after unexpected decoded frame

If userspace doesn't properly separate the bitstream input into
individual frames (which may happen for example on slightly
corrupted streams) the CODA hardware may decode more frames
than we expect. We already log an error in this case, but it's
also necessary to adjust the sequence offset. Otherwise we
spam the log with a sequence number mismatch on every frame
frame after the unexpected one.

Signed-off-by: Lucas Stach <l.stach@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