Commit 4467521a authored by Alexandre Courbot's avatar Alexandre Courbot Committed by Commit Bot

media/gpu/v4l2: Fix SetPlaneBytesUsed() typo

SetPlaneBytesUsed() was incorrectly using the >= operator instead of >
to decide whether the bytes used were larger than the size of the
buffer. Fix this.

Bug: None
Test: Run VDA unittest on Hana.
Change-Id: I32cd3018e5bdc6ce088eddf6e0f0dc86c09e84af
Reviewed-on: https://chromium-review.googlesource.com/c/1448001Reviewed-by: default avatarHirokazu Honda <hiroh@chromium.org>
Commit-Queue: Alexandre Courbot <acourbot@chromium.org>
Cr-Commit-Position: refs/heads/master@{#628246}
parent 2aa644c0
......@@ -391,7 +391,7 @@ void V4L2WritableBufferRef::SetPlaneBytesUsed(const size_t plane,
return;
}
if (bytes_used >= GetPlaneSize(plane)) {
if (bytes_used > GetPlaneSize(plane)) {
VLOGF(1) << "Set bytes used " << bytes_used << " larger than plane size "
<< GetPlaneSize(plane) << ".";
return;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment