Browse Source

Revert "v210enc: use FFALIGN()"

FFALIGN doesn't work with non-powers-of-2.

This reverts commit 7ad1b612c8.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
tags/n0.11
Paul B Mahol Anton Khirnov 14 years ago
parent
commit
d016d3074c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/v210enc.c

+ 1
- 1
libavcodec/v210enc.c View File

@@ -53,7 +53,7 @@ static int encode_frame(AVCodecContext *avctx, unsigned char *buf,
int buf_size, void *data)
{
const AVFrame *pic = data;
int aligned_width = FFALIGN(avctx->width, 48);
int aligned_width = ((avctx->width + 47) / 48) * 48;
int stride = aligned_width * 8 / 3;
int h, w;
const uint16_t *y = (const uint16_t*)pic->data[0];


Loading…
Cancel
Save