]> granicus.if.org Git - libvpx/commitdiff
Removing unnecessary function calls.
authorDmitry Kovalev <dkovalev@google.com>
Sat, 28 Sep 2013 00:42:05 +0000 (17:42 -0700)
committerDmitry Kovalev <dkovalev@google.com>
Sat, 28 Sep 2013 00:42:05 +0000 (17:42 -0700)
Both vp9_init_mbmode_probs() and vp9_zero(cm->ref_frame_sign_bias) are
called inside vp9_setup_past_independence() which called in any case for
encoder/decoder after VP9_COMMON struct creation.

Change-Id: I3724d1a4fb8060101ff0290dd6a158f0b5c57bb4

vp9/common/vp9_alloccommon.c

index 864e27e988ae07216c33be5c2af0af3875ddb07c..5e526a83c1dac680322ff3edf883788ba4bf810d 100644 (file)
@@ -170,13 +170,8 @@ int vp9_alloc_frame_buffers(VP9_COMMON *cm, int width, int height) {
 void vp9_create_common(VP9_COMMON *cm) {
   vp9_machine_specific_config(cm);
 
-  vp9_init_mbmode_probs(cm);
-
   cm->tx_mode = ONLY_4X4;
   cm->comp_pred_mode = HYBRID_PREDICTION;
-
-  // Initialize reference frame sign bias structure to defaults
-  vpx_memset(cm->ref_frame_sign_bias, 0, sizeof(cm->ref_frame_sign_bias));
 }
 
 void vp9_remove_common(VP9_COMMON *cm) {