diff options
author | Sam Judd <judds@google.com> | 2014-08-02 22:37:39 -0700 |
---|---|---|
committer | Sam Judd <judds@google.com> | 2014-08-05 07:33:16 -0700 |
commit | 21c2822985058df655ee4874798297f74c5e367e (patch) | |
tree | ae6d1ea86a24d1b176fb6d2e3c04cfb29fc257dd /third_party/gif_decoder/src/main/java/com/bumptech/glide | |
parent | da4b3dbb786c0f791496e8701bb2e4fc9dbe3536 (diff) | |
download | glide-21c2822985058df655ee4874798297f74c5e367e.tar.gz |
Fold GifData into GifDrawable.
Diffstat (limited to 'third_party/gif_decoder/src/main/java/com/bumptech/glide')
-rw-r--r-- | third_party/gif_decoder/src/main/java/com/bumptech/glide/gifdecoder/GifHeaderParser.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/third_party/gif_decoder/src/main/java/com/bumptech/glide/gifdecoder/GifHeaderParser.java b/third_party/gif_decoder/src/main/java/com/bumptech/glide/gifdecoder/GifHeaderParser.java index c5cde912..da723f5c 100644 --- a/third_party/gif_decoder/src/main/java/com/bumptech/glide/gifdecoder/GifHeaderParser.java +++ b/third_party/gif_decoder/src/main/java/com/bumptech/glide/gifdecoder/GifHeaderParser.java @@ -388,8 +388,8 @@ public class GifHeaderParser { blockSize = read(); int n = 0; if (blockSize > 0) { + int count = 0; try { - int count; while (n < blockSize) { count = blockSize - n; rawData.get(block, n, count); @@ -397,7 +397,7 @@ public class GifHeaderParser { n += count; } } catch (Exception e) { - Log.w(TAG, "Error Reading Block", e); + Log.w(TAG, "Error Reading Block n: " + n + " count: " + count + " blockSize: " + blockSize, e); header.status = STATUS_FORMAT_ERROR; } } |