aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/nuv.c
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2011-11-05 21:11:37 +0100
committerAnton Khirnov <anton@khirnov.net>2011-11-26 08:38:14 +0100
commit785baa738a7c6b5bfc6ade2a7c6fade3056eeb26 (patch)
treef886516352ca4fd89fd4ac3f1c94e1877877af92 /libavcodec/nuv.c
parent1484b5dec5e05c11a2e8619d8838b3d276984cb7 (diff)
downloadffmpeg-785baa738a7c6b5bfc6ade2a7c6fade3056eeb26.tar.gz
nuv: use FFALIGN.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavcodec/nuv.c')
-rw-r--r--libavcodec/nuv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/nuv.c b/libavcodec/nuv.c
index 73aec433f3..7bace2ec40 100644
--- a/libavcodec/nuv.c
+++ b/libavcodec/nuv.c
@@ -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) {
NuvContext *c = avctx->priv_data;
- width = (width + 1) & ~1;
- height = (height + 1) & ~1;
+ width = FFALIGN(width, 2);
+ height = FFALIGN(height, 2);
if (quality >= 0)
get_quant_quality(c, quality);
if (width != c->width || height != c->height) {