check that nb_streams is valid before setting stream, fix crash with jp2 which do not use same structure

Originally committed as revision 16166 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Baptiste Coudurier 2008-12-16 08:47:28 +00:00
parent f683ea1cab
commit 271344377a