Commit 785baa73 authored by Reimar Döffinger's avatar Reimar Döffinger Committed by Anton Khirnov

nuv: use FFALIGN.

Signed-off-by: 's avatarAnton Khirnov <anton@khirnov.net>
parent 1484b5de
...@@ -107,8 +107,8 @@ static void get_quant_quality(NuvContext *c, int quality) { ...@@ -107,8 +107,8 @@ static void get_quant_quality(NuvContext *c, int quality) {
static int codec_reinit(AVCodecContext *avctx, int width, int height, int quality) { static int codec_reinit(AVCodecContext *avctx, int width, int height, int quality) {
NuvContext *c = avctx->priv_data; NuvContext *c = avctx->priv_data;
width = (width + 1) & ~1; width = FFALIGN(width, 2);
height = (height + 1) & ~1; height = FFALIGN(height, 2);
if (quality >= 0) if (quality >= 0)
get_quant_quality(c, quality); get_quant_quality(c, quality);
if (width != c->width || height != c->height) { if (width != c->width || height != c->height) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment