projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
65b8b6c
)
hevc_filter: drop more redundant checks
author
Anton Khirnov
<anton@khirnov.net>
Sun, 27 Jul 2014 17:10:04 +0000
(17:10 +0000)
committer
Anton Khirnov
<anton@khirnov.net>
Sat, 9 Aug 2014 16:13:37 +0000
(16:13 +0000)
The if() around those loops ensures this condition is always false.
libavcodec/hevc_filter.c
patch
|
blob
|
history
diff --git
a/libavcodec/hevc_filter.c
b/libavcodec/hevc_filter.c
index 14be963ac6a0ef27c56cae9148a3af29b3e18606..88bea40fa3fa58dbc48d8660f8b567c94328beec 100644
(file)
--- 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;
}