aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/vf_hue.c
diff options
context:
space:
mode:
authorClément Bœsch <ubitux@gmail.com>2013-05-09 17:59:38 +0200
committerClément Bœsch <ubitux@gmail.com>2013-05-10 17:20:06 +0200
commit50e66726a237e07f6557eaca1da2e9eb18ee7fda (patch)
treeeb080502558818b6e623309776e254d4be88beed /libavfilter/vf_hue.c
parentd751a2526f9be0e8aa72cb2ebf9b8686c8888e89 (diff)
downloadffmpeg-50e66726a237e07f6557eaca1da2e9eb18ee7fda.tar.gz
lavfi: use ceil right shift for chroma width/height.
This should fix several issues with odd dimensions inputs. lut, vflip, pad and crop video filters also need to be checked for such issues. It's possible sws is also affected.
Diffstat (limited to 'libavfilter/vf_hue.c')
-rw-r--r--libavfilter/vf_hue.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavfilter/vf_hue.c b/libavfilter/vf_hue.c
index c62cba8101..cba39d0002 100644
--- a/libavfilter/vf_hue.c
+++ b/libavfilter/vf_hue.c
@@ -305,7 +305,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *inpic)
process_chrominance(outpic->data[1], outpic->data[2], outpic->linesize[1],
inpic->data[1], inpic->data[2], inpic->linesize[1],
- inlink->w >> hue->hsub, inlink->h >> hue->vsub,
+ FF_CEIL_RSHIFT(inlink->w, hue->hsub),
+ FF_CEIL_RSHIFT(inlink->h, hue->vsub),
hue->hue_cos, hue->hue_sin);
if (!direct)