comparison qtrle.c @ 2925:89ce06bb1c87 libavcodec

Make rle_code int everywhere instead of signed char. Fixes playback of auth_generator-demo.mov, for rle_code == -128 the assignement rle_code = -rle_code would overflow. Patch by matthieu castet (castet matthieu (at) free fr)
author reimar
date Fri, 28 Oct 2005 16:01:12 +0000
parents deaf39d8381b
children 8f732838179d
comparison
equal deleted inserted replaced
2924:d98f385b3933 2925:89ce06bb1c87
249 { 249 {
250 int stream_ptr; 250 int stream_ptr;
251 int header; 251 int header;
252 int start_line; 252 int start_line;
253 int lines_to_change; 253 int lines_to_change;
254 signed char rle_code; 254 int rle_code;
255 int row_ptr, pixel_ptr; 255 int row_ptr, pixel_ptr;
256 int row_inc = s->frame.linesize[0]; 256 int row_inc = s->frame.linesize[0];
257 unsigned short rgb16; 257 unsigned short rgb16;
258 unsigned char *rgb = s->frame.data[0]; 258 unsigned char *rgb = s->frame.data[0];
259 int pixel_limit = s->frame.linesize[0] * s->avctx->height; 259 int pixel_limit = s->frame.linesize[0] * s->avctx->height;
327 { 327 {
328 int stream_ptr; 328 int stream_ptr;
329 int header; 329 int header;
330 int start_line; 330 int start_line;
331 int lines_to_change; 331 int lines_to_change;
332 signed char rle_code; 332 int rle_code;
333 int row_ptr, pixel_ptr; 333 int row_ptr, pixel_ptr;
334 int row_inc = s->frame.linesize[0]; 334 int row_inc = s->frame.linesize[0];
335 unsigned char r, g, b; 335 unsigned char r, g, b;
336 unsigned char *rgb = s->frame.data[0]; 336 unsigned char *rgb = s->frame.data[0];
337 int pixel_limit = s->frame.linesize[0] * s->avctx->height; 337 int pixel_limit = s->frame.linesize[0] * s->avctx->height;
406 { 406 {
407 int stream_ptr; 407 int stream_ptr;
408 int header; 408 int header;
409 int start_line; 409 int start_line;
410 int lines_to_change; 410 int lines_to_change;
411 signed char rle_code; 411 int rle_code;
412 int row_ptr, pixel_ptr; 412 int row_ptr, pixel_ptr;
413 int row_inc = s->frame.linesize[0]; 413 int row_inc = s->frame.linesize[0];
414 unsigned char r, g, b; 414 unsigned char r, g, b;
415 unsigned int argb; 415 unsigned int argb;
416 unsigned char *rgb = s->frame.data[0]; 416 unsigned char *rgb = s->frame.data[0];