diff mbox

[v4,1/3] v4l: Add a new ERROR flag for DQBUF after recoverable streaming errors

Message ID 1272438323-4790-2-git-send-email-p.osciak@samsung.com (mailing list archive)
State Accepted
Headers show

Commit Message

Pawel Osciak April 28, 2010, 7:05 a.m. UTC
None
diff mbox

Patch

diff --git a/include/linux/videodev2.h b/include/linux/videodev2.h
index 15d80f7..7b6e047 100644
--- a/include/linux/videodev2.h
+++ b/include/linux/videodev2.h
@@ -551,6 +551,8 @@  struct v4l2_buffer {
 #define V4L2_BUF_FLAG_KEYFRAME	0x0008	/* Image is a keyframe (I-frame) */
 #define V4L2_BUF_FLAG_PFRAME	0x0010	/* Image is a P-frame */
 #define V4L2_BUF_FLAG_BFRAME	0x0020	/* Image is a B-frame */
+/* Buffer is ready, but the data contained within is corrupted. */
+#define V4L2_BUF_FLAG_ERROR	0x0040
 #define V4L2_BUF_FLAG_TIMECODE	0x0100	/* timecode field is valid */
 #define V4L2_BUF_FLAG_INPUT     0x0200  /* input field is valid */