aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/images/SkMovie_gif.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/images/SkMovie_gif.cpp')
-rw-r--r--src/images/SkMovie_gif.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/images/SkMovie_gif.cpp b/src/images/SkMovie_gif.cpp
index 68af85a94b..113804462a 100644
--- a/src/images/SkMovie_gif.cpp
+++ b/src/images/SkMovie_gif.cpp
@@ -220,6 +220,8 @@ SkMovie* Factory(SkStream* stream) {
if (memcmp(GIF_STAMP, buf, GIF_STAMP_LEN) == 0 ||
memcmp(GIF87_STAMP, buf, GIF_STAMP_LEN) == 0 ||
memcmp(GIF89_STAMP, buf, GIF_STAMP_LEN) == 0) {
+ // must rewind here, since our construct wants to re-read the data
+ stream->rewind();
return SkNEW_ARGS(SkGIFMovie, (stream));
}
}