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>
Sun, 14 May 2017 10:20:15 +0000 (12:20 +0200)
commite66548345c6de7ef22da323a93b71d7782b3164d
tree9bd004489038298bae04edcbb59278631001864d
parent1485562f6edee18a44446a8cbf2dca7ec16b69ce
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