aboutsummaryrefslogtreecommitdiffstats
path: root/include/media/videobuf2-core.h
diff options
context:
space:
mode:
authorMarek Szyprowski <m.szyprowski@samsung.com>2011-08-24 05:43:36 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-09-06 14:04:27 -0400
commit035aa1475d6e4afdf97dccf6c6d6059063398b57 (patch)
treebef507d9f3c21446f0fb26b657bfdb5f81ca7c02 /include/media/videobuf2-core.h
parent25a27d91006091e28532053c95fa36b70b79d3ad (diff)
[media] media: vb2: change plane sizes array to unsigned int[]
Plane sizes array was declared as unsigned long[], while unsigned int is more than enough for storing size of the video buffer. This patch reduces the size of the array by definiting it as unsigned int[]. Reported-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> CC: Pawel Osciak <pawel@osciak.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include/media/videobuf2-core.h')
-rw-r--r--include/media/videobuf2-core.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/media/videobuf2-core.h b/include/media/videobuf2-core.h
index 984f2bae2578..5287e901e17b 100644
--- a/include/media/videobuf2-core.h
+++ b/include/media/videobuf2-core.h
@@ -208,7 +208,7 @@ struct vb2_buffer {
208 */ 208 */
209struct vb2_ops { 209struct vb2_ops {
210 int (*queue_setup)(struct vb2_queue *q, unsigned int *num_buffers, 210 int (*queue_setup)(struct vb2_queue *q, unsigned int *num_buffers,
211 unsigned int *num_planes, unsigned long sizes[], 211 unsigned int *num_planes, unsigned int sizes[],
212 void *alloc_ctxs[]); 212 void *alloc_ctxs[]);
213 213
214 void (*wait_prepare)(struct vb2_queue *q); 214 void (*wait_prepare)(struct vb2_queue *q);
@@ -273,7 +273,7 @@ struct vb2_queue {
273 wait_queue_head_t done_wq; 273 wait_queue_head_t done_wq;
274 274
275 void *alloc_ctx[VIDEO_MAX_PLANES]; 275 void *alloc_ctx[VIDEO_MAX_PLANES];
276 unsigned long plane_sizes[VIDEO_MAX_PLANES]; 276 unsigned int plane_sizes[VIDEO_MAX_PLANES];
277 277
278 unsigned int streaming:1; 278 unsigned int streaming:1;
279 279