mirror of https://git.ffmpeg.org/ffmpeg.git
v210enc: use FFALIGN()
Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
This commit is contained in:
parent
b5f50da593
commit
7ad1b612c8
|
@ -53,7 +53,7 @@ static int encode_frame(AVCodecContext *avctx, unsigned char *buf,
|
||||||
int buf_size, void *data)
|
int buf_size, void *data)
|
||||||
{
|
{
|
||||||
const AVFrame *pic = data;
|
const AVFrame *pic = data;
|
||||||
int aligned_width = ((avctx->width + 47) / 48) * 48;
|
int aligned_width = FFALIGN(avctx->width, 48);
|
||||||
int stride = aligned_width * 8 / 3;
|
int stride = aligned_width * 8 / 3;
|
||||||
int h, w;
|
int h, w;
|
||||||
const uint16_t *y = (const uint16_t*)pic->data[0];
|
const uint16_t *y = (const uint16_t*)pic->data[0];
|
||||||
|
|
Loading…
Reference in New Issue