On Fri, 8 Aug 2014 18:20:59 +0000, Christophe Gisquet <[email protected]> wrote: > Signed-off-by: Michael Niedermayer <[email protected]> > --- > libavcodec/hevc_mvs.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/libavcodec/hevc_mvs.c b/libavcodec/hevc_mvs.c > index 2fe4dbb..f930f55 100644 > --- a/libavcodec/hevc_mvs.c > +++ b/libavcodec/hevc_mvs.c > @@ -271,8 +271,8 @@ static int temporal_luma_motion_vector(HEVCContext *s, > int x0, int y0, > (y0 >> s->sps->log2_ctb_size) == (y >> s->sps->log2_ctb_size) && > y < s->sps->height && > x < s->sps->width) { > - x = ((x >> 4) << 4); > - y = ((y >> 4) << 4); > + x &= -16; > + y &= -16;
Generally ok, but wouldn't ~15 be cleaner? -- Anton Khirnov _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
