Browse Source

avcodec/cfhdenc: add padding to each decomposition

tags/n4.4
Paul B Mahol 5 years ago
parent
commit
fbfa78508b
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      libavcodec/cfhdenc.c

+ 3
- 3
libavcodec/cfhdenc.c View File

@@ -270,10 +270,10 @@ static av_cold int cfhd_encode_init(AVCodecContext *avctx)
int width = i ? avctx->width >> s->chroma_h_shift : avctx->width;
int height = i ? FFALIGN(avctx->height >> s->chroma_v_shift, 8) :
FFALIGN(avctx->height >> s->chroma_v_shift, 8);
ptrdiff_t stride = FFALIGN(width / 8, 8) * 8;
ptrdiff_t stride = (FFALIGN(width / 8, 8) + 64) * 8;

w8 = FFALIGN(width / 8, 8);
h8 = height / 8;
w8 = FFALIGN(width / 8, 8) + 64;
h8 = FFALIGN(height, 8) / 8;
w4 = w8 * 2;
h4 = h8 * 2;
w2 = w4 * 2;


Loading…
Cancel
Save