changeset 12079:e2d6add92a73 libavcodec

Fix use of unintialized variable introduced in r20411.
author reimar
date Fri, 02 Jul 2010 17:05:36 +0000
parents c70e2fd8f35d
children 7e6a8ce19977
files vorbis_dec.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/vorbis_dec.c	Fri Jul 02 15:57:56 2010 +0000
+++ b/vorbis_dec.c	Fri Jul 02 17:05:36 2010 +0000
@@ -576,7 +576,8 @@
                 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;
                 }