From: Guennadi Liakhovetski Date: Fri, 27 Apr 2012 07:16:46 +0000 (-0300) Subject: [media] V4L: mem2mem: fix alignment in mem2mem-testdev X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=9ce3ce4d4a8dc80b2a2265650be54a86e854561e;p=openwrt%2Fstaging%2Fblogic.git [media] V4L: mem2mem: fix alignment in mem2mem-testdev Fix a trivial alignment calculation issue. Signed-off-by: Guennadi Liakhovetski Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/mem2mem_testdev.c b/drivers/media/video/mem2mem_testdev.c index ee3efbd83bdb..d2dec585e61b 100644 --- a/drivers/media/video/mem2mem_testdev.c +++ b/drivers/media/video/mem2mem_testdev.c @@ -40,7 +40,7 @@ MODULE_VERSION("0.1.1"); #define MIN_H 32 #define MAX_W 640 #define MAX_H 480 -#define DIM_ALIGN_MASK 0x08 /* 8-alignment for dimensions */ +#define DIM_ALIGN_MASK 7 /* 8-byte alignment for line length */ /* Flags that indicate a format can be used for capture/output */ #define MEM2MEM_CAPTURE (1 << 0)