summaryrefslogtreecommitdiff
path: root/libavcodec/hevc_filter.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2014-07-27 17:10:04 +0000
committerAnton Khirnov <anton@khirnov.net>2014-08-09 16:13:37 +0000
commit55019715785790836f60870180e1764b06e6591c (patch)
tree3864070335eb5c6ac415770f47c6190a38e61494 /libavcodec/hevc_filter.c
parent65b8b6c476454d201348737527a1d9471f689278 (diff)
hevc_filter: drop more redundant checks
The if() around those loops ensures this condition is always false.
Diffstat (limited to 'libavcodec/hevc_filter.c')
-rw-r--r--libavcodec/hevc_filter.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/libavcodec/hevc_filter.c b/libavcodec/hevc_filter.c
index 14be963ac6..88bea40fa3 100644
--- a/libavcodec/hevc_filter.c
+++ b/libavcodec/hevc_filter.c
@@ -623,8 +623,6 @@ void ff_hevc_deblocking_boundary_strengths(HEVCContext *s, int x0, int y0,
(slice_or_tiles_up_boundary & 2) &&
(y0 % (1 << s->sps->log2_ctb_size)) == 0)
bs = 0;
- if (y0 == 0)
- bs = 0;
if (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,
(slice_or_tiles_left_boundary & 2) &&
(x0 % (1 << s->sps->log2_ctb_size)) == 0)
bs = 0;
- if (x0 == 0)
- bs = 0;
if (bs)
s->vertical_bs[(x0 >> 3) + ((y0 + i) >> 2) * s->bs_width] = bs;
}