avformat/mxfdec: only return stream indexes which have a corresponding track
authorMarton Balint <cus@passwd.hu>
Tue, 3 Jul 2018 23:23:45 +0000 (01:23 +0200)
committerMarton Balint <cus@passwd.hu>
Fri, 13 Jul 2018 20:58:40 +0000 (22:58 +0200)
commite5ff2c0c06188ff47706ce62db771b6b45f86b8c
tree9076d6f0c00b09f88c1b11d59ecb5ba18b8f0210
parent3e0f3be2b027ce2be1ed0f25651286f4f42123d5
avformat/mxfdec: only return stream indexes which have a corresponding track

Without this check some crafted files might crash because a packet might be
demuxed which have no corresponding mxf track.

Signed-off-by: Marton Balint <cus@passwd.hu>
libavformat/mxfdec.c