The first of the patches following this email adds a native zlib decoder. The subsequent patches make use of it throughout lavc and lavf. I've tested all the codecs on a handful of samples, and I can't spot anything going wrong.