media: mtk-vcodec: fix vp9 content playback error with show exist frame
authorMaoguang Meng <maoguang.meng@mediatek.com>
Mon, 1 Apr 2019 08:18:38 +0000 (04:18 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 22 Apr 2019 15:42:19 +0000 (11:42 -0400)
commit411a414b26aa107ddbbd6995e464f6cc18a1aa8c
treeadde71f3bb454d691707cca4d43ca086f45f969f
parentd38b24aab43d2b83fc57bf1186df05210ebb58b6
media: mtk-vcodec: fix vp9 content playback error with show exist frame

Update referenced frame buffer's reference count when playing vp9
content which has show_existing_frame flag, and copy enough buffer
data to current shown frame.

Signed-off-by: Maoguang Meng <maoguang.meng@mediatek.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c