]> granicus.if.org Git - libvpx/commitdiff
Remove unnecessary dqcoeff memset.
authorhkuang <hkuang@google.com>
Thu, 11 Dec 2014 20:27:25 +0000 (12:27 -0800)
committerhkuang <hkuang@google.com>
Thu, 11 Dec 2014 20:27:25 +0000 (12:27 -0800)
dqcoeff is set to be 0 on initialization. And set back to 0 after being
used everytime.

Change-Id: I32b8e149bba40a8d707849f737a8e49a691f319c

vp9/decoder/vp9_decodeframe.c

index 2c5fbacb9b15de3c7b19289970d0429aacdac23f..58df87d0cb060bc67b7aeff3ede1cc43509ab4fb 100644 (file)
@@ -952,7 +952,6 @@ static const uint8_t *decode_tiles(VP9Decoder *pbi,
                           &tile_data->bit_reader, pbi->decrypt_cb,
                           pbi->decrypt_state);
       init_macroblockd(cm, &tile_data->xd);
-      vp9_zero(tile_data->xd.dqcoeff);
     }
   }
 
@@ -1149,7 +1148,6 @@ static const uint8_t *decode_tiles_mt(VP9Decoder *pbi,
                           &tile_data->bit_reader, pbi->decrypt_cb,
                           pbi->decrypt_state);
       init_macroblockd(cm, &tile_data->xd);
-      vp9_zero(tile_data->xd.dqcoeff);
 
       worker->had_error = 0;
       if (i == num_workers - 1 || n == tile_cols - 1) {
@@ -1559,7 +1557,6 @@ void vp9_decode_frame(VP9Decoder *pbi,
 
   *cm->fc = cm->frame_contexts[cm->frame_context_idx];
   vp9_zero(cm->counts);
-  vp9_zero(xd->dqcoeff);
 
   xd->corrupted = 0;
   new_fb->corrupted = read_compressed_header(pbi, data, first_partition_size);