diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-11-07 01:42:11 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-11-07 01:51:24 +0100 |
commit | de0aa9e5a4e65c18397880d04de6ff6b8deb8a14 (patch) | |
tree | a1331462def54fa800550d24104f5668abf4388e /libavcodec/kgv1dec.c | |
parent | 2b442ff5f5c1499428b396f585d5d90c22a3c98e (diff) | |
download | ffmpeg-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.c | 2 |
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; |