• Andreas Rheinhardt's avatar
    avformat/hlsenc: Avoid duplicating strings when parsing · 4fbcb697
    Andreas Rheinhardt authored
    Up until now, the HLS muxer uses av_strtok() to split an input string
    controlling parameters of the VariantStreams and then duplicates
    parts of this string containing parameters such as the language or the
    name of the VariantStream. But these parts are proper zero-terminated
    strings of their own that are never modified lateron, so one can simply
    use the substring as-is without creating a copy. This commit implements
    this.
    
    The same also happened for the string controlling the closed caption
    groups.
    
    Furthermore, add const to indicate that the pointers to these substrings
    are not used to modify them and also to indicate that these strings are
    not allocated on their own.
    Signed-off-by: 's avatarAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
    4fbcb697
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...