[xiph-commits] r16702 - trunk/theora/lib
tterribe at svn.xiph.org
tterribe at svn.xiph.org
Sat Nov 14 16:40:56 PST 2009
Author: tterribe
Date: 2009-11-14 16:40:55 -0800 (Sat, 14 Nov 2009)
New Revision: 16702
Modified:
trunk/theora/lib/huffdec.c
Log:
Fix Huffman table decoding when OC_HUFF_SLUSH is defined to be 0.
Modified: trunk/theora/lib/huffdec.c
===================================================================
--- trunk/theora/lib/huffdec.c 2009-11-13 22:53:10 UTC (rev 16701)
+++ trunk/theora/lib/huffdec.c 2009-11-15 00:40:55 UTC (rev 16702)
@@ -413,7 +413,7 @@
}
while(occupancy>loccupancy&&occupancy>=1<<OC_MAXI(depth-OC_HUFF_SLUSH,0));
depth--;
- if(depth<=1)return oc_huff_tree_copy(_binode,_storage);
+ if(depth<=0)return oc_huff_tree_copy(_binode,_storage);
size=oc_huff_node_size(depth);
root=oc_huff_node_init(_storage,size,depth);
root->depth=_binode->depth;
More information about the commits
mailing list