Skip to content

Commit

Permalink
Revert "v210enc: use FFALIGN()"
Browse files Browse the repository at this point in the history
FFALIGN doesn't work with non-powers-of-2.

This reverts commit 7ad1b61.

Signed-off-by: Paul B Mahol <[email protected]>
Signed-off-by: Anton Khirnov <[email protected]>
  • Loading branch information
richardpl authored and elenril committed Feb 6, 2012
1 parent 32f3c54 commit d016d30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libavcodec/v210enc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit d016d30

Please sign in to comment.