From 37e6f5f321d2c0a0bd6b21fb4c19cba366061a59 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Thu, 23 Nov 2006 23:50:08 +0000 Subject: [PATCH] support byte_run=0 case in DELTA_FLI (this case means only skip pixels) Originally committed as revision 7164 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/flicvideo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/flicvideo.c b/libavcodec/flicvideo.c index fcdaf83..6a80a15 100644 --- a/libavcodec/flicvideo.c +++ b/libavcodec/flicvideo.c @@ -308,7 +308,7 @@ static int flic_decode_frame_8BPP(AVCodecContext *avctx, palette_idx1 = buf[stream_ptr++]; pixels[pixel_ptr++] = palette_idx1; } - } else { + } else if (byte_run < 0) { byte_run = -byte_run; palette_idx1 = buf[stream_ptr++]; CHECK_PIXEL_PTR(byte_run); -- 2.7.4