cee379ccd2
git-svn-id: svn://svn.openwrt.org/openwrt/packages@8008 3c298f89-4303-0410-b956-a3cf2f4a3e73
16 lines
677 B
Diff
16 lines
677 B
Diff
Index: motion-3.2.8/motion.c
|
|
===================================================================
|
|
--- motion-3.2.8/motion.c (revision 174)
|
|
+++ motion-3.2.8/motion.c (working copy)
|
|
@@ -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
|