[packages] multimedia/motion: update to 3.2.9
[openwrt/svn-archive/archive.git] / multimedia / motion / patches / 003-sn9c102-common-buffer.patch
1 Index: motion-3.2.8/motion.c
2 ===================================================================
3 --- motion-3.2.8/motion.c (revision 174)
4 +++ motion-3.2.8/motion.c (working copy)
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