# HG changeset patch # User melanson # Date 1116944502 0 # Node ID 0b4b57c4a8f5743fd93664485ca31e82456d42d0 # Parent 5bc8023efdba11d046d9231b2003d1cde7bb76ca read loop filter limit values from Theora header, courtesy of Matthieu Castet (castet.matthieu -at- free.fr) diff -r 5bc8023efdba -r 0b4b57c4a8f5 vp3.c --- a/vp3.c Sun May 22 23:58:58 2005 +0000 +++ b/vp3.c Tue May 24 14:21:42 2005 +0000 @@ -3420,9 +3420,9 @@ if (s->theora >= 0x030200) { n = get_bits(&gb, 3); - /* loop filter table */ + /* loop filter limit values table */ for (i = 0; i < 64; i++) - skip_bits(&gb, n); + s->filter_limit_values[i] = get_bits(&gb, n); } if (s->theora >= 0x030200) @@ -3497,10 +3497,6 @@ } } - /* XXX FIXME: these limit values need to come from the Theora header */ - for (i = 0; i < 64; i++) - s->filter_limit_values[i] = vp31_filter_limit_values[i]; - s->theora_tables = 1; return 0;