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

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2011-12-07 20:29:38 +01:00
parent 1af91978db
commit 8b85c29463
1 changed files with 3 additions and 0 deletions

View File

@ -96,6 +96,9 @@ static void qtrle_decode_1bpp(QtrleContext *s, int stream_ptr, int row_ptr, int
pixel_ptr += 2 * skip;
CHECK_PIXEL_PTR(0); /* make sure pixel_ptr is positive */
if(rle_code == -1)
continue;
if (rle_code < 0) {
/* decode the run length code */
rle_code = -rle_code;