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>
Tue, 17 Nov 2015 18:02:28 +0000 (19:02 +0100)
commita5034b324cad4c29d47ef285a30b0705e6eb0384
tree28bcd6623b63c43ead09975510f356edc5265376
parentf6e5b17abb44203bf830dda93d4927ce9a1d2675
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>
libavformat/matroskadec.c