2007-07-16 20:39:13 +00:00
|
|
|
Index: motion-3.2.8/motion.c
|
2007-04-02 10:27:11 +00:00
|
|
|
===================================================================
|
2007-07-16 20:39:13 +00:00
|
|
|
--- motion-3.2.8/motion.c (revision 174)
|
|
|
|
+++ motion-3.2.8/motion.c (working copy)
|
2007-04-02 10:27:11 +00:00
|
|
|
@@ -474,8 +474,8 @@
|
|
|
|
cnt->imgs.shotstamp = mymalloc(sizeof(int));
|
|
|
|
|
|
|
|
/* Allocate a buffer for temp. usage in some places */
|
|
|
|
- /* Only despeckle for now... */
|
|
|
|
- cnt->imgs.common_buffer = mymalloc(3 * cnt->imgs.width);
|
|
|
|
+ /* Only despeckle & bayer2rgb24() for now... */
|
|
|
|
+ cnt->imgs.common_buffer = mymalloc(3 * cnt->imgs.width * cnt->imgs.height);
|
|
|
|
|
|
|
|
/* Now is a good time to init rotation data. Since vid_start has been
|
|
|
|
* called, we know that we have imgs.width and imgs.height. When capturing
|