diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2012-01-29 21:23:59 +0100 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2012-01-30 18:39:08 +0100 |
commit | 6166bf3cbe99d687b15fc5a84bd6d399d6bab3fa (patch) | |
tree | dfbe502ea5378a1df0a47945dc082dd58fdef8b3 /libavcodec/flashsvenc.c | |
parent | 5f27374c1b397c718c9c9a28509aab40f681d9da (diff) | |
download | ffmpeg-6166bf3cbe99d687b15fc5a84bd6d399d6bab3fa.tar.gz |
Deobfuscate ff_huff_build_tree.
I have no idea what the idea was behind the original code,
but the new code is equivalent to it.
In that loop that places the new node nodes[j] contains
always the data of the new node (since the steps are always
in order: FFSWAP copies node[j] to node[j-1], j is decremented).
Thus nodes[j].no == i and nodes[j].sym == HNODE.
make fate still passes and contains VP6 samples which use
FF_HUFFMAN_FLAG_HNODE_FIRST.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Diffstat (limited to 'libavcodec/flashsvenc.c')
0 files changed, 0 insertions, 0 deletions