• Andreas Rheinhardt's avatar
    h264_mp4toannexb: Simplify extradata insertion · aa486b4b
    Andreas Rheinhardt authored
    Up until now, h264_mp4toannexb stored the offset of the first SPS and
    the first PPS in the (output) extradata in its context and used these
    two numbers together with the size of the extradata and the pointer to
    the extradata to determine what to insert when inserting extradata. This
    led to some very long lines like "s->pps_offset != -1 ? s->pps_offset :
    ctx->par_out->extradata_size - s->sps_offset". Therefore now pointers to
    SPS and PPS are stored along with their respective sizes, so that e.g.
    the above line can be changed to "s->sps_size".
    Signed-off-by: 's avatarAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
    Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
    aa486b4b
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...
libavresample 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...