]> granicus.if.org Git - libvpx/commitdiff
Remove redundant init of segment_counts in vp8_encode_frame
authorAttila Nagy <attilanagy@google.com>
Fri, 17 Feb 2012 07:31:53 +0000 (09:31 +0200)
committerAttila Nagy <attilanagy@google.com>
Fri, 17 Feb 2012 07:51:24 +0000 (09:51 +0200)
segment_counts was zero init twice in the beginning of vp8_encode_frame.

Change-Id: Ibc29f6896dabd9aab1d0993f3941cf6876022e70

vp8/encoder/encodeframe.c

index 10f56078bac593d8871f1c9945abb204256f5114..5eba5c6aad90845d916dbecf25626bd6aabb3d00 100644 (file)
@@ -688,11 +688,9 @@ void vp8_encode_frame(VP8_COMP *cpi)
         xd->subpixel_predict16x16   = vp8_bilinear_predict16x16;
     }
 
-    // Reset frame count of inter 0,0 motion vector useage.
+    // Reset frame count of inter 0,0 motion vector usage.
     cpi->inter_zz_count = 0;
 
-    vpx_memset(segment_counts, 0, sizeof(segment_counts));
-
     cpi->prediction_error = 0;
     cpi->intra_error = 0;
     cpi->skip_true_count = 0;