Optimized rtmp_decode