shithub: libvpx

Download patch

ref: 6da2018789e08158197be02d83c0cfe9e826fb13
parent: 861175ef001e5211ad9e60221e04da7fd1970d31
author: Attila Nagy <attilanagy@google.com>
date: Fri Feb 25 03:38:07 EST 2011

Remove a second check for invalid ptr in vp8_get_compressed_data

Check is done first when function si entered.

Change-Id: Ief0d0cbd4860aaf492b78728f8d22f24029b1174

--- a/vp8/encoder/onyx_if.c
+++ b/vp8/encoder/onyx_if.c
@@ -5227,23 +5227,6 @@
     if (cpi->compressor_speed == 2)
     {
         vp8_check_gf_quality(cpi);
-    }
-
-    if (!cpi)
-    {
-#if HAVE_ARMV7
-#if CONFIG_RUNTIME_CPU_DETECT
-        if (cm->rtcd.flags & HAS_NEON)
-#endif
-        {
-            vp8_pop_neon(store_reg);
-        }
-#endif
-        return 0;
-    }
-
-    if (cpi->compressor_speed == 2)
-    {
         vpx_usec_timer_start(&tsctimer);
         vpx_usec_timer_start(&ticktimer);
     }