[FFmpeg-cvslog] r24005 - trunk/libavcodec/vorbis_dec.c

reimar subversion
Fri Jul 2 19:05:36 CEST 2010


Author: reimar
Date: Fri Jul  2 19:05:36 2010
New Revision: 24005

Log:
Fix use of unintialized variable introduced in r20411.

Modified:
   trunk/libavcodec/vorbis_dec.c

Modified: trunk/libavcodec/vorbis_dec.c
==============================================================================
--- trunk/libavcodec/vorbis_dec.c	Fri Jul  2 18:41:38 2010	(r24004)
+++ trunk/libavcodec/vorbis_dec.c	Fri Jul  2 19:05:36 2010	(r24005)
@@ -576,7 +576,8 @@ static int vorbis_parse_setup_hdr_floors
                 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;
                 }



More information about the ffmpeg-cvslog mailing list