Browse Source

avfilter/framepack: use FF_CEIL_RSHIFT()

tags/n2.6
Clément Bœsch 10 years ago
parent
commit
39e18b1f40
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      libavfilter/vf_framepack.c

+ 2
- 2
libavfilter/vf_framepack.c 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) {


Loading…
Cancel
Save