Re: [AD] patch for the FLC reader

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


> They might be needed after all.  There is a bug report related to the FLI
> player here:  http://www.allegro.cc/forums/view_thread.php?_id=341759

I've commited the attached patch to trunk and branch.  Hopefully this will be 
sufficient to cure the problem.

-- 
Eric Botcazou
--- /home/eric/cvs/allegro/src/fli.c	Sun Jan 11 22:56:57 2004
+++ allegro/src/fli.c	Thu Mar 25 10:44:27 2004
@@ -783,6 +783,9 @@ static void read_frame(void)
       sz = chunk.size - sizeof_FLI_CHUNK;
       frame_size -= chunk.size;
 
+      if (c == frame_header.chunks-1)
+	 sz += frame_size;
+
       switch (chunk.type) {
 
 	 case 4: 


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/