Skip to content

Commit dce1730

Browse files
author
Dave Stevenson
committed
V4L2: Fix incorrect pool sizing
Signed-off-by: Dave Stevenson <[email protected]>
1 parent a57d4fd commit dce1730

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

drivers/media/platform/bcm2835/bcm2835-camera.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1382,8 +1382,10 @@ static int set_camera_parameters(struct vchiq_mmal_instance *instance,
13821382
.max_stills_h = MAX_HEIGHT,
13831383
.stills_yuv422 = 1,
13841384
.one_shot_stills = 1,
1385-
.max_preview_video_w = max_video_width,
1386-
.max_preview_video_h = max_video_height,
1385+
.max_preview_video_w = (max_video_width > 1920) ?
1386+
max_video_width : 1920,
1387+
.max_preview_video_h = (max_video_height > 1088) ?
1388+
max_video_height : 1088,
13871389
.num_preview_video_frames = 3,
13881390
.stills_capture_circular_buffer_height = 0,
13891391
.fast_preview_resume = 0,

0 commit comments

Comments
 (0)