fourcc.c: make fourcc lists fit in .rodata
commit0346a35cee7d880f16ad24ca983a0885d85b363d
authorDiego Elio Pettenò <flameeyes@flameeyes.eu>
Tue, 4 Sep 2012 14:25:09 +0000 (4 07:25 -0700)
committerRafaël Carré <funman@videolan.org>
Wed, 5 Sep 2012 00:43:26 +0000 (5 02:43 +0200)
treef7cac5bde49d13bd77556ea2214e06399f2ac838
parentfbe2c9bcf9424fa6cf510257f92c739e2f1d43ad
fourcc.c: make fourcc lists fit in .rodata

By changing the description from a pointer to an array of characters,
the long tables don't need to be relocated. Unfortunately this adds
30KB of padding zeroes for empty strings.

Since Lookup() returns a custom entry_t object, with a possibly
modified description, this is implemented by creating a new structure
type. With more work it would be possible to simply filling all the
entries with final description and remove the extra matching and entry
manipulation.

Signed-off-by: Diego Elio Pettenò <flameeyes@flameeyes.eu>
Signed-off-by: Rafaël Carré <funman@videolan.org>
src/misc/fourcc.c