Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1575)

Unified Diff: content/common/gpu/media/v4l2_video_encode_accelerator.cc

Issue 288903002: fix sign-compare warning. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix sign-compare warning. Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/common/gpu/media/v4l2_video_encode_accelerator.cc
diff --git a/content/common/gpu/media/v4l2_video_encode_accelerator.cc b/content/common/gpu/media/v4l2_video_encode_accelerator.cc
index 0dd33a06ad33cbdf260c53055a585e247d416576..95d5079c32529ee8c3a6080a15e0f61772321853 100644
--- a/content/common/gpu/media/v4l2_video_encode_accelerator.cc
+++ b/content/common/gpu/media/v4l2_video_encode_accelerator.cc
@@ -873,7 +873,7 @@ bool V4L2VideoEncodeAccelerator::NegotiateInputFormat(
}
size_t input_planes_count = media::VideoFrame::NumPlanes(input_format);
- DCHECK_LE(input_planes_count, VIDEO_MAX_PLANES);
+ DCHECK_LE(input_planes_count, static_cast<size_t>(VIDEO_MAX_PLANES));
// First see if we the device can use the provided input_format directly.
struct v4l2_format format;
@@ -892,7 +892,7 @@ bool V4L2VideoEncodeAccelerator::NegotiateInputFormat(
return false;
input_planes_count = media::VideoFrame::NumPlanes(input_format);
- DCHECK_LE(input_planes_count, VIDEO_MAX_PLANES);
+ DCHECK_LE(input_planes_count, static_cast<size_t>(VIDEO_MAX_PLANES));
// Device might have adjusted parameters, reset them along with the format.
memset(&format, 0, sizeof(format));
« no previous file with comments | « content/common/gpu/media/v4l2_image_processor.cc ('k') | content/common/gpu/media/video_encode_accelerator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698