diff options
author | hans@rhel5-devel.localdomain <hans@rhel5-devel.localdomain> | 2009-07-09 14:12:00 +0200 |
---|---|---|
committer | hans@rhel5-devel.localdomain <hans@rhel5-devel.localdomain> | 2009-07-09 14:12:00 +0200 |
commit | 63e4f194ca8471bdaf2c9442dece27410fb07cc9 (patch) | |
tree | 768e7e89e78000bc294ca16eeae643c46e9db42b /v4l2-apps/libv4l/libv4lconvert/libv4lconvert.c | |
parent | 4d1b85f28a9bdc2a6b5c8193caae3698b5010dd3 (diff) | |
download | mediapointer-dvb-s2-63e4f194ca8471bdaf2c9442dece27410fb07cc9.tar.gz mediapointer-dvb-s2-63e4f194ca8471bdaf2c9442dece27410fb07cc9.tar.bz2 |
libv4l: Improved pac207 decompression code
From: Hans de Goede <hdegoede@redhat.com>
Improved pac207 decompression code to also support higher compression
modes of the pac207, which enables us to use higher framerates.
Many many thanks to Bertrik Sikken for figuring the decompression out!
Priority: normal
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'v4l2-apps/libv4l/libv4lconvert/libv4lconvert.c')
-rw-r--r-- | v4l2-apps/libv4l/libv4lconvert/libv4lconvert.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/v4l2-apps/libv4l/libv4lconvert/libv4lconvert.c b/v4l2-apps/libv4l/libv4lconvert/libv4lconvert.c index 4422ce084..6ff676abb 100644 --- a/v4l2-apps/libv4l/libv4lconvert/libv4lconvert.c +++ b/v4l2-apps/libv4l/libv4lconvert/libv4lconvert.c @@ -745,7 +745,12 @@ static int v4lconvert_convert_pixfmt(struct v4lconvert_data *data, tmpfmt.fmt.pix.pixelformat = V4L2_PIX_FMT_SBGGR8; break; case V4L2_PIX_FMT_PAC207: - v4lconvert_decode_pac207(src, tmpbuf, width, height); + if (v4lconvert_decode_pac207(data, src, src_size, tmpbuf, + width, height)) { + /* Corrupt frame, better get another one */ + errno = EAGAIN; + return -1; + } tmpfmt.fmt.pix.pixelformat = V4L2_PIX_FMT_SBGGR8; break; case V4L2_PIX_FMT_MR97310A: |