On Thu, Jan 21, 2016 at 6:00 PM, Vittorio Giovara
<[email protected]> wrote:
> ---
>  libavfilter/vf_gradfun.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/libavfilter/vf_gradfun.c b/libavfilter/vf_gradfun.c
> index f7c4372..ce79329 100644
> --- a/libavfilter/vf_gradfun.c
> +++ b/libavfilter/vf_gradfun.c
> @@ -172,8 +172,8 @@ static int config_input(AVFilterLink *inlink)
>      if (!s->buf)
>          return AVERROR(ENOMEM);
>
> -    s->chroma_w = -((-inlink->w) >> hsub);
> -    s->chroma_h = -((-inlink->h) >> vsub);
> +    s->chroma_w = AV_CEIL_RSHIFT(inlink->w, hsub);
> +    s->chroma_h = AV_CEIL_RSHIFT(inlink->h, vsub);
>      s->chroma_r = av_clip(((((s->radius >> hsub) + (s->radius >> vsub)) / 2 
> ) + 1) & ~1, 4, 32);
>
>      return 0;
> --
> 2.6.4
>

if people prefer i could squash the 3 filter patches and go for
"lavfi: Use AV_CEIL_RSHIFT where needed"
-- 
Vittorio
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to