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>
Thu, 20 Apr 2017 16:07:32 +0000 (18:07 +0200)
commitec07efa70012845e8642df67a4a773f510a17088
tree0f33a5275f943def6139db91c854a968280e9a26
parentcbd3a68f3e1c2d1679370301eb5e1a32a2df64fe
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>
libavformat/webmdashenc.c