[FFmpeg-cvslog] sunrast: use RLE trigger macro inplace of the hard coded value.

Aneesh Dogra git at videolan.org
Mon Feb 20 01:42:26 CET 2012


ffmpeg | branch: master | Aneesh Dogra <lionaneesh at gmail.com> | Sat Feb 18 02:22:24 2012 +0530| [566df2eea2d8330748e770a7e2ab72df567cd487] | committer: Anton Khirnov

sunrast: use RLE trigger macro inplace of the hard coded value.

Signed-off-by: Anton Khirnov <anton at khirnov.net>

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

 libavcodec/sunrast.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavcodec/sunrast.c b/libavcodec/sunrast.c
index 8754fc5..fef17b4 100644
--- a/libavcodec/sunrast.c
+++ b/libavcodec/sunrast.c
@@ -148,7 +148,7 @@ static int sunrast_decode_frame(AVCodecContext *avctx, void *data,
             if (buf_end - buf < 1)
                 return AVERROR_INVALIDDATA;
 
-            if ((value = *buf++) == 0x80) {
+            if ((value = *buf++) == RLE_TRIGGER) {
                 run = *buf++ + 1;
                 if (run != 1)
                     value = *buf++;



More information about the ffmpeg-cvslog mailing list