avformat/matroskaenc: actually enforce the stream limit
authorJames Almer <jamrial@gmail.com>
Mon, 27 Nov 2017 16:39:42 +0000 (13:39 -0300)
committerJames Almer <jamrial@gmail.com>
Mon, 27 Nov 2017 16:39:55 +0000 (13:39 -0300)
commit9d464dc3fccb53f1e7c83e3453084c1a7fb90503
tree28f1884d4001d5c904e8c1daae77d3a4d5cb8f14
parent2d1594a8d6a754a426cb53184dccf9cf8c8a94b0
avformat/matroskaenc: actually enforce the stream limit

Prevents out of array accesses. Adressess ticket #6873

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
libavformat/matroskaenc.c