avcodec/hevc: Fix order of operations in hls_decode_neighbour()
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 11 May 2015 22:52:03 +0000 (00:52 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 11 May 2015 22:52:03 +0000 (00:52 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/hevc.c

index f950349..554e60f 100644 (file)
@@ -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;