avformat/matroskadec: Check subtitle stream before dereferencing
authorMichael Niedermayer <michael@niedermayer.cc>
Tue, 17 Nov 2015 17:19:01 +0000 (18:19 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 26 Nov 2015 15:06:39 +0000 (16:06 +0100)
commitb70f7d20e1140983bf986ca240f2d868074a8585
treee192e06782a253b397e85d5d25816752b9eaa115
parent71a31133330330ebb4db7498a95185c436f59c83
avformat/matroskadec: Check subtitle stream before dereferencing

Unrecognized streams are not allocated
Fixes: flicker-1.color1.vp91447030769.08.webm

Found-by: Chris Cunningham <chcunningham@google.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit a5034b324cad4c29d47ef285a30b0705e6eb0384)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/matroskadec.c