aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2015-10-02 12:43:48 +0200
committerVittorio Giovara <vittorio.giovara@gmail.com>2015-10-04 13:08:58 +0200
commitb8b13acd70a1c1b6c044f967d78cb82f1a53887b (patch)
treebf9aa5a186f256bc94d482201001bb520863cc31 /libavcodec
parent10aa6f9db44e96977e7155fdc3e62619e0e00a15 (diff)
downloadffmpeg-b8b13acd70a1c1b6c044f967d78cb82f1a53887b.tar.gz
hevc: Simplify logical check
The intended meaning is "if this block is the first block in a slice then its left boundary is a slice boundary". Silence a logical-not-parentheses warning from gcc.
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/hevc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/hevc.c b/libavcodec/hevc.c
index a802e1e4ac..07b7de1208 100644
--- a/libavcodec/hevc.c
+++ b/libavcodec/hevc.c
@@ -2242,7 +2242,7 @@ static void hls_decode_neighbour(HEVCContext *s, int x_ctb, int y_ctb,
if (y_ctb > 0 && s->tab_slice_address[ctb_addr_rs] != s->tab_slice_address[ctb_addr_rs - s->ps.sps->ctb_width])
lc->boundary_flags |= BOUNDARY_UPPER_SLICE;
} else {
- if (!ctb_addr_in_slice > 0)
+ if (!ctb_addr_in_slice)
lc->boundary_flags |= BOUNDARY_LEFT_SLICE;
if (ctb_addr_in_slice < s->ps.sps->ctb_width)
lc->boundary_flags |= BOUNDARY_UPPER_SLICE;