# HG changeset patch # User conrad # Date 1266711058 0 # Node ID 6cb4b2e4af1cafecb4cc3ce47d3ce51e906243d4 # Parent 9aea1eaefe1613b5bf644fd55e17e5ecedae0984 Handle Theora's continued runs in superblock coding. This doesn't really matter yet since 4:2:0 1080p has only 3060 superblocks, but larger resolutions or 4:4:4 1080p could hit this case. diff -r 9aea1eaefe16 -r 6cb4b2e4af1c vp3.c --- a/vp3.c Sun Feb 21 00:10:54 2010 +0000 +++ b/vp3.c Sun Feb 21 00:10:58 2010 +0000 @@ -482,6 +482,9 @@ if (bit) num_partial_superblocks += current_run; + if (s->theora && current_run == MAXIMUM_LONG_BIT_RUN) + bit = get_bits1(gb); + else bit ^= 1; } @@ -512,6 +515,9 @@ } superblocks_decoded += current_run; + if (s->theora && current_run == MAXIMUM_LONG_BIT_RUN) + bit = get_bits1(gb); + else bit ^= 1; } }