[Mjpeg-users] png2yuv memory leak and fix

2009-05-15 Thread j
A simple fix, the png library needs to free memory after every read of a
png image.

--- lavtools/png2yuv.c.orig Fri May 15 03:23:58 2009
+++ lavtools/png2yuv.c  Fri May 15 03:24:44 2009
@@ -407,6 +407,7 @@ int decode_png(const char *pngname, int process, param
 return 2;
 }

+  png_destroy_read_struct(&png_ptr, &info_ptr, &end_info);
   fclose(pngfile);

   return 1;


Otherwise it craps out after a few hundred (or fewer, depending on image
complexity) images.


--John




--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
___
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users


[Mjpeg-users] mplex fail......

2009-05-15 Thread Martin Leicht
Hi,

with my duron 1300 system, mplex 1.9.0 do not work. Im using kubuntu 9.04.

The output on a xterm is:

inter...@internet-desktop:/media/usb160/sich_11_05/Videos$ mplex -f 8 maus.mp2 
maus.mp2 -o film.mpg
   INFO: [mplex] mplex version 1.9.0 (2.2.7 $Date: 2006/02/01 22:23:01 $)
   INFO: [mplex] File maus.mp2 looks like an MPEG Audio stream.
   INFO: [mplex] File maus.mp2 looks like an MPEG Audio stream.
   INFO: [mplex] Found 2 audio streams and 0 video streams
   INFO: [mplex] Selecting dvdauthor DVD output profile
   INFO: [mplex] Multiplexing video program stream!
   INFO: [mplex] Scanning for header info: Audio stream c0 (maus.mp2)
Illegal instruction

I need i little help, thanks

Martin


--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
___
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users


Re: [Mjpeg-users] png2yuv memory leak and fix

2009-05-15 Thread Steven M. Schultz

On Thu, 14 May 2009 j...@bitminer.ca wrote:

> A simple fix, the png library needs to free memory after every read of a
> png image.
> 
> +  png_destroy_read_struct(&png_ptr, &info_ptr, &end_info);
>fclose(pngfile);
> 
>return 1;

Fix checked in.  Interestingly enough the memory _was_ being freed 
everywhere
else (in all the error cases) - just not on the normal/success 
instance. 

Cheers,
Steven Schultz


--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
___
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users