Reset the decoder and input stream for each loop of ios. Added notes to README to indicate why it's a good idea.