From ac69d81210d3d1479dec0ff39850178b321d4ad8 Mon Sep 17 00:00:00 2001 From: "flamingice@sourmilk.net" Date: Tue, 7 Aug 2007 09:41:30 -0700 Subject: [PATCH] Bug 386268, Animated GIF doesn't loop properly, Patch by Alfred Kayser, r=pavlov, sr=tor, a=blocking1.9 --- modules/libpr0n/decoders/gif/nsGIFDecoder2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/libpr0n/decoders/gif/nsGIFDecoder2.cpp b/modules/libpr0n/decoders/gif/nsGIFDecoder2.cpp index f576baa481e2..eabff290159d 100644 --- a/modules/libpr0n/decoders/gif/nsGIFDecoder2.cpp +++ b/modules/libpr0n/decoders/gif/nsGIFDecoder2.cpp @@ -1121,11 +1121,11 @@ nsresult nsGIFDecoder2::GifWrite(const PRUint8 *buf, PRUint32 len) if (!mGIFStruct.rows_remaining) { #ifdef DONT_TOLERATE_BROKEN_GIFS mGIFStruct.state = gif_error; + break; #else /* This is an illegal GIF, but we remain tolerant. */ GETN(1, gif_sub_block); #endif - break; } GETN(mGIFStruct.count, gif_lzw); } else {