Index: src/codec/SkCodecPriv.h |
diff --git a/src/codec/SkCodecPriv.h b/src/codec/SkCodecPriv.h |
index 2c64bddc735388f1617f232bef6260604e1124e5..74b39df0b58b3302c0f9576681cb51bbc3134ec6 100644 |
--- a/src/codec/SkCodecPriv.h |
+++ b/src/codec/SkCodecPriv.h |
@@ -98,7 +98,7 @@ static inline void copy_color_table(const SkImageInfo& dstInfo, SkColorTable* co |
SkASSERT(NULL != inputColorPtr); |
SkASSERT(NULL != inputColorCount); |
SkASSERT(NULL != colorTable); |
- memcpy(inputColorPtr, colorTable->readColors(), *inputColorCount * 4); |
+ memcpy(inputColorPtr, colorTable->readColors(), *inputColorCount * sizeof(SkPMColor)); |
} |
} |
@@ -184,7 +184,7 @@ static inline uint32_t get_int(uint8_t* buffer, uint32_t i) { |
#endif |
} |
-#ifdef SK_PRINT_CODEC_MESSAGES |
+#ifndef SK_PRINT_CODEC_MESSAGES |
msarett
2015/08/24 23:20:12
For debugging, will fix.
|
#define SkCodecPrintf SkDebugf |
#else |
#define SkCodecPrintf(...) |