Mercurial > libavcodec.hg
comparison vp6.c @ 11342:8d23ea397dda libavcodec
Plug some memory leaks in the VP6 decoder
author | vitor |
---|---|
date | Wed, 03 Mar 2010 17:24:32 +0000 |
parents | 8332746a9db9 |
children | 7d9a1a807e91 |
comparison
equal
deleted
inserted
replaced
11341:a26f51d0bb63 | 11342:8d23ea397dda |
---|---|
225 b = tmp[i].count * (255 - coeff_model[i]) >> 8; | 225 b = tmp[i].count * (255 - coeff_model[i]) >> 8; |
226 nodes[map[2*i ]].count = a + !a; | 226 nodes[map[2*i ]].count = a + !a; |
227 nodes[map[2*i+1]].count = b + !b; | 227 nodes[map[2*i+1]].count = b + !b; |
228 } | 228 } |
229 | 229 |
230 free_vlc(vlc); | |
230 /* then build the huffman tree accodring to probabilities */ | 231 /* then build the huffman tree accodring to probabilities */ |
231 ff_huff_build_tree(s->avctx, vlc, size, nodes, vp6_huff_cmp, | 232 ff_huff_build_tree(s->avctx, vlc, size, nodes, vp6_huff_cmp, |
232 FF_HUFFMAN_FLAG_HNODE_FIRST); | 233 FF_HUFFMAN_FLAG_HNODE_FIRST); |
233 } | 234 } |
234 | 235 |