summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
authorwez@chromium.org <wez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-01 06:06:31 +0000
committerwez@chromium.org <wez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-01 06:06:31 +0000
commit0bbc151c056d47e2bf0d9135c34eeab2bc684476 (patch)
tree51ed9dfd6d2a703a511ab00b2bd5037d264aab82 /media
parentb86a938dec58ac038a8d07cfe4f46878d874e359 (diff)
downloadchromium_src-0bbc151c056d47e2bf0d9135c34eeab2bc684476.zip
chromium_src-0bbc151c056d47e2bf0d9135c34eeab2bc684476.tar.gz
chromium_src-0bbc151c056d47e2bf0d9135c34eeab2bc684476.tar.bz2
Replace a CHECK with some CHECK_LEs, to aid in debugging.
BUG=116138 Review URL: http://codereview.chromium.org/9514009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124372 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media')
-rw-r--r--media/base/yuv_convert.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/media/base/yuv_convert.cc b/media/base/yuv_convert.cc
index ed9bed4..edeb847 100644
--- a/media/base/yuv_convert.cc
+++ b/media/base/yuv_convert.cc
@@ -299,7 +299,8 @@ void ScaleYUVToRGB32WithRect(const uint8* y_buf,
filter_proc = ChooseFilterYUVRowsProc();
// This routine doesn't currently support up-scaling.
- CHECK(dest_width <= source_width && dest_height <= source_height);
+ CHECK_LE(dest_width, source_width);
+ CHECK_LE(dest_height, source_height);
// Sanity-check the destination rectangle.
DCHECK(dest_rect_left >= 0 && dest_rect_right <= dest_width);