rtmpproto: Restructure zlib code to avoid unreachable code warning