Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Bœsch <ubitux@gmail.com>2013-05-09 19:59:38 +0400
committerClément Bœsch <ubitux@gmail.com>2013-05-10 19:20:06 +0400
commit50e66726a237e07f6557eaca1da2e9eb18ee7fda (patch)
treeeb080502558818b6e623309776e254d4be88beed /libavfilter/vf_extractplanes.c
parentd751a2526f9be0e8aa72cb2ebf9b8686c8888e89 (diff)
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_extractplanes.c')
-rw-r--r--libavfilter/vf_extractplanes.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/vf_extractplanes.c b/libavfilter/vf_extractplanes.c
index 229e3d5ffa..9844ed578c 100644
--- a/libavfilter/vf_extractplanes.c
+++ b/libavfilter/vf_extractplanes.c
@@ -171,8 +171,8 @@ static int config_output(AVFilterLink *outlink)
const int output = outlink->srcpad - ctx->output_pads;
if (e->map[output] == 1 || e->map[output] == 2) {
- outlink->h = inlink->h >> desc->log2_chroma_h;
- outlink->w = inlink->w >> desc->log2_chroma_w;
+ outlink->h = FF_CEIL_RSHIFT(inlink->h, desc->log2_chroma_h);
+ outlink->w = FF_CEIL_RSHIFT(inlink->w, desc->log2_chroma_w);
}
return 0;