diff options
author | hans@rhel5-devel.localdomain <hans@rhel5-devel.localdomain> | 2009-03-11 13:37:45 +0100 |
---|---|---|
committer | hans@rhel5-devel.localdomain <hans@rhel5-devel.localdomain> | 2009-03-11 13:37:45 +0100 |
commit | 9fbe732f5787056459b1a7a390aa6d19e3b9fba7 (patch) | |
tree | e3a4a854465d7881b688bec3125b056ad03fbb44 /v4l2-apps | |
parent | 46d3cd3f371db25540ace549cac1bf52a1787cd5 (diff) | |
download | mediapointer-dvb-s2-9fbe732f5787056459b1a7a390aa6d19e3b9fba7.tar.gz mediapointer-dvb-s2-9fbe732f5787056459b1a7a390aa6d19e3b9fba7.tar.bz2 |
libv4l: Adjust mr97310a for gspca mr97310a driver changes
From: Theodore Kilgore <kilgota@auburn.edu>
This patch introduces an offset of 12 bytes before starting the
decompression of a frame. This needs to be done to compensate for a change
in the gspca driver, where headers are now preserved instead of
suppressed.
Priority: normal
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Theodore Kilgore <kilgota@auburn.edu>
Diffstat (limited to 'v4l2-apps')
-rw-r--r-- | v4l2-apps/libv4l/libv4lconvert/mr97310a.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/v4l2-apps/libv4l/libv4lconvert/mr97310a.c b/v4l2-apps/libv4l/libv4lconvert/mr97310a.c index b5dbea7e6..e6ce94b29 100644 --- a/v4l2-apps/libv4l/libv4lconvert/mr97310a.c +++ b/v4l2-apps/libv4l/libv4lconvert/mr97310a.c @@ -102,6 +102,9 @@ void v4lconvert_decode_mr97310a(const unsigned char *inp, unsigned char *outp, if (!decoder_initialized) init_mr97310a_decoder(); + /* remove the header */ + inp += 12; + bitpos = 0; /* main decoding loop */ |