# HG changeset patch # User reimar # Date 1130515272 0 # Node ID 89ce06bb1c8774843ce8d25a1d20bc2e3c8d2823 # Parent d98f385b39331439676956f4c3dea122bea644ae 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) diff -r d98f385b3933 -r 89ce06bb1c87 qtrle.c --- a/qtrle.c Fri Oct 28 06:37:32 2005 +0000 +++ b/qtrle.c Fri Oct 28 16:01:12 2005 +0000 @@ -251,7 +251,7 @@ int header; int start_line; int lines_to_change; - signed char rle_code; + int rle_code; int row_ptr, pixel_ptr; int row_inc = s->frame.linesize[0]; unsigned short rgb16; @@ -329,7 +329,7 @@ int header; int start_line; int lines_to_change; - signed char rle_code; + int rle_code; int row_ptr, pixel_ptr; int row_inc = s->frame.linesize[0]; unsigned char r, g, b; @@ -408,7 +408,7 @@ int header; int start_line; int lines_to_change; - signed char rle_code; + int rle_code; int row_ptr, pixel_ptr; int row_inc = s->frame.linesize[0]; unsigned char r, g, b;