At 3:41 PM +0200 3/6/09, Hervé wrote: >hello, I'm not developper but it could not be a buffer concern? (it's >just an idea)
Following this hint, I doubled the buffer sizes allocated by y4mstabilizer and it now works! I have no idea how much overkill this solution is... for all I know it may have been an off-by-one error. But this patch (below) got it working for me. As it turns out, this tool doesn't do what I wanted it to anyway. Thanks for all your help everyone. I've learned a good deal about all these tools, and I thought I knew them pretty well already! And @Mark Heath... I had seen your tools before, and I will have another look at them in future. You have some really interesting code there, and with a bit of cleaning up and packaging it could be a great supplement to mjpegtools. ...Richard. diff -U3 -r mjpegtools-1.9.0/lavtools/y4mstabilizer.c mjpegtools-1.9.0-patch/lavtools/y4mstabilizer.c --- mjpegtools-1.9.0/lavtools/y4mstabilizer.c 2007-04-03 01:43:33.000000000 +1000 +++ mjpegtools-1.9.0-patch/lavtools/y4mstabilizer.c 2009-06-04 10:12:06.000000000 +1000 @@ -1,5 +1,5 @@ /* - * $Id: y4mstabilizer.c,v 1.9 2007/04/01 18:06:06 sms00 Exp $ + * $Id: y4mstabilizer.c,v 1.10 2009/01/24 18:06:45 sms00 Exp $ * * written by J. Macropol <j...@wx.gd-ais.com> * Framework and shifting code adapted from y4mshift by Steve Schultz. @@ -350,7 +350,7 @@ static void alloc_yuv (u_char **yuv, int h, int w) { -int len = h * w; +int len = h * w *2; int uvlen = Stab.nosuper ? (len / (SS_H * SS_V)) : len; yuv[0] = malloc(len); if (yuv[0] == NULL) ------------------------------------------------------------------------------ OpenSolaris 2009.06 is a cutting edge operating system for enterprises looking to deploy the next generation of Solaris that includes the latest innovations from Sun and the OpenSource community. Download a copy and enjoy capabilities such as Networking, Storage and Virtualization. Go to: http://p.sf.net/sfu/opensolaris-get _______________________________________________ Mjpeg-users mailing list Mjpeg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mjpeg-users