Mercurial > libavcodec.hg
comparison wmadec.c @ 5086:a10ebd496bd9 libavcodec
sanity checks (should prevent hypothetical div by zero issue)
should fix sf bug #1547313
author | michael |
---|---|
date | Wed, 30 May 2007 23:06:37 +0000 |
parents | 4ae9ab738aec |
children | bff60ecc02f9 |
comparison
equal
deleted
inserted
replaced
5085:81bbca75ae2f | 5086:a10ebd496bd9 |
---|---|
104 | 104 |
105 s->use_exp_vlc = flags2 & 0x0001; | 105 s->use_exp_vlc = flags2 & 0x0001; |
106 s->use_bit_reservoir = flags2 & 0x0002; | 106 s->use_bit_reservoir = flags2 & 0x0002; |
107 s->use_variable_block_len = flags2 & 0x0004; | 107 s->use_variable_block_len = flags2 & 0x0004; |
108 | 108 |
109 ff_wma_init(avctx, flags2); | 109 if(ff_wma_init(avctx, flags2)<0) |
110 return -1; | |
110 | 111 |
111 /* init MDCT */ | 112 /* init MDCT */ |
112 for(i = 0; i < s->nb_block_sizes; i++) | 113 for(i = 0; i < s->nb_block_sizes; i++) |
113 ff_mdct_init(&s->mdct_ctx[i], s->frame_len_bits - i + 1, 1); | 114 ff_mdct_init(&s->mdct_ctx[i], s->frame_len_bits - i + 1, 1); |
114 | 115 |