aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/dfa.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-05-18 02:48:49 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-05-23 06:05:16 +0200
commit325c901430781ad2d915828389a8ed5f1ad849bc (patch)
tree15ab5f3d4c3db70a9729ca7c6a6cd05e958af053 /libavformat/dfa.c
parent06fdc823371d295a6f29993e5c2e9ed7df3610d2 (diff)
downloadffmpeg-325c901430781ad2d915828389a8ed5f1ad849bc.tar.gz
avformat/webmdashenc: Avoid allocation for parsing a number
In order to parse a number from a string, the WebM DASH manifest muxer would duplicate (via heap-allocation) the part of the string that contains the number, then read the number via atoi() and then free the duplicate again. This has been replaced by simply using strtoll() (which in contrast to atoi() has defined behaviour when the number is not representable). Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavformat/dfa.c')
0 files changed, 0 insertions, 0 deletions