diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2006-06-19 23:00:06 +0200 |
---|---|---|
committer | Hans Verkuil <hverkuil@xs4all.nl> | 2006-06-19 23:00:06 +0200 |
commit | 0f9c47f021dff0b36a1d13014e814fd5de03dc84 (patch) | |
tree | 3ef939e39723a72d49a6293b05d434326f8f3923 /linux/drivers/media/video/cx2341x.c | |
parent | af650bccdb8afcbd266fd7521df4b15bab26124e (diff) | |
download | mediapointer-dvb-s2-0f9c47f021dff0b36a1d13014e814fd5de03dc84.tar.gz mediapointer-dvb-s2-0f9c47f021dff0b36a1d13014e814fd5de03dc84.tar.bz2 |
Disable bitrate_mode when encoding mpeg-1.
From: Hans Verkuil <hverkuil@xs4all.nl>
MPEG-1 always uses CBR, so make the BITRATE_MODE control inactive.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'linux/drivers/media/video/cx2341x.c')
-rw-r--r-- | linux/drivers/media/video/cx2341x.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/linux/drivers/media/video/cx2341x.c b/linux/drivers/media/video/cx2341x.c index 1381fdc63..33e955f7c 100644 --- a/linux/drivers/media/video/cx2341x.c +++ b/linux/drivers/media/video/cx2341x.c @@ -410,6 +410,12 @@ int cx2341x_ctrl_query(struct cx2341x_mpeg_params *params, struct v4l2_queryctrl qctrl->flags |= V4L2_CTRL_FLAG_READ_ONLY; return err; + case V4L2_CID_MPEG_VIDEO_BITRATE_MODE: + err = v4l2_ctrl_query_fill_std(qctrl); + if (err == 0 && params->video_encoding == V4L2_MPEG_VIDEO_ENCODING_MPEG_1) + qctrl->flags |= V4L2_CTRL_FLAG_INACTIVE; + return err; + case V4L2_CID_MPEG_VIDEO_BITRATE_PEAK: err = v4l2_ctrl_query_fill_std(qctrl); if (err == 0 && params->video_bitrate_mode == V4L2_MPEG_VIDEO_BITRATE_MODE_CBR) |