aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/codec
diff options
context:
space:
mode:
authorGravatar yujieqin <yujieqin@google.com>2016-01-27 07:59:00 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-01-27 07:59:00 -0800
commit24716be1d1e6d7fba6ee8604823ce326fd69be1e (patch)
tree2c09d1d0c49610efb6e99fe3ac6fbabc3d28cabb /src/codec
parentccfdaa5f2aee5da5cb49e0b5828bead73273a15e (diff)
Fix complier issue [-Werror, -Wvla]
Diffstat (limited to 'src/codec')
-rw-r--r--src/codec/SkRawCodec.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/codec/SkRawCodec.cpp b/src/codec/SkRawCodec.cpp
index 05f18ac635..79590d1832 100644
--- a/src/codec/SkRawCodec.cpp
+++ b/src/codec/SkRawCodec.cpp
@@ -405,7 +405,7 @@ SkCodec::Result SkRawCodec::onGetPixels(const SkImageInfo& requestedInfo, void*
}
void* dstRow = dst;
- uint8_t srcRow[width * 3];
+ SkAutoTMalloc<uint8_t> srcRow(width * 3);
dng_pixel_buffer buffer;
buffer.fData = &srcRow[0];