Fix subtitle extraction with multiple streams

Use the index position of the subtitle stream in the container, not in the array.
It is not guaranteed that the array order or size is the same as in the container.
This may be the case if we filtered out certain languages or hdmv_pgs_subtitle streams.
Merge pull request #516 from roderickvd/nightly

Fix subtitle extraction with multiple streams