diff options
Diffstat (limited to 'drivers/media/video/cx88/cx88-video.c')
-rw-r--r-- | drivers/media/video/cx88/cx88-video.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/video/cx88/cx88-video.c b/drivers/media/video/cx88/cx88-video.c index 8e414f7aa76e..0a3849c710f8 100644 --- a/drivers/media/video/cx88/cx88-video.c +++ b/drivers/media/video/cx88/cx88-video.c | |||
@@ -561,8 +561,8 @@ buffer_setup(struct videobuf_queue *q, unsigned int *count, unsigned int *size) | |||
561 | *size = fh->fmt->depth*fh->width*fh->height >> 3; | 561 | *size = fh->fmt->depth*fh->width*fh->height >> 3; |
562 | if (0 == *count) | 562 | if (0 == *count) |
563 | *count = 32; | 563 | *count = 32; |
564 | while (*size * *count > vid_limit * 1024 * 1024) | 564 | if (*size * *count > vid_limit * 1024 * 1024) |
565 | (*count)--; | 565 | *count = (vid_limit * 1024 * 1024) / *size; |
566 | return 0; | 566 | return 0; |
567 | } | 567 | } |
568 | 568 | ||