Commit 8b85c294 authored by Michael Niedermayer's avatar Michael Niedermayer

qtrledec: Fix artifacts in tickets/226/qt_rle_bw.mov

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 1af91978
...@@ -96,6 +96,9 @@ static void qtrle_decode_1bpp(QtrleContext *s, int stream_ptr, int row_ptr, int ...@@ -96,6 +96,9 @@ static void qtrle_decode_1bpp(QtrleContext *s, int stream_ptr, int row_ptr, int
pixel_ptr += 2 * skip; pixel_ptr += 2 * skip;
CHECK_PIXEL_PTR(0); /* make sure pixel_ptr is positive */ CHECK_PIXEL_PTR(0); /* make sure pixel_ptr is positive */
if(rle_code == -1)
continue;
if (rle_code < 0) { if (rle_code < 0) {
/* decode the run length code */ /* decode the run length code */
rle_code = -rle_code; rle_code = -rle_code;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment