diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2011-11-05 21:11:37 +0100 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2011-11-05 23:25:20 +0100 |
commit | 7f6c828f2e6b4704f38ae31969bfff6af1afdc28 (patch) | |
tree | 19fee530560839122d46d3031ec01bf8c66ac2ea /libavcodec/nuv.c | |
parent | 371e1654434f5934ca1665df22387024a82e6e27 (diff) | |
download | ffmpeg-7f6c828f2e6b4704f38ae31969bfff6af1afdc28.tar.gz |
Use FFALIGN.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Diffstat (limited to 'libavcodec/nuv.c')
-rw-r--r-- | libavcodec/nuv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/nuv.c b/libavcodec/nuv.c index 2a60fe47fc..d8b9dbf5f7 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) { |