diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-05-12 00:52:03 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-05-12 00:52:03 +0200 |
commit | 3ecc063322388f03435f7fd47f8e85bea73fd5c2 (patch) | |
tree | e9f869d7f394268c0da12a35c52605e2d368ec73 /libavcodec/hevc.c | |
parent | 62a1e0035a1438883510f47e8d9af0df5d3e9b53 (diff) | |
download | ffmpeg-3ecc063322388f03435f7fd47f8e85bea73fd5c2.tar.gz |
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.c | 2 |
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; |