ff_read_timestamp: check stream_index before using it as array index
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 18 Feb 2013 18:48:44 +0000 (19:48 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 18 Feb 2013 19:37:17 +0000 (20:37 +0100)
commit695a766bff4cd8414a84e58159506d72b4e44892
treecd494a90655cfa00ba4b97e17818b5b675462356
parent85921499c747a57cef4ae625cb85e6ebfa1bebf1
ff_read_timestamp: check stream_index before using it as array index

Fixes out of array read

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