Force realtime version 1 streams to only use simple loopfilter
authorAttila Nagy <attilanagy@google.com>
Thu, 8 Dec 2011 08:54:39 +0000 (10:54 +0200)
committerAttila Nagy <attilanagy@google.com>
Wed, 14 Dec 2011 10:57:49 +0000 (12:57 +0200)
...regardless of the speed settings.

Change-Id: I4b91ac7a7208efd690dfc69e175f8eb769b6ce03

vp8/encoder/onyx_if.c

index 5484e55..893062a 100644 (file)
@@ -1196,10 +1196,17 @@ void vp8_set_speed_features(VP8_COMP *cpi)
             cpi->mode_check_freq[THR_NEW1 ] = 1 << (Tmp - 1);
         }
 
-        cm->filter_type = NORMAL_LOOPFILTER;
+        if(cm->version == 0)
+        {
+            cm->filter_type = NORMAL_LOOPFILTER;
 
-        if (Speed >= 14)
+            if (Speed >= 14)
+                cm->filter_type = SIMPLE_LOOPFILTER;
+        }
+        else
+        {
             cm->filter_type = SIMPLE_LOOPFILTER;
+        }
 
         if (Speed >= 15)
         {