Re: [PATCH v2] venus: vdec: fix decoded data size

2018-10-10 Thread Alexandre Courbot
On Mon, Oct 8, 2018 at 8:09 PM Vikash Garodia wrote: > > 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

Re: [PATCH v2] venus: vdec: fix decoded data size

2018-10-08 Thread Stanimir Varbanov
Hi Vikash, On 10/08/2018 02:09 PM, Vikash Garodia wrote: > 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 tha

[PATCH v2] venus: vdec: fix decoded data size

2018-10-08 Thread Vikash Garodia
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