[Ffmpeg-devel] PATCH: swscale-example

Marc Hoffman mmh
Wed Apr 25 13:36:30 CEST 2007


Michael Niedermayer writes:
 > Hi
 > 
 > On Tue, Apr 24, 2007 at 10:23:35PM -0400, Marc Hoffman wrote:
 > > Michael Niedermayer writes:
 > >  > Hi
 > >  > 
 > >  > On Tue, Apr 24, 2007 at 10:04:07PM -0400, Marc Hoffman wrote:
 > >  > Content-Description: message body text
 > >  > > 
 > >  > > request to move large array allocation from stack to heap. This is
 > >  > > important for machines with out Address Translation like BlackFin.
 > >  > > 
 > >  > > comment: allocate large memory blocks in heap.
 > >  > 
 > >  > ok but this can be done simpler
 > > 
 > > curious.
 > 
 > uint8_t *rgb_data= malloc (W*H*4);
 > and similarly for data
 > 
 > avoids the 7 lines of code later
 > 

I like this better as well.

Also the build system seem'd to be broken for me as my
system doesn't know how to make a -lm file. Is this build patch
acceptable?

comment: swscale-example.c remove large automatics from stack
comment: Makefile explict build rule

-------------- next part --------------
A non-text attachment was scrubbed...
Name: swscale-example.patch
Type: text/x-patch
Size: 1059 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070425/62152be2/attachment.bin>



More information about the ffmpeg-devel mailing list