aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/qtrle.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-12-07 20:29:38 +0100
committerMichael Niedermayer <michaelni@gmx.at>2011-12-07 21:11:51 +0100
commit8b85c29463414c5a971ba47f94de4888ff67e058 (patch)
treebebb07cc0ccc578d18d32b48dc5b1631c98eaf75 /libavcodec/qtrle.c
parent1af91978dbab35ba9fdede187577c00d643ae33b (diff)
downloadffmpeg-8b85c29463414c5a971ba47f94de4888ff67e058.tar.gz
qtrledec: Fix artifacts in tickets/226/qt_rle_bw.mov
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/qtrle.c')
-rw-r--r--libavcodec/qtrle.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/qtrle.c b/libavcodec/qtrle.c
index e84a63bc30..4ef529d5b2 100644
--- a/libavcodec/qtrle.c
+++ b/libavcodec/qtrle.c
@@ -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;