• Diego Elio Pettenò's avatar
    fourcc.c: make fourcc lists fit in .rodata · 0346a35c
    Diego Elio Pettenò authored
    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>
    0346a35c
fourcc.c 49.8 KB