From c93c7e492b2631958bcf25edbbb91f5a3924bde8 Mon Sep 17 00:00:00 2001 From: ace20022 Date: Fri, 8 Jan 2016 00:32:00 +0100 Subject: [gif] Fall back to DISPOSAL_UNSPECIFIED if no valid disposal method is specified. --- xbmc/guilib/Gif.cpp | 5 +++-- 1 file 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; -- cgit v1.2.3