summaryrefslogtreecommitdiff
path: root/v4l2-apps/libv4l/libv4lconvert/libv4lconvert-priv.h
diff options
context:
space:
mode:
authorhans@rhel5-devel.localdomain <hans@rhel5-devel.localdomain>2009-03-11 13:08:51 +0100
committerhans@rhel5-devel.localdomain <hans@rhel5-devel.localdomain>2009-03-11 13:08:51 +0100
commite4def927f3ed43a4763652a0911f69180e803721 (patch)
treedbf5da435a1caa4afa33acc2f5a7e702a480427a /v4l2-apps/libv4l/libv4lconvert/libv4lconvert-priv.h
parent212f306971b622a70b8b3a20c61df11af814635a (diff)
downloadmediapointer-dvb-s2-e4def927f3ed43a4763652a0911f69180e803721.tar.gz
mediapointer-dvb-s2-e4def927f3ed43a4763652a0911f69180e803721.tar.bz2
libv4l: dont try to allocate large buffers on the stack
From: Hans de Goede <hdegoede@redhat.com> When conversion requires multiple passes don't alloc the needed temporary buffer on the stack, as some apps (ekiga) use so much stack themselves this causes us to run out of stack space Priority: normal Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'v4l2-apps/libv4l/libv4lconvert/libv4lconvert-priv.h')
-rw-r--r--v4l2-apps/libv4l/libv4lconvert/libv4lconvert-priv.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/v4l2-apps/libv4l/libv4lconvert/libv4lconvert-priv.h b/v4l2-apps/libv4l/libv4lconvert/libv4lconvert-priv.h
index 99ffdec20..8473ba68f 100644
--- a/v4l2-apps/libv4l/libv4lconvert/libv4lconvert-priv.h
+++ b/v4l2-apps/libv4l/libv4lconvert/libv4lconvert-priv.h
@@ -86,6 +86,12 @@ struct v4lconvert_data {
struct jdec_private *jdec;
struct v4l2_frmsizeenum framesizes[V4LCONVERT_MAX_FRAMESIZES];
unsigned int no_framesizes;
+ int convert_buf_size;
+ int rotate_buf_size;
+ int convert_pixfmt_buf_size;
+ unsigned char *convert_buf;
+ unsigned char *rotate_buf;
+ unsigned char *convert_pixfmt_buf;
};
struct v4lconvert_flags_info {