Chromium Code Reviews| Index: content/common/gpu/media/v4l2_image_processor.cc |
| diff --git a/content/common/gpu/media/v4l2_image_processor.cc b/content/common/gpu/media/v4l2_image_processor.cc |
| index 67303daabc57f29a1ff10e504f706f677f022b1e..a88ae321741903934ae363450523cccc0a184ffe 100644 |
| --- a/content/common/gpu/media/v4l2_image_processor.cc |
| +++ b/content/common/gpu/media/v4l2_image_processor.cc |
| @@ -119,9 +119,9 @@ bool V4L2ImageProcessor::Initialize(media::VideoFrame::Format input_format, |
| output_allocated_size_ = output_allocated_size; |
| input_planes_count_ = media::VideoFrame::NumPlanes(input_format); |
| - DCHECK_LE(input_planes_count_, VIDEO_MAX_PLANES); |
| + DCHECK_LE(static_cast<int>(input_planes_count_), VIDEO_MAX_PLANES); |
|
xhwang
2014/05/15 00:51:45
Can you do it the other way by casting VIDEO_MAX_P
yunlian
2014/05/15 16:34:13
Done.
|
| output_planes_count_ = media::VideoFrame::NumPlanes(output_format); |
| - DCHECK_LE(output_planes_count_, VIDEO_MAX_PLANES); |
| + DCHECK_LE(static_cast<int>(output_planes_count_), VIDEO_MAX_PLANES); |
| // Capabilities check. |
| struct v4l2_capability caps; |