From de0aa9e5a4e65c18397880d04de6ff6b8deb8a14 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Wed, 7 Nov 2012 01:42:11 +0100 Subject: kgv1dec: fix end condition Signed-off-by: Michael Niedermayer --- libavcodec/kgv1dec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec/kgv1dec.c') diff --git a/libavcodec/kgv1dec.c b/libavcodec/kgv1dec.c index 6552dc537f..6c1daa90b7 100644 --- a/libavcodec/kgv1dec.c +++ b/libavcodec/kgv1dec.c @@ -83,7 +83,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPac for (i = 0; i < 8; i++) offsets[i] = -1; - while (outcnt < maxcnt && buf_end - 2 > buf) { + while (outcnt < maxcnt && buf_end - 2 >= buf) { int code = AV_RL16(buf); buf += 2; -- cgit v1.2.1