Skip to content

Commit 8da7f09

Browse files
Hans Verkuilmchehab
authored andcommitted
media: videodev2.h: V4L2_DV_BT_BLANKING_HEIGHT should check 'interlaced'
If it is a progressive (non-interlaced) format, then ignore the interlaced timing values. Signed-off-by: Hans Verkuil <[email protected]> Fixes: 7f68127 ([media] videodev2.h: defines to calculate blanking and frame sizes) Signed-off-by: Mauro Carvalho Chehab <[email protected]>
1 parent 4b6d66a commit 8da7f09

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/uapi/linux/videodev2.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1601,7 +1601,8 @@ struct v4l2_bt_timings {
16011601
((bt)->width + V4L2_DV_BT_BLANKING_WIDTH(bt))
16021602
#define V4L2_DV_BT_BLANKING_HEIGHT(bt) \
16031603
((bt)->vfrontporch + (bt)->vsync + (bt)->vbackporch + \
1604-
(bt)->il_vfrontporch + (bt)->il_vsync + (bt)->il_vbackporch)
1604+
((bt)->interlaced ? \
1605+
((bt)->il_vfrontporch + (bt)->il_vsync + (bt)->il_vbackporch) : 0))
16051606
#define V4L2_DV_BT_FRAME_HEIGHT(bt) \
16061607
((bt)->height + V4L2_DV_BT_BLANKING_HEIGHT(bt))
16071608

0 commit comments

Comments
 (0)