ffmpeg | branch: master | Michael Niedermayer <[email protected]> | Tue May 12 
00:52:03 2015 +0200| [3ecc063322388f03435f7fd47f8e85bea73fd5c2] | committer: 
Michael Niedermayer

avcodec/hevc: Fix order of operations in hls_decode_neighbour()

Signed-off-by: Michael Niedermayer <[email protected]>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3ecc063322388f03435f7fd47f8e85bea73fd5c2
---

 libavcodec/hevc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/hevc.c b/libavcodec/hevc.c
index f950349..554e60f 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;

_______________________________________________
ffmpeg-cvslog mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

Reply via email to