[media] V4L: mem2mem: fix alignment in mem2mem-testdev
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Fri, 27 Apr 2012 07:16:46 +0000 (04:16 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 15 May 2012 16:38:33 +0000 (13:38 -0300)
Fix a trivial alignment calculation issue.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/mem2mem_testdev.c

index ee3efbd83bdb1bc2390d6a684f3b84dae8d3930f..d2dec585e61b8d3c8bd2940f220bcaaf21c668a9 100644 (file)
@@ -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)