Skip to content
Snippets Groups Projects
Commit 55019715 authored by Anton Khirnov's avatar Anton Khirnov
Browse files

hevc_filter: drop more redundant checks

The if() around those loops ensures this condition is always false.
parent 65b8b6c4
No related branches found
No related tags found
No related merge requests found
...@@ -623,8 +623,6 @@ void ff_hevc_deblocking_boundary_strengths(HEVCContext *s, int x0, int y0, ...@@ -623,8 +623,6 @@ void ff_hevc_deblocking_boundary_strengths(HEVCContext *s, int x0, int y0,
(slice_or_tiles_up_boundary & 2) && (slice_or_tiles_up_boundary & 2) &&
(y0 % (1 << s->sps->log2_ctb_size)) == 0) (y0 % (1 << s->sps->log2_ctb_size)) == 0)
bs = 0; bs = 0;
if (y0 == 0)
bs = 0;
if (bs) if (bs)
s->horizontal_bs[((x0 + i) + y0 * s->bs_width) >> 2] = bs; s->horizontal_bs[((x0 + i) + y0 * s->bs_width) >> 2] = bs;
} }
...@@ -684,8 +682,6 @@ void ff_hevc_deblocking_boundary_strengths(HEVCContext *s, int x0, int y0, ...@@ -684,8 +682,6 @@ void ff_hevc_deblocking_boundary_strengths(HEVCContext *s, int x0, int y0,
(slice_or_tiles_left_boundary & 2) && (slice_or_tiles_left_boundary & 2) &&
(x0 % (1 << s->sps->log2_ctb_size)) == 0) (x0 % (1 << s->sps->log2_ctb_size)) == 0)
bs = 0; bs = 0;
if (x0 == 0)
bs = 0;
if (bs) if (bs)
s->vertical_bs[(x0 >> 3) + ((y0 + i) >> 2) * s->bs_width] = bs; s->vertical_bs[(x0 >> 3) + ((y0 + i) >> 2) * s->bs_width] = bs;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment