avformat/webmdashenc: Validate the 'streams' adaptation sets parameter
authorDerek Buitenhuis <derek.buitenhuis@gmail.com>
Thu, 20 Apr 2017 15:17:44 +0000 (16:17 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 17 May 2017 18:35:19 +0000 (20:35 +0200)
commitb1d5c2de2bbf31cb4aa0a88798000cafd318d75b
tree1c438aad3c003929728676f4d9dbb5cec224bb3f
parent351dc1f33a65e221172c22d5569de2df2997fe24
avformat/webmdashenc: Validate the 'streams' adaptation sets parameter

It should not be a value larger than the number of streams we have,
or it will cause invalid reads and/or SIGSEGV.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit ec07efa70012845e8642df67a4a773f510a17088)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/webmdashenc.c