[FFmpeg-cvslog] Use FFALIGN.

Reimar Döffinger git at videolan.org
Sat Nov 5 23:54:34 CET 2011


ffmpeg | branch: master | Reimar Döffinger <Reimar.Doeffinger at gmx.de> | Sat Nov  5 21:11:37 2011 +0100| [7f6c828f2e6b4704f38ae31969bfff6af1afdc28] | committer: Reimar Döffinger

Use FFALIGN.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger at gmx.de>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7f6c828f2e6b4704f38ae31969bfff6af1afdc28
---

 libavcodec/nuv.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/nuv.c b/libavcodec/nuv.c
index 2a60fe4..d8b9dbf 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) {



More information about the ffmpeg-cvslog mailing list