aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/kgv1dec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-11-07 01:42:11 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-11-07 01:51:24 +0100
commitde0aa9e5a4e65c18397880d04de6ff6b8deb8a14 (patch)
treea1331462def54fa800550d24104f5668abf4388e /libavcodec/kgv1dec.c
parent2b442ff5f5c1499428b396f585d5d90c22a3c98e (diff)
downloadffmpeg-de0aa9e5a4e65c18397880d04de6ff6b8deb8a14.tar.gz
kgv1dec: fix end condition
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/kgv1dec.c')
-rw-r--r--libavcodec/kgv1dec.c2
1 files changed, 1 insertions, 1 deletions
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;