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>
Tue, 7 Jan 2014 23:25:25 +0000 (00:25 +0100)
commit580d3ef6fea356785496b9b06798b7aa7080c0ea
treef22979e30a920532233a97f02fa4ead4781b82c4
parent2864c987d8ce1aa1d4875ecdfb97b3d73ab4d550
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>
(cherry picked from commit a7f27453f64d9020b92b01687baeb5909c6cdad0)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/mov.c