1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avfilter/framepack: use FF_CEIL_RSHIFT()

This commit is contained in:
Clément Bœsch 2014-12-30 14:25:41 +01:00
parent e405a8a73e
commit 39e18b1f40

View File

@ -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) {