summaryrefslogtreecommitdiff
path: root/drivers/media/usb/pvrusb2/pvrusb2-main.c
diff options
context:
space:
mode:
authorVikash Garodia <vgarodia@codeaurora.org>2018-10-08 14:09:04 +0300
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-10-09 15:07:07 +0300
commitce32c0a530bd955206fe45c2eff77e581202d699 (patch)
tree7c79197fa331ced650b868af9e39829c79c5156b /drivers/media/usb/pvrusb2/pvrusb2-main.c
parent32ae592036d7aeaabcccb2b1715373a68639a768 (diff)
downloadlinux-ce32c0a530bd955206fe45c2eff77e581202d699.tar.xz
media: venus: vdec: fix decoded data size
Existing code returns the max of the decoded size and buffer size. It turns out that buffer size is always greater due to hardware alignment requirement. As a result, payload size given to client is incorrect. This change ensures that the bytesused is assigned to actual payload size, when available. Signed-off-by: Vikash Garodia <vgarodia@codeaurora.org> Acked-by: Stanimir Varbanov <stanimir.varbanov@linaro.org> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media/usb/pvrusb2/pvrusb2-main.c')
0 files changed, 0 insertions, 0 deletions