aboutsummaryrefslogtreecommitdiffhomepage
path: root/libmpcodecs/native
diff options
context:
space:
mode:
authorGravatar arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-07-06 15:17:27 +0000
committerGravatar arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-07-06 15:17:27 +0000
commita983a1f0883e3a24199ca31ea75181ae0bc3da9d (patch)
treef9f3f54ccfdb6e19e74dd91aa0b7a17dd668e04b /libmpcodecs/native
parent8d8026ed487c4daf93340937d15e94d113b9a8c4 (diff)
bugfix by Michael.Lampe@iwr.uni-heidelberg.de
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6657 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs/native')
-rw-r--r--libmpcodecs/native/qtrle.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libmpcodecs/native/qtrle.c b/libmpcodecs/native/qtrle.c
index 6d46f9b32c..89cf99c10c 100644
--- a/libmpcodecs/native/qtrle.c
+++ b/libmpcodecs/native/qtrle.c
@@ -61,7 +61,8 @@ void qt_decode_rle24(
{
pixel_ptr = row_ptr + ((encoded[stream_ptr++] - 1) * bytes_per_pixel);
- while ((rle_code = (signed char)encoded[stream_ptr++]) != -1)
+ while (stream_ptr < encoded_size &&
+ (rle_code = (signed char)encoded[stream_ptr++]) != -1)
{
if (rle_code == 0)
// there's another skip code in the stream