Browse Source

off-by-1 error in the never-before-tested embedded string code

Originally committed as revision 2649 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Mike Melanson 22 years ago
parent
commit
2ad5d5a8c8
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/svq1.c

+ 1
- 1
libavcodec/svq1.c View File

@@ -579,7 +579,7 @@ static void svq1_parse_string (GetBitContext *bitbuf, uint8_t *out) {

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];
}


Loading…
Cancel
Save