Skip to content
Snippets Groups Projects
Commit 0346a35c authored by Diego Elio Pettenò's avatar Diego Elio Pettenò Committed by Rafaël Carré
Browse files

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: default avatarDiego Elio Pettenò <flameeyes@flameeyes.eu>
Signed-off-by: default avatarRafaël Carré <funman@videolan.org>
parent fbe2c9bc
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment