summaryrefslogtreecommitdiff
path: root/linux/Documentation
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2007-08-23 22:48:41 +0200
committerHans Verkuil <hverkuil@xs4all.nl>2007-08-23 22:48:41 +0200
commit73ceaceacfbbd76bdf9c39db4b5762fc68b82834 (patch)
treed520363e1d3e093cdd8add5934b103d9fd9aae3d /linux/Documentation
parent7ac202b371d6244773f1d66180b4d3080de8c042 (diff)
downloadmediapointer-dvb-s2-73ceaceacfbbd76bdf9c39db4b5762fc68b82834.tar.gz
mediapointer-dvb-s2-73ceaceacfbbd76bdf9c39db4b5762fc68b82834.tar.bz2
ivtv: fix VIDIOC_G_ENC_INDEX flag handling
From: Hans Verkuil <hverkuil@xs4all.nl> Due to a documentation bug (the type mask is 3 bits long, not 2) the wrong frame types were filled in: the B and P frame types were swapped. This bug also hid a second bug: when a capture is stopped a last entry is written into the pgm index buffer with internal type 0, denoting the end of the program. This entry wasn't ignored, instead it was accidentally returned to the caller as a P frame. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'linux/Documentation')
-rw-r--r--linux/Documentation/video4linux/cx2341x/fw-encoder-api.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/linux/Documentation/video4linux/cx2341x/fw-encoder-api.txt b/linux/Documentation/video4linux/cx2341x/fw-encoder-api.txt
index 5dd3109a8..5a27af2ee 100644
--- a/linux/Documentation/video4linux/cx2341x/fw-encoder-api.txt
+++ b/linux/Documentation/video4linux/cx2341x/fw-encoder-api.txt
@@ -407,8 +407,10 @@ Description
u32 length; // Length of this frame
u32 offset_low; // Offset in the file of the
u32 offset_high; // start of this frame
- u32 mask1; // Bits 0-1 are the type mask:
+ u32 mask1; // Bits 0-2 are the type mask:
// 1=I, 2=P, 4=B
+ // 0=End of Program Index, other fields
+ // are invalid.
u32 pts; // The PTS of the frame
u32 mask2; // Bit 0 is bit 32 of the pts.
};