]> asedeno.scripts.mit.edu Git - linux.git/commit
media: coda: increment sequence offset for the last returned frame
authorPhilipp Zabel <p.zabel@pengutronix.de>
Tue, 18 Jun 2019 16:45:22 +0000 (12:45 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 24 Jun 2019 18:32:11 +0000 (14:32 -0400)
commitb3b7d96817cdb8b6fc353867705275dce8f41ccc
tree7cd441872468e1fa2a22e8f1e9fcb1030977cf70
parente7fd95849b3c25ae1604ba2788e63fe6570ba0ff
media: coda: increment sequence offset for the last returned frame

If no more frames are decoded in bitstream end mode, and a previously
decoded frame has been returned, the firmware still increments the frame
number. To avoid a sequence number mismatch after decoder restart,
increment the sequence_offset correction parameter.

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