Browse Source

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

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n0.9
Michael Niedermayer 14 years ago
parent
commit
8b85c29463
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      libavcodec/qtrle.c

+ 3
- 0
libavcodec/qtrle.c 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;


Loading…
Cancel
Save