mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-13 18:40:03 +01:00
avfilter/framepack: use FF_CEIL_RSHIFT()
This commit is contained in:
@@ -144,8 +144,8 @@ static void horizontal_frame_pack(FramepackContext *s,
|
|||||||
uint8_t *dstp = dst->data[plane];
|
uint8_t *dstp = dst->data[plane];
|
||||||
|
|
||||||
if (plane == 1 || plane == 2) {
|
if (plane == 1 || plane == 2) {
|
||||||
length = -(-(dst->width / 2) >> s->pix_desc->log2_chroma_w);
|
length = FF_CEIL_RSHIFT(dst->width / 2, s->pix_desc->log2_chroma_w);
|
||||||
lines = -(-(dst->height) >> s->pix_desc->log2_chroma_h);
|
lines = FF_CEIL_RSHIFT(dst->height, s->pix_desc->log2_chroma_h);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (interleaved) {
|
if (interleaved) {
|
||||||
|
|||||||
Reference in New Issue
Block a user