From 3c7a06c3cce396deecad5a925258f6cf10bcc7ee Mon Sep 17 00:00:00 2001 From: hkuang Date: Thu, 11 Dec 2014 12:27:25 -0800 Subject: [PATCH] Remove unnecessary dqcoeff memset. 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 | 3 --- 1 file changed, 3 deletions(-) diff --git a/vp9/decoder/vp9_decodeframe.c b/vp9/decoder/vp9_decodeframe.c index 2c5fbacb9..58df87d0c 100644 --- a/vp9/decoder/vp9_decodeframe.c +++ b/vp9/decoder/vp9_decodeframe.c @@ -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);