diff options
author | Mike Melanson <mike@multimedia.cx> | 2004-01-02 02:31:53 +0000 |
---|---|---|
committer | Mike Melanson <mike@multimedia.cx> | 2004-01-02 02:31:53 +0000 |
commit | 2ad5d5a8c834c53ca11402d6cdc52329487e8a2c (patch) | |
tree | 7a9c7ce83ec926f839fe9c539c10a613ff6db867 /libavcodec/svq1.c | |
parent | c0baa56a252310f461925bf30fea5bb07df9285a (diff) | |
download | ffmpeg-2ad5d5a8c834c53ca11402d6cdc52329487e8a2c.tar.gz |
off-by-1 error in the never-before-tested embedded string code
Originally committed as revision 2649 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/svq1.c')
-rw-r--r-- | libavcodec/svq1.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/svq1.c b/libavcodec/svq1.c index 9881ab5f09..bba2352dfc 100644 --- a/libavcodec/svq1.c +++ b/libavcodec/svq1.c @@ -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]; } |