]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
read loop filter limit values from Theora header, courtesy of Matthieu
authormelanson <melanson@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Tue, 24 May 2005 14:21:42 +0000 (14:21 +0000)
committermelanson <melanson@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Tue, 24 May 2005 14:21:42 +0000 (14:21 +0000)
Castet (castet.matthieu -at- free.fr)

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@4304 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

libavcodec/vp3.c

index 3dba5f4c443eede4f4bc85e98c9ce12120ad025b..757036d973c3ba26b760137eb2b0397d8dbac00f 100644 (file)
@@ -3420,9 +3420,9 @@ static int theora_decode_tables(AVCodecContext *avctx, GetBitContext gb)
 
     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 @@ static int theora_decode_tables(AVCodecContext *avctx, GetBitContext gb)
         }
     }
     
-    /* 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;