[FFmpeg-cvslog] hevc: Simplify logical check

Vittorio Giovara git at videolan.org
Mon Oct 5 11:29:26 CEST 2015


ffmpeg | branch: master | Vittorio Giovara <vittorio.giovara at gmail.com> | Fri Oct  2 12:43:48 2015 +0200| [b8b13acd70a1c1b6c044f967d78cb82f1a53887b] | committer: Vittorio Giovara

hevc: Simplify logical check

The intended meaning is "if this block is the first block in a slice then
its left boundary is a slice boundary". Silence a logical-not-parentheses
warning from gcc.

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

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

diff --git a/libavcodec/hevc.c b/libavcodec/hevc.c
index a802e1e..07b7de1 100644
--- a/libavcodec/hevc.c
+++ b/libavcodec/hevc.c
@@ -2242,7 +2242,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->ps.sps->ctb_width])
             lc->boundary_flags |= BOUNDARY_UPPER_SLICE;
     } else {
-        if (!ctb_addr_in_slice > 0)
+        if (!ctb_addr_in_slice)
             lc->boundary_flags |= BOUNDARY_LEFT_SLICE;
         if (ctb_addr_in_slice < s->ps.sps->ctb_width)
             lc->boundary_flags |= BOUNDARY_UPPER_SLICE;



More information about the ffmpeg-cvslog mailing list