aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/oggdec.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-05-25 19:22:19 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-05-28 11:18:53 +0200
commit4fbcb69707409ecb7a9d314f254e67d1a6e732dc (patch)
tree0280196f4254118e8cc30465dc0738cb1b4b6f44 /libavformat/oggdec.c
parentc1638bfae1e704f7fd9541892b61258b4f45f91a (diff)
downloadffmpeg-4fbcb69707409ecb7a9d314f254e67d1a6e732dc.tar.gz
avformat/hlsenc: Avoid duplicating strings when parsing
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: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavformat/oggdec.c')
0 files changed, 0 insertions, 0 deletions