[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>
This commit is contained in:
committed by
Mauro Carvalho Chehab
parent
25a27d9100
commit
035aa1475d
@ -208,7 +208,7 @@ struct vb2_buffer {
|
||||
*/
|
||||
struct vb2_ops {
|
||||
int (*queue_setup)(struct vb2_queue *q, unsigned int *num_buffers,
|
||||
unsigned int *num_planes, unsigned long sizes[],
|
||||
unsigned int *num_planes, unsigned int sizes[],
|
||||
void *alloc_ctxs[]);
|
||||
|
||||
void (*wait_prepare)(struct vb2_queue *q);
|
||||
@ -273,7 +273,7 @@ struct vb2_queue {
|
||||
wait_queue_head_t done_wq;
|
||||
|
||||
void *alloc_ctx[VIDEO_MAX_PLANES];
|
||||
unsigned long plane_sizes[VIDEO_MAX_PLANES];
|
||||
unsigned int plane_sizes[VIDEO_MAX_PLANES];
|
||||
|
||||
unsigned int streaming:1;
|
||||
|
||||
|
Reference in New Issue
Block a user