]> git.sesse.net Git - ffmpeg/commit
avformat/webmdashenc: Be more strict when parsing stream indices
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Mon, 18 May 2020 01:17:50 +0000 (03:17 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sat, 23 May 2020 04:09:09 +0000 (06:09 +0200)
commit1030993db212667d64cd0234c2ef1fccd30f0c1f
tree4b0ee4d5a16b5b1d3f1653c5a1ed040bec035406
parent325c901430781ad2d915828389a8ed5f1ad849bc
avformat/webmdashenc: Be more strict when parsing stream indices

The syntax of the adaptation_sets string by which the user determines
the mapping of AVStreams to adaptation sets is
"id=x,streams=a,b,c id=y,streams=d,e" (means: the streams with the
indices a, b and c belong to the adaptation set with id x). Yet there
was no check for whether these indices were actual numbers and if there
is a number whether it really extends to the next ',', ' ' or to the
end of the string or not. This commit adds a check for this.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavformat/webmdashenc.c