diff options
author | spiff_ <spiff_@svn> | 2010-01-08 23:47:11 +0000 |
---|---|---|
committer | spiff_ <spiff_@svn> | 2010-01-08 23:47:11 +0000 |
commit | d5c23e36410e2570b1089da505acb2b69d53262a (patch) | |
tree | e38ac6cc8d36b323a3e800bb399585a014b3ea4f /guilib/AnimatedGif.cpp | |
parent | ccea07a5a4229a0f7ebb7ff58e034820751a744a (diff) |
cosmetics
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@26558 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'guilib/AnimatedGif.cpp')
-rw-r--r-- | guilib/AnimatedGif.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/guilib/AnimatedGif.cpp b/guilib/AnimatedGif.cpp index 30363b69fd..45d3cdb153 100644 --- a/guilib/AnimatedGif.cpp +++ b/guilib/AnimatedGif.cpp @@ -335,7 +335,7 @@ int CAnimatedGifSet::LoadGIF (const char * szFileName) } else nLoops = 0; - + if (nLoops) nLoops++; getbyte(fd); } @@ -415,7 +415,7 @@ int CAnimatedGifSet::LoadGIF (const char * szFileName) bool isPalRead = false; if (LocalColorMap && fread((char*)NextImage->Palette, 1, palSize, fd) == palSize) isPalRead = true; - + // Copy global, if no palette if (!isPalRead) memcpy(NextImage->Palette, GlobalColorMap, palSize); @@ -576,7 +576,7 @@ int LZWDecoder (char * bufIn, char * bufOut, // - Table Suffices contain the raw codes to be output while (OutCode >= FirstEntry) { - if (OutIndex > 4096 || OutCode >= 4096) + if (OutIndex > 4096 || OutCode >= 4096) return 0; OutStack[OutIndex++] = Suffix[OutCode]; // Add suffix to Output Stack OutCode = Prefix[OutCode]; // Loop with preffix |