diff svq1dec.c @ 9686:bc32976d6d9d libavcodec

Move ALIGN macro to libavutil/common.h and use it in various places
author conrad
date Fri, 22 May 2009 21:32:13 +0000
parents 5921cf626a4a
children 38cfe222e1a4
line wrap: on
line diff
--- a/svq1dec.c	Fri May 22 18:39:00 2009 +0000
+++ b/svq1dec.c	Fri May 22 21:32:13 2009 +0000
@@ -696,13 +696,13 @@
   for (i=0; i < 3; i++) {
     int linesize;
     if (i == 0) {
-      width  = (s->width+15)&~15;
-      height = (s->height+15)&~15;
+      width  = FFALIGN(s->width, 16);
+      height = FFALIGN(s->height, 16);
       linesize= s->linesize;
     } else {
       if(s->flags&CODEC_FLAG_GRAY) break;
-      width  = (s->width/4+15)&~15;
-      height = (s->height/4+15)&~15;
+      width  = FFALIGN(s->width/4, 16);
+      height = FFALIGN(s->height/4, 16);
       linesize= s->uvlinesize;
     }