avformat/avidec: Dont assert the existence of an index for video streams.
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 22 Nov 2013 14:08:04 +0000 (15:08 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 22 Nov 2013 16:02:00 +0000 (17:02 +0100)
commit7865759409b27089b444bc029b2b76b06161b2cf
tree6a6f4d3d44b9e5eebb728bc78ab028ec0b41c43a
parentd20241c9b1f370a6b8db6bc88b5e0c50af14727e
avformat/avidec: Dont assert the existence of an index for video streams.

Its possible in various rare cases that an index cannot be created or allocated.
Fixes assertion failure
Fixes: signal_sigabrt_7ffff7126425_7712_pokem.avi

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/avidec.c