summaryrefslogtreecommitdiff
path: root/libavfilter/vf_framepack.c
diff options
context:
space:
mode:
authorClément Bœsch <clement@stupeflix.com>2014-12-30 14:25:41 +0100
committerClément Bœsch <clement@stupeflix.com>2014-12-30 14:25:41 +0100
commit39e18b1f406376b824b258889fd96ff77fa4ac9a (patch)
tree2a8d73239d3f11a0c351a296cae29799135f2fe3 /libavfilter/vf_framepack.c
parente405a8a73eeb1aefaa633891f60a801038526935 (diff)
avfilter/framepack: use FF_CEIL_RSHIFT()
Diffstat (limited to 'libavfilter/vf_framepack.c')
-rw-r--r--libavfilter/vf_framepack.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/vf_framepack.c b/libavfilter/vf_framepack.c
index 8a7d4e8f32..508767315e 100644
--- a/libavfilter/vf_framepack.c
+++ b/libavfilter/vf_framepack.c
@@ -144,8 +144,8 @@ static void horizontal_frame_pack(FramepackContext *s,
uint8_t *dstp = dst->data[plane];
if (plane == 1 || plane == 2) {
- length = -(-(dst->width / 2) >> s->pix_desc->log2_chroma_w);
- lines = -(-(dst->height) >> s->pix_desc->log2_chroma_h);
+ length = FF_CEIL_RSHIFT(dst->width / 2, s->pix_desc->log2_chroma_w);
+ lines = FF_CEIL_RSHIFT(dst->height, s->pix_desc->log2_chroma_h);
}
if (interleaved) {