1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

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

Signed-off-by: Anton Khirnov <anton@khirnov.net>
This commit is contained in:
Aneesh Dogra 2012-02-18 02:04:24 +05:30 committed by Anton Khirnov
parent 1a58daed0f
commit 566df2eea2

View File

@ -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++;