Chromium Code Reviews| Index: media/video/capture/video_capture_types.cc |
| diff --git a/media/video/capture/video_capture_types.cc b/media/video/capture/video_capture_types.cc |
| index aee3865a57be3f0e4f22017ee2c3e6a22b0052a8..98958e5760c118afd2c24463933820227ff1fa00 100644 |
| --- a/media/video/capture/video_capture_types.cc |
| +++ b/media/video/capture/video_capture_types.cc |
| @@ -21,7 +21,7 @@ VideoCaptureFormat::VideoCaptureFormat(const gfx::Size& frame_size, |
| bool VideoCaptureFormat::IsValid() const { |
| return (frame_size.width() < media::limits::kMaxDimension) && |
| (frame_size.height() < media::limits::kMaxDimension) && |
| - (frame_size.GetArea() > 0) && |
| + (frame_size.GetArea() >= 0) && |
|
mcasas
2014/01/21 14:34:02
I think a frame with dimensions (0,0) is correct i
|
| (frame_size.GetArea() < media::limits::kMaxCanvas) && |
| (frame_rate > 0) && |
| (frame_rate < media::limits::kMaxFramesPerSecond) && |