Skip to content
Snippets Groups Projects
Commit 39e18b1f authored by Clément Bœsch's avatar Clément Bœsch
Browse files

avfilter/framepack: use FF_CEIL_RSHIFT()

parent e405a8a7
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment