[FFmpeg-devel] [PATCH] Make mov_mdhd_language_map fall into .rodata

Diego 'Flameeyes' Pettenò flameeyes
Fri May 2 17:46:36 CEST 2008


As per summary, it simply replaces the array of strings with an array of
arrays. Not only it avoids .data.rel, but it should also reduce the
size, as before it was sized:

N = 149 (entries in table)
M = 41 (NULL entries)

sizeof(char*)*N + (N-M)*4

which translated to 1028 bytes on 32-bit systems and 1624 bytes on
64-bit systems, while the new table is N * 4 = 596 bytes.

The codesize is the same on amd64 at least.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: libavformat-isom-language-map-rodata.patch
Type: text/x-patch
Size: 3362 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080502/cb360ede/attachment.bin>
-------------- next part --------------


-- 
Diego "Flameeyes" Petten?
http://blog.flameeyes.eu/

-------------- 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/20080502/cb360ede/attachment.pgp>



More information about the ffmpeg-devel mailing list