avformat/mov: Check that we have a stream before accessing it in mov_read_ares()
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 22 Nov 2013 19:09:03 +0000 (20:09 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 22 Nov 2013 21:04:03 +0000 (22:04 +0100)
commita7f27453f64d9020b92b01687baeb5909c6cdad0
tree51efd57a9b353a15fcda869c780632c163138c00
parent64821f5a7cc85f8d7cfc69b5caaa8d766faedc2e
avformat/mov: Check that we have a stream before accessing it in mov_read_ares()

Fixes out of array read
Fixes: signal_sigsegv_6f1855_3910_avid_test_alpha.mov

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