198149 patch by gjuyn@3-t.com rs=tor (third party library, patch by author)

MNG that is set to loop indefinitely, stops working after first loop.


git-svn-id: svn://10.0.0.236/trunk@139977 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
cbiesinger%web.de 2003-03-21 21:37:37 +00:00
parent a5963c6df9
commit 06ca2f3329
2 changed files with 9 additions and 1 deletions

View File

@ -0,0 +1,5 @@
Changes made to pristine libmng source by mozilla.org developers.
2003/03/21 -- Patch for bug 198149:
http://bugzilla.mozilla.org/attachment.cgi?id=117759&action=view

View File

@ -106,6 +106,8 @@
/* * - fixed magnification bug with object 0 * */
/* * 1.0.5 - 01/19/2003 - G.Juyn * */
/* * - B664911 - fixed buffer overflow during init * */
/* * 1.0.6 - 19/04/2003 - G.Juyn * */
/* * - fixed problem with infinite loops during readdisplay() * */
/* * * */
/* ************************************************************************** */
@ -2996,7 +2998,8 @@ mng_retcode mng_process_ani_endl (mng_datap pData,
if ((pLOOP->iRunningcount) && (pLOOP->iRunningcount < 0x7fffffffL))
pLOOP->iRunningcount--;
if ((pData->bReading) && (pLOOP->iRunningcount >= 0x7fffffffL))
if ((!pData->bDisplaying) && (pData->bReading) &&
(pLOOP->iRunningcount >= 0x7fffffffL))
{
pData->iTotalframes = 0x7fffffffL;
pData->iTotallayers = 0x7fffffffL;