diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2010-07-02 17:05:36 +0000 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2010-07-02 17:05:36 +0000 |
commit | 961b0c41b95268e8f5bf4e75a795043f20567ff1 (patch) | |
tree | bd44c5d8ae8f4ed073ed012477acbcc301d28afd | |
parent | 41c1ccc332eba2785a84b883dee96d214a41db2c (diff) | |
download | ffmpeg-961b0c41b95268e8f5bf4e75a795043f20567ff1.tar.gz |
Fix use of unintialized variable introduced in r20411.
Originally committed as revision 24005 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/vorbis_dec.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/vorbis_dec.c b/libavcodec/vorbis_dec.c index 8befe4949a..b3cc43fca4 100644 --- a/libavcodec/vorbis_dec.c +++ b/libavcodec/vorbis_dec.c @@ -576,7 +576,8 @@ static int vorbis_parse_setup_hdr_floors(vorbis_context *vc) int idx; uint_fast8_t book_idx; for (idx = 0; idx < floor_setup->data.t0.num_books; ++idx) { - GET_VALIDATED_INDEX(floor_setup->data.t0.book_list[idx], 8, vc->codebook_count) + GET_VALIDATED_INDEX(book_idx, 8, vc->codebook_count) + floor_setup->data.t0.book_list[idx] = book_idx; if (vc->codebooks[book_idx].dimensions > max_codebook_dim) max_codebook_dim = vc->codebooks[book_idx].dimensions; } |