[FFmpeg-cvslog] qtrledec: Fix artifacts in tickets/226/qt_rle_bw.mov

Michael Niedermayer git at videolan.org
Wed Dec 7 21:12:59 CET 2011


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Dec  7 20:29:38 2011 +0100| [8b85c29463414c5a971ba47f94de4888ff67e058] | committer: Michael Niedermayer

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

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8b85c29463414c5a971ba47f94de4888ff67e058
---

 libavcodec/qtrle.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/libavcodec/qtrle.c b/libavcodec/qtrle.c
index e84a63b..4ef529d 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;



More information about the ffmpeg-cvslog mailing list