Commit 4aa1ee98 authored by Alexandre Courbot's avatar Alexandre Courbot Committed by Commit Bot

media/gpu/v4l2svda: use visible size as natural size of wrapping frame

Using the coded size as the natural size of a frame does not make much
sense. Since this parameter is not essential here, use the visible size
for consistency.

BUG=None
TEST=E2E Youtube decoding working on Kukui.

Change-Id: I6958cd6d1568941e28bd5ca881a9afb6683c9392
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2011782
Auto-Submit: Alexandre Courbot <acourbot@chromium.org>
Reviewed-by: default avatarHirokazu Honda <hiroh@chromium.org>
Commit-Queue: Alexandre Courbot <acourbot@chromium.org>
Cr-Commit-Position: refs/heads/master@{#733861}
parent 62c906a0
......@@ -2160,7 +2160,7 @@ bool V4L2SliceVideoDecodeAccelerator::ProcessFrame(
// imported frame into another one that we can destruct.
scoped_refptr<VideoFrame> wrapped_frame = VideoFrame::WrapVideoFrame(
output_frame, output_frame->format(), output_frame->visible_rect(),
output_frame->coded_size());
output_frame->visible_rect().size());
DCHECK(wrapped_frame);
image_processor_->Process(
......
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