diff options
author | Krzysztof HaĆasa <khalasa@piap.pl> | 2013-10-07 07:33:55 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2013-10-17 04:50:00 -0400 |
commit | cfd736adf68a2efcc069f3bd2b5ba545fd5d020c (patch) | |
tree | 4c03ee8ef804ea39613ee3864507e7f754075839 /drivers/staging | |
parent | 336d30ed131bd0b135577ef5c263fe40d2e5d8d3 (diff) |
[media] SOLO6x10: Fix video frame type (I/P/B)
Mask v4l2_buf.flags to indicate only I/P/B frames.
Signed-off-by: Krzysztof Ha?asa <khalasa@piap.pl>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/media/solo6x10/solo6x10-v4l2-enc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/media/solo6x10/solo6x10-v4l2-enc.c b/drivers/staging/media/solo6x10/solo6x10-v4l2-enc.c index 51200a3e4bd7..d582c5b84c14 100644 --- a/drivers/staging/media/solo6x10/solo6x10-v4l2-enc.c +++ b/drivers/staging/media/solo6x10/solo6x10-v4l2-enc.c | |||
@@ -506,6 +506,7 @@ static int solo_fill_mpeg(struct solo_enc_dev *solo_enc, | |||
506 | return -EIO; | 506 | return -EIO; |
507 | 507 | ||
508 | /* If this is a key frame, add extra header */ | 508 | /* If this is a key frame, add extra header */ |
509 | vb->v4l2_buf.flags &= ~(V4L2_BUF_FLAG_KEYFRAME | V4L2_BUF_FLAG_PFRAME | V4L2_BUF_FLAG_BFRAME); | ||
509 | if (!vop_type(vh)) { | 510 | if (!vop_type(vh)) { |
510 | skip = solo_enc->vop_len; | 511 | skip = solo_enc->vop_len; |
511 | vb->v4l2_buf.flags |= V4L2_BUF_FLAG_KEYFRAME; | 512 | vb->v4l2_buf.flags |= V4L2_BUF_FLAG_KEYFRAME; |