Fix subtitle extraction with multiple streams

Use the index position of the subtitle stream in the container, not in the array.
Since subtitles are usually preceded by two video and audio streams, these may be quite different.