• Andreas Rheinhardt's avatar
    avcodec/h264_levels, h265_profile_level: Avoid relocations · 0172decc
    Andreas Rheinhardt authored
    H.264 and H.265 levels' names are usually of the form "x" or "x.y"
    with x and y being single digits; the one exception are the H.264 1b
    levels. All of those levels' names fit into a char[4] and it is likely
    that this future levels will do so, too.
    
    Therefore this commit changes the H26(4|5)LevelDescriptor structures
    to use such a char [4] instead of a pointer to a const char. This makes
    the structures smaller (when sizeof(char*) == 8) and avoids relocations,
    thereby moving the corresponding arrays from .data.rel.ro into .rodata.
    Signed-off-by: 's avatarAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
    0172decc
Name
Last commit
Last update
compat Loading commit data...
doc Loading commit data...
ffbuild Loading commit data...
fftools Loading commit data...
libavcodec Loading commit data...
libavdevice Loading commit data...
libavfilter Loading commit data...
libavformat Loading commit data...
libavutil Loading commit data...
libpostproc Loading commit data...
libswresample Loading commit data...
libswscale Loading commit data...
presets Loading commit data...
tests Loading commit data...
tools Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
.travis.yml Loading commit data...
CONTRIBUTING.md Loading commit data...
COPYING.GPLv2 Loading commit data...
COPYING.GPLv3 Loading commit data...
COPYING.LGPLv2.1 Loading commit data...
COPYING.LGPLv3 Loading commit data...
CREDITS Loading commit data...
Changelog Loading commit data...
INSTALL.md Loading commit data...
LICENSE.md Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
RELEASE Loading commit data...
configure Loading commit data...