comparison decoders/mpglib.c @ 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 cbb15ecf423a
children 50bb9a6cebfe
comparison
equal deleted inserted replaced
509:5859ad32fc3b 512:ef0d98d55865
197 197
198 while (bw < internal->buffer_size) 198 while (bw < internal->buffer_size)
199 { 199 {
200 if (mpg->outleft > 0) 200 if (mpg->outleft > 0)
201 { 201 {
202 Uint16 cpysize = internal->buffer_size - bw; 202 size_t cpysize = internal->buffer_size - bw;
203 if (cpysize > mpg->outleft) 203 if (cpysize > mpg->outleft)
204 cpysize = mpg->outleft; 204 cpysize = mpg->outleft;
205 memcpy(((Uint8 *) internal->buffer) + bw, 205 memcpy(((Uint8 *) internal->buffer) + bw,
206 mpg->outbuf + mpg->outpos, cpysize); 206 mpg->outbuf + mpg->outpos, cpysize);
207 bw += cpysize; 207 bw += cpysize;