提交 c501abcf 编写于 作者: H Hans Verkuil 提交者: Mauro Carvalho Chehab

[media] vivid: use TPG_MAX_PLANES instead of hardcoding plane-arrays

Two arrays of size 'max number of planes' have a hardcoded size instead
of using TPG_MAX_PLANES. Fix that, since TPG_MAX_PLANES will be increased
later on.
Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
上级 a94e7d6e
...@@ -84,7 +84,7 @@ struct vivid_fmt { ...@@ -84,7 +84,7 @@ struct vivid_fmt {
bool can_do_overlay; bool can_do_overlay;
u32 alpha_mask; u32 alpha_mask;
u8 planes; u8 planes;
u32 data_offset[2]; u32 data_offset[TPG_MAX_PLANES];
}; };
extern struct vivid_fmt vivid_formats[]; extern struct vivid_fmt vivid_formats[];
...@@ -332,7 +332,7 @@ struct vivid_dev { ...@@ -332,7 +332,7 @@ struct vivid_dev {
u32 ycbcr_enc_out; u32 ycbcr_enc_out;
u32 quantization_out; u32 quantization_out;
u32 service_set_out; u32 service_set_out;
u32 bytesperline_out[2]; u32 bytesperline_out[TPG_MAX_PLANES];
unsigned tv_field_out; unsigned tv_field_out;
unsigned tv_audio_output; unsigned tv_audio_output;
bool vbi_out_have_wss; bool vbi_out_have_wss;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
新手
引导
客服 返回
顶部