[media] SOLO6x10: Fix video frame type (I/P/B)
authorKrzysztof Hałasa <khalasa@piap.pl>
Mon, 7 Oct 2013 11:33:55 +0000 (08:33 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Thu, 17 Oct 2013 08:50:00 +0000 (05:50 -0300)
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>
drivers/staging/media/solo6x10/solo6x10-v4l2-enc.c

index 51200a3e4bd7ef749ebe7d0e808da7975253e271..d582c5b84c14cc2c8821d9a982ba47746187cf76 100644 (file)
@@ -506,6 +506,7 @@ static int solo_fill_mpeg(struct solo_enc_dev *solo_enc,
                return -EIO;
 
        /* If this is a key frame, add extra header */
+       vb->v4l2_buf.flags &= ~(V4L2_BUF_FLAG_KEYFRAME | V4L2_BUF_FLAG_PFRAME | V4L2_BUF_FLAG_BFRAME);
        if (!vop_type(vh)) {
                skip = solo_enc->vop_len;
                vb->v4l2_buf.flags |= V4L2_BUF_FLAG_KEYFRAME;