summaryrefslogtreecommitdiff
path: root/libavcodec/hevc.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-05-12 00:52:03 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-05-12 00:52:03 +0200
commit3ecc063322388f03435f7fd47f8e85bea73fd5c2 (patch)
treee9f869d7f394268c0da12a35c52605e2d368ec73 /libavcodec/hevc.c
parent62a1e0035a1438883510f47e8d9af0df5d3e9b53 (diff)
avcodec/hevc: Fix order of operations in hls_decode_neighbour()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/hevc.c')
-rw-r--r--libavcodec/hevc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/hevc.c b/libavcodec/hevc.c
index f95034941a..554e60fecb 100644
--- a/libavcodec/hevc.c
+++ b/libavcodec/hevc.c
@@ -2256,7 +2256,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->sps->ctb_width])
lc->boundary_flags |= BOUNDARY_UPPER_SLICE;
} else {
- if (!ctb_addr_in_slice > 0)
+ if (ctb_addr_in_slice <= 0)
lc->boundary_flags |= BOUNDARY_LEFT_SLICE;
if (ctb_addr_in_slice < s->sps->ctb_width)
lc->boundary_flags |= BOUNDARY_UPPER_SLICE;