diff options
author | ace20022 <ace20022@ymail.com> | 2016-01-08 00:32:00 +0100 |
---|---|---|
committer | ace20022 <ace20022@ymail.com> | 2016-01-08 20:30:20 +0100 |
commit | c93c7e492b2631958bcf25edbbb91f5a3924bde8 (patch) | |
tree | 1862f7ab9ba38e08d99f6418d989dcf4398f3c28 | |
parent | 0544094673c015228ecf31e35f5e7c62e61c3a1a (diff) |
[gif] Fall back to DISPOSAL_UNSPECIFIED if no valid disposal method is specified.
-rw-r--r-- | xbmc/guilib/Gif.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/xbmc/guilib/Gif.cpp b/xbmc/guilib/Gif.cpp index 1e5792d82d..9f85d4001f 100644 --- a/xbmc/guilib/Gif.cpp +++ b/xbmc/guilib/Gif.cpp @@ -512,8 +512,9 @@ bool Gif::PrepareTemplate(GifFrame &frame) } default: { - CLog::Log(LOGDEBUG, "Gif::PrepareTemplate(): Unknown disposal method: %d", frame.m_disposal); - return false; + CLog::Log(LOGDEBUG, "Gif::PrepareTemplate(): Unknown disposal method: %d. Using DISPOSAL_UNSPECIFIED, the animation might be wrong now.", frame.m_disposal); + frame.m_disposal = DISPOSAL_UNSPECIFIED; + return PrepareTemplate(frame); } } return true; |