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, 19 Nov 2015 02:51:39 +0000 (03:51 +0100)
commit89612acc81d12fd41332632840aa6d5bce6f0d12
treeb35f8e489764265d87a3283287c18bfb41708656
parent7c3fc6bf06413e3ef35f13d38374a59719f4f555
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