changeset 2508:b0ec6f51b5bd libavcodec

Off-by-one bug in libavcodec/idcinvideo.c, caused segfaults on all .cin videos from Quake II. patch by (Matti Hamalainen <mhamalai ratol fi>)
author michael
date Wed, 16 Feb 2005 22:42:41 +0000
parents 0334caf0f0ce
children b3b06ba8787c
files idcinvideo.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/idcinvideo.c	Tue Feb 15 20:58:32 2005 +0000
+++ b/idcinvideo.c	Wed Feb 16 22:42:41 2005 +0000
@@ -192,7 +192,7 @@
 
             while(node_num >= HUF_TOKENS) {
                 if(!bit_pos) {
-                    if(dat_pos > s->size) {
+                    if(dat_pos >= s->size) {
                         av_log(s->avctx, AV_LOG_ERROR, "Huffman decode error.\n");
                         return;
                     }