[FFmpeg-cvslog] r21724 - in branches/0.5: . libavcodec/vorbis_dec.c
siretart
subversion
Tue Feb 9 20:46:23 CET 2010
Author: siretart
Date: Tue Feb 9 20:46:22 2010
New Revision: 21724
Log:
Fix book_idx check.
25_vorbis_floor0_index.patch by chrome.
backport r19984 by michael
Modified:
branches/0.5/ (props changed)
branches/0.5/libavcodec/vorbis_dec.c
Modified: branches/0.5/libavcodec/vorbis_dec.c
==============================================================================
--- branches/0.5/libavcodec/vorbis_dec.c Tue Feb 9 20:45:16 2010 (r21723)
+++ branches/0.5/libavcodec/vorbis_dec.c Tue Feb 9 20:46:22 2010 (r21724)
@@ -558,12 +558,11 @@ static int vorbis_parse_setup_hdr_floors
uint_fast8_t book_idx;
for (idx=0;idx<floor_setup->data.t0.num_books;++idx) {
book_idx=get_bits(gb, 8);
+ if (book_idx>=vc->codebook_count)
+ return 1;
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;
-
- if (floor_setup->data.t0.book_list[idx]>vc->codebook_count)
- return 1;
}
}
More information about the ffmpeg-cvslog
mailing list