[FFmpeg-devel] [PATCH] Make postprocess.c's replaceTable fall into .rodata

Diego 'Flameeyes' Pettenò flameeyes
Sat Jan 5 13:58:37 CET 2008


The attached patch changes the way replaceTable is defined, so that
instead of being an array of pointers (which falls into
.data.local.rel.ro with PIC), it's a table of character array. This time
the size is not a power of two, but I think the compiler would probably
bad it by itself.

I'm afraid this time it actually does use more memory than the old
version, but it's probably negligible on 64-bit arches.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: libpostproc-rodata-replaceTable.patch
Type: text/x-patch
Size: 2518 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080105/6cf6e1fc/attachment.bin>
-------------- next part --------------


-- 
Diego "Flameeyes" Petten?
http://farragut.flameeyes.is-a-geek.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080105/6cf6e1fc/attachment.pgp>



More information about the ffmpeg-devel mailing list