updated how codec is found.  Codec now stores stream rather than format.