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>
Sat, 13 May 2017 22:21:49 +0000 (00:21 +0200)
commit2ff9e21f7fcecbda36669b95ff8b30b5c34bd371
tree9c52184057a5afc2bc2eabeaafdbe970e230a959
parent9eb0d76e25c6a7c7ee18f8895fa73338697851f6
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