Commit 2ccf4c27 authored by Chih-Yu Huang's avatar Chih-Yu Huang Committed by Commit Bot

media/gpu: V4L2SVD: fix condition error in SetupOutputFormat.

BUG=chromium:979115
TEST=run video_decode_accelerator_tests --use_vd on Kevin

Change-Id: I97ed910d7f94ea146ee75aa776b2aad1b62116a8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1720110Reviewed-by: default avatarHirokazu Honda <hiroh@chromium.org>
Commit-Queue: Chih-Yu Huang <akahuang@chromium.org>
Cr-Commit-Position: refs/heads/master@{#681177}
parent 3e1f3bbc
...@@ -463,7 +463,7 @@ base::Optional<VideoFrameLayout> V4L2SliceVideoDecoder::SetupOutputFormat( ...@@ -463,7 +463,7 @@ base::Optional<VideoFrameLayout> V4L2SliceVideoDecoder::SetupOutputFormat(
frame_layout->coded_size().height()); frame_layout->coded_size().height());
base::Optional<struct v4l2_format> format = base::Optional<struct v4l2_format> format =
SetFormatOnOutputQueue(format_fourcc, adjusted_size); SetFormatOnOutputQueue(format_fourcc, adjusted_size);
if (!format) { if (format) {
num_output_planes_ = format->fmt.pix_mp.num_planes; num_output_planes_ = format->fmt.pix_mp.num_planes;
return frame_layout; return frame_layout;
} }
......
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