]> granicus.if.org Git - libvpx/commitdiff
Removing useless calls to setup_{pre, dst}_planes.
authorDmitry Kovalev <dkovalev@google.com>
Thu, 22 Aug 2013 21:39:05 +0000 (14:39 -0700)
committerDmitry Kovalev <dkovalev@google.com>
Thu, 22 Aug 2013 21:39:05 +0000 (14:39 -0700)
Comment is wrong, we don't initialize any xd pointers. We only initialize
xd->planes[i]->dst and xd->planes[i]->pre[], which are actually initialized
for every block during the decoding.

Change-Id: If152ea872ebef1f83ca70712fa6f8df1b6855f56

vp9/decoder/vp9_decodframe.c

index 70e85f95a124f88098030e49f19ea9ddc86b130c..f65ef04e8792d3d2b217fe1cccd81c9c22c1baa6 100644 (file)
@@ -969,10 +969,6 @@ int vp9_decode_frame(VP9D_COMP *pbi, const uint8_t **p_data_end) {
 
   vp9_zero(pc->counts);
 
-  // Initialize xd pointers. Any reference should do for xd->pre, so use 0.
-  setup_pre_planes(xd, 0, &pc->yv12_fb[pc->active_ref_idx[0]], 0, 0, NULL);
-  setup_dst_planes(xd, new_fb, 0, 0);
-
   new_fb->corrupted |= read_compressed_header(pbi, data, first_partition_size);
 
   setup_block_dptrs(xd, pc->subsampling_x, pc->subsampling_y);