Fix exif decoding bug for streams.