summaryrefslogtreecommitdiff
path: root/libavfilter/vf_noise.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavfilter/vf_noise.c')
-rw-r--r--libavfilter/vf_noise.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_noise.c b/libavfilter/vf_noise.c
index c965cbf0d9..da418fec9e 100644
--- a/libavfilter/vf_noise.c
+++ b/libavfilter/vf_noise.c
@@ -193,7 +193,7 @@ static int config_input(AVFilterLink *inlink)
if ((ret = av_image_fill_linesizes(n->linesize, inlink->format, inlink->w)) < 0)
return ret;
- n->height[1] = n->height[2] = inlink->h >> desc->log2_chroma_h;
+ n->height[1] = n->height[2] = FF_CEIL_RSHIFT(inlink->h, desc->log2_chroma_h);
n->height[0] = n->height[3] = inlink->h;
return 0;