From 3ecc063322388f03435f7fd47f8e85bea73fd5c2 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Tue, 12 May 2015 00:52:03 +0200 Subject: [PATCH] avcodec/hevc: Fix order of operations in hls_decode_neighbour() Signed-off-by: Michael Niedermayer --- libavcodec/hevc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;