media/gpu/V4L2VEA: Fix wrong V4L2PixFmtToVideoPixelFormat call on V4L2VEA

V4L2VEA wrongly calls V4L2Device::V4L2PixFmtToVideoPixelFormat to
VideoPixelFormat in VideoFrameLayout::Create. Just pass the VideoPixelFormat
without calling.

BUG=chromium:907132
TEST=VEA unittest on peach_pit

Change-Id: I3800cc81403a19e7521f724f972f63e937f0873b
Reviewed-on: https://chromium-review.googlesource.com/c/1345700
Reviewed-by: Pawel Osciak <posciak@chromium.org>
Commit-Queue: Hirokazu Honda <hiroh@chromium.org>
Cr-Commit-Position: refs/heads/master@{#609936}
diff --git a/media/gpu/v4l2/v4l2_video_encode_accelerator.cc b/media/gpu/v4l2/v4l2_video_encode_accelerator.cc
index c579f95..4976da8 100644
--- a/media/gpu/v4l2/v4l2_video_encode_accelerator.cc
+++ b/media/gpu/v4l2/v4l2_video_encode_accelerator.cc
@@ -210,16 +210,14 @@
       return false;
     }
 
-    auto input_layout = VideoFrameLayout::Create(
-        V4L2Device::V4L2PixFmtToVideoPixelFormat(config.input_format),
-        visible_size_);
+    auto input_layout =
+        VideoFrameLayout::Create(config.input_format, visible_size_);
     if (!input_layout) {
       VLOGF(1) << "Invalid image processor input layout";
       return false;
     }
-    auto output_layout = VideoFrameLayout::Create(
-        V4L2Device::V4L2PixFmtToVideoPixelFormat(device_input_format_),
-        input_allocated_size_);
+    auto output_layout =
+        VideoFrameLayout::Create(device_input_format_, input_allocated_size_);
     if (!output_layout) {
       VLOGF(1) << "Invalid image processor output layout";
       return false;