changeset 2731:0b4b57c4a8f5 libavcodec

read loop filter limit values from Theora header, courtesy of Matthieu Castet (castet.matthieu -at- free.fr)
author melanson
date Tue, 24 May 2005 14:21:42 +0000
parents 5bc8023efdba
children 473ee06ec3a1
files vp3.c
diffstat 1 files changed, 2 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- 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;