media: coda: fix mpeg2 sequence number handling
authorPhilipp Zabel <p.zabel@pengutronix.de>
Tue, 18 Jun 2019 16:45:10 +0000 (12:45 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 24 Jun 2019 18:20:25 +0000 (14:20 -0400)
commit56d159a4ec6d8da7313aac6fcbb95d8fffe689ba
tree7316efbedb58dbea816b8af741da41ba0b2eea4d
parentf66a607d73389263694c9d597bcf8d36ffe3b12d
media: coda: fix mpeg2 sequence number handling

Sequence number handling assumed that the BIT processor frame number
starts counting at 1, but this is not true for the MPEG-2 decoder,
which starts at 0. Fix the sequence counter offset detection to handle
this.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/coda/coda-bit.c