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

Unified Diff: third_party/libwebp/utils/quant_levels_dec.c

Issue 116213006: Update libwebp to 0.4.0 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: After Blink Roll Created 6 years, 11 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
« no previous file with comments | « third_party/libwebp/utils/quant_levels_dec.h ('k') | third_party/libwebp/utils/random.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/libwebp/utils/quant_levels_dec.c
diff --git a/third_party/libwebp/utils/quant_levels_dec.c b/third_party/libwebp/utils/quant_levels_dec.c
index d93594b3ba6b01654f6db30be47e90b452d9e107..8489705a2d7eb04daca003bfaa53863d7891f7e2 100644
--- a/third_party/libwebp/utils/quant_levels_dec.c
+++ b/third_party/libwebp/utils/quant_levels_dec.c
@@ -13,18 +13,12 @@
#include "./quant_levels_dec.h"
-#if defined(__cplusplus) || defined(c_plusplus)
-extern "C" {
-#endif
-
-int DequantizeLevels(uint8_t* const data, int width, int height) {
- if (data == NULL || width <= 0 || height <= 0) return 0;
- (void)data;
- (void)width;
- (void)height;
+int DequantizeLevels(uint8_t* const data, int width, int height,
+ int row, int num_rows) {
+ if (data == NULL || width <= 0 || height <= 0 || row < 0 || num_rows < 0 ||
+ row + num_rows > height) {
+ return 0;
+ }
return 1;
}
-#if defined(__cplusplus) || defined(c_plusplus)
-} // extern "C"
-#endif
« no previous file with comments | « third_party/libwebp/utils/quant_levels_dec.h ('k') | third_party/libwebp/utils/random.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698