BUG: Segmentation Fault on Size Changes, when Mask Image doesn't fit
Having a mask file of i.e. 640*480 and changing the catpture size to any different size causes the according thread to segv when trying to load the image.
Test case
config:
width 512
height 384
mask file "Image file of a pgm mask of 640*480"
Environment
Motion version: |
3.2.3 |
ffmpeg version: |
0.4.9pre1 |
Shared libraries: |
ffmpeg |
Server OS: |
linux |
--
AxelAmthor - 08 Oct 2005
Follow up
Naturally mask file must be same size as the image size. That is how Motion is designed.
Maybe Motion should report it more elegantly but it should not work with it.
Hmm. Forgot to add a nicer error message to 3.2.4. Will keep this open for 3.2.5.
Not a very important bug I think. There is no plan to make Motion scale mask files.
--
KennethLavrsen - 18 Dec 2005
Fix record
It turned out to be a small syntax error (one % too many) in get_pgm - in a line that prints the error message that caused the seg fault.
The code was all there to report the mask size failure and to continue without the mask.
Fixed SVN 46 / motion-daily 20060223
--
KennethLavrsen - 22 Feb 2006
In 3.2.6
--
KennethLavrsen - 20 Oct 2006