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

[media] solo6x10: disable the 'priv' abuse

Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 15513c12
...@@ -860,8 +860,16 @@ static int solo_enc_set_fmt_cap(struct file *file, void *priv, ...@@ -860,8 +860,16 @@ static int solo_enc_set_fmt_cap(struct file *file, void *priv,
/* This does not change the encoder at all */ /* This does not change the encoder at all */
solo_enc->fmt = pix->pixelformat; solo_enc->fmt = pix->pixelformat;
/*
* More information is needed about these 'extended' types. As far
* as I can tell these are basically additional video streams with
* different MPEG encoding attributes that can run in parallel with
* the main stream. If so, then this should be implemented as a
* second video node. Abusing priv like this is certainly not the
* right approach.
if (pix->priv) if (pix->priv)
solo_enc->type = SOLO_ENC_TYPE_EXT; solo_enc->type = SOLO_ENC_TYPE_EXT;
*/
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册