changeset 1714:033eeef90b2b libavcodec

off-by-1 error in the never-before-tested embedded string code
author melanson
date Fri, 02 Jan 2004 02:31:53 +0000
parents 49e46374baa4
children 88a2c6cc45f4
files svq1.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/svq1.c	Thu Jan 01 18:02:30 2004 +0000
+++ b/svq1.c	Fri Jan 02 02:31:53 2004 +0000
@@ -579,7 +579,7 @@
 
   seed = string_table[out[0]];
 
-  for (i=1; i < out[0]; i++) {
+  for (i=1; i <= out[0]; i++) {
     out[i] = get_bits (bitbuf, 8) ^ seed;
     seed   = string_table[out[i] ^ seed];
   }