changeset 512:ef0d98d55865 stable-1.0

Patch to get mpglib going again, from Sam.
author Ryan C. Gordon <icculus@icculus.org>
date Fri, 12 May 2006 14:43:27 +0000
parents 5859ad32fc3b
children c5f184b4b2cd
files CHANGELOG decoders/mpglib.c
diffstat 2 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/CHANGELOG	Sat Dec 17 18:55:32 2005 +0000
+++ b/CHANGELOG	Fri May 12 14:43:27 2006 +0000
@@ -2,6 +2,7 @@
  * CHANGELOG.
  */
 
+05122005 - Patched to get mpglib compiling again (thanks, Sam!).
 12172005 - Fixed gcc4 whining in playsound_simple.c.
 12062005 - Trimmed a bunch of junk out of the build system, and now it works
            on Mac OS X again.
--- a/decoders/mpglib.c	Sat Dec 17 18:55:32 2005 +0000
+++ b/decoders/mpglib.c	Fri May 12 14:43:27 2006 +0000
@@ -199,7 +199,7 @@
     {
         if (mpg->outleft > 0)
         {
-            Uint16 cpysize = internal->buffer_size - bw;
+            size_t cpysize = internal->buffer_size - bw;
             if (cpysize > mpg->outleft)
                 cpysize = mpg->outleft;
             memcpy(((Uint8 *) internal->buffer) + bw,