diff options
Diffstat (limited to 'drivers/media/video/cx23885/cx23885-video.c')
-rw-r--r-- | drivers/media/video/cx23885/cx23885-video.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/video/cx23885/cx23885-video.c b/drivers/media/video/cx23885/cx23885-video.c index 2d3ac8b83dc3..543b854f6a62 100644 --- a/drivers/media/video/cx23885/cx23885-video.c +++ b/drivers/media/video/cx23885/cx23885-video.c | |||
@@ -514,8 +514,8 @@ static int buffer_setup(struct videobuf_queue *q, unsigned int *count, | |||
514 | *size = fh->fmt->depth*fh->width*fh->height >> 3; | 514 | *size = fh->fmt->depth*fh->width*fh->height >> 3; |
515 | if (0 == *count) | 515 | if (0 == *count) |
516 | *count = 32; | 516 | *count = 32; |
517 | while (*size * *count > vid_limit * 1024 * 1024) | 517 | if (*size * *count > vid_limit * 1024 * 1024) |
518 | (*count)--; | 518 | *count = (vid_limit * 1024 * 1024) / *size; |
519 | return 0; | 519 | return 0; |
520 | } | 520 | } |
521 | 521 | ||