avcodec/hevc: Fix order of operations in hls_decode_neighbour()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -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])
|
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;
|
lc->boundary_flags |= BOUNDARY_UPPER_SLICE;
|
||||||
} else {
|
} else {
|
||||||
if (!ctb_addr_in_slice > 0)
|
if (ctb_addr_in_slice <= 0)
|
||||||
lc->boundary_flags |= BOUNDARY_LEFT_SLICE;
|
lc->boundary_flags |= BOUNDARY_LEFT_SLICE;
|
||||||
if (ctb_addr_in_slice < s->sps->ctb_width)
|
if (ctb_addr_in_slice < s->sps->ctb_width)
|
||||||
lc->boundary_flags |= BOUNDARY_UPPER_SLICE;
|
lc->boundary_flags |= BOUNDARY_UPPER_SLICE;
|
||||||
|
Reference in New Issue
Block a user