e43a1c044288b53e4ffca81940c909baff66b610
[openwrt/svn-archive/archive.git] / multimedia / motion / patches / 003-sn9c102-common-buffer.patch
1 Index: motion-3.2.7/motion.c
2 ===================================================================
3 --- motion-3.2.7.orig/motion.c 2007-06-11 08:27:35.000000000 +0100
4 +++ motion-3.2.7/motion.c 2007-06-11 08:28:30.000000000 +0100
5 @@ -474,8 +474,8 @@
6 cnt->imgs.shotstamp = mymalloc(sizeof(int));
7
8 /* Allocate a buffer for temp. usage in some places */
9 - /* Only despeckle for now... */
10 - cnt->imgs.common_buffer = mymalloc(3 * cnt->imgs.width);
11 + /* Only despeckle & bayer2rgb24() for now... */
12 + cnt->imgs.common_buffer = mymalloc(3 * cnt->imgs.width * cnt->imgs.height);
13
14 /* Now is a good time to init rotation data. Since vid_start has been
15 * called, we know that we have imgs.width and imgs.height. When capturing