diff --git a/libavcodec/sunrast.c b/libavcodec/sunrast.c index 8754fc5925..fef17b4054 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++;