matanbs / webm

Automatically exported from code.google.com/p/webm
0 stars 0 forks source link

Identical code in if - else statements (vp9_reconintra.c) #934

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
vp9_reconintra.c 718

const int r = frame_width - x0;
if (right_available && bs == 4) {
  vpx_memcpy(above_row, above_ref, r * sizeof(uint16_t));
  vpx_memset16(above_row + r, above_row[r - 1],
      x0 + 2 * bs - frame_width);
} else {
  vpx_memcpy(above_row, above_ref, r * sizeof(uint16_t));
  vpx_memset16(above_row + r, above_row[r - 1],
      x0 + 2 * bs - frame_width);
}
------------------------------
vp9_reconintra.c 846

const int r = frame_width - x0;
if (right_available && bs == 4) {
  vpx_memcpy(above_row, above_ref, r);
  vpx_memset(above_row + r, above_row[r - 1],
      x0 + 2 * bs - frame_width);
} else {
  vpx_memcpy(above_row, above_ref, r);
  vpx_memset(above_row + r, above_row[r - 1],
      x0 + 2 * bs - frame_width);
}

Original issue reported on code.google.com by 12maks...@gmail.com on 28 Jan 2015 at 8:36

GoogleCodeExporter commented 9 years ago
+deb,hangyu as the most recent people to touch those blocks, respectively.

Original comment by johannko...@google.com on 28 Jan 2015 at 7:28

GoogleCodeExporter commented 9 years ago
fixed here: https://gerrit.chromium.org/gerrit/#/c/73604/

Original comment by ya...@google.com on 5 Feb 2015 at 8:20