Mercurial > libavcodec.hg
comparison vorbis_dec.c @ 12440:4c8aac222d19 libavcodec
vorbisdec: Use int instead of uint16_fast_t for index variables
uint16_fast_t is unsigned int (or long) on Linux, which when compared
with int results in an unsigned compare.
author | conrad |
---|---|
date | Mon, 30 Aug 2010 22:34:09 +0000 |
parents | 9999147e9d50 |
children |
comparison
equal
deleted
inserted
replaced
12439:51fc247eed32 | 12440:4c8aac222d19 |
---|---|
465 static uint_fast8_t vorbis_floor1_decode(vorbis_context *vc, | 465 static uint_fast8_t vorbis_floor1_decode(vorbis_context *vc, |
466 vorbis_floor_data *vfu, float *vec); | 466 vorbis_floor_data *vfu, float *vec); |
467 static int vorbis_parse_setup_hdr_floors(vorbis_context *vc) | 467 static int vorbis_parse_setup_hdr_floors(vorbis_context *vc) |
468 { | 468 { |
469 GetBitContext *gb = &vc->gb; | 469 GetBitContext *gb = &vc->gb; |
470 uint_fast16_t i,j,k; | 470 int i,j,k; |
471 | 471 |
472 vc->floor_count = get_bits(gb, 6) + 1; | 472 vc->floor_count = get_bits(gb, 6) + 1; |
473 | 473 |
474 vc->floors = av_mallocz(vc->floor_count * sizeof(vorbis_floor)); | 474 vc->floors = av_mallocz(vc->floor_count * sizeof(vorbis_floor)); |
475 | 475 |